中文字幕 另类精品,亚洲欧美一区二区蜜桃,日本在线精品视频免费,孩交精品乱子片免费

<sup id="3hn2b"></sup>

    1. <sub id="3hn2b"><ol id="3hn2b"></ol></sub><legend id="3hn2b"></legend>

      1. <xmp id="3hn2b"></xmp>

      2. 新聞中心

        EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > 嵌入式Linux設(shè)備驅(qū)動(dòng)開發(fā)之:實(shí)驗(yàn)內(nèi)容——test驅(qū)動(dòng)

        嵌入式Linux設(shè)備驅(qū)動(dòng)開發(fā)之:實(shí)驗(yàn)內(nèi)容——test驅(qū)動(dòng)

        作者: 時(shí)間:2013-09-13 來源:網(wǎng)絡(luò) 收藏

        本文引用地址:http://www.antipu.com.cn/article/257106.htm

        4.實(shí)驗(yàn)結(jié)果

        首先在虛擬源碼目錄下編譯并加載驅(qū)動(dòng)模塊。

        $makeclean;make

        $./test_drv_load

        接下來,編譯并運(yùn)行測試程序

        $gcc–otesttest.c

        $./test

        測試程序運(yùn)行效果如下:

        Inputsomewordstokernel(enter'quit'toexit):Hello,everybody!

        Thereadstringisfromkernel:Hello,everybody!/*從內(nèi)核讀取的數(shù)據(jù)*/

        Inputsomewordstokernel(enter'quit'toexit):Thisisasimpledriver

        Thereadstringisfromkernel:Thisisasimpledriver

        Inputsomewordstokernel(enter'quit'toexit):quit

        Thereadstringisfromkernel:quit

        最后,卸載驅(qū)動(dòng)程序

        $./test_drv_unload

        通過dmesg命令可以查看內(nèi)核打印的信息:

        $dmesg|tail–n10

        ……

        Themajorofthetestdeviceis250/*當(dāng)加載模塊時(shí)打印*/

        Thisisopenoperation/*當(dāng)打開設(shè)備時(shí)打印*/

        Thisisreleaseoperation/*關(guān)閉設(shè)備時(shí)打印*/

        Testdeviceuninstalled/*當(dāng)卸載設(shè)備時(shí)打印*/

        linux操作系統(tǒng)文章專題:linux操作系統(tǒng)詳解(linux不再難懂)

        linux相關(guān)文章:linux教程



        上一頁 1 2 3 4 下一頁

        評(píng)論


        相關(guān)推薦

        技術(shù)專區(qū)

        關(guān)閉