Android udev /dev 裝置節點許可權

來源:互聯網
上載者:User

標籤:

/************************************************************************* *                  Android udev /dev 裝置節點許可權 * 說明: *     現在的Linux系統裝置節點許可權一般都是通過動態配置,之前一直沒找到具體 * 在哪裡配置的說明,這次在看參考書的時候發現ueventd.rc就是用來做這件事的。 * *                                   2016-5-14 深圳 南山平山村 曾劍鋒 ************************************************************************/一、參考文檔:    Embedded Android        https://www.google.co.id/url?sa=t&rct=j&q=&esrc=s&source=web&cd=5&ved=0ahUKEwiWwcrbqtjMAhWDppQKHdhjBroQFgg5MAQ&url=http%3A%2F%2Fwww.staroceans.org%2Fkernel-and-driver%2F%255BEmbedded.Android(2013.3)%255D.Karim.Yaghmour.pdf&usg=AFQjCNHe5Ey14egLQXgmOpP-PGN510ALgA二、原文:    1. 頁碼:58    2. 內容:    udev events    As I explained earlier, access to devices in Linux is done through nodes within the /dev directory. In the old days, Linux distributions would ship with thousands of entries in that directory to accommodate all possible device configurations. Eventually, though, a few schemes were proposed to make the creation of such nodes dynamic. For some time now, the system in use has been udev, which relies on runtime events generated by the kernel every time hardware is added or removed from the system.  In most Linux distributions, the handling of udev hotplug events is done by the udevd daemon. In Android, these events are handled by the ueventd daemon built as part of Android’s init and accessed through a symbolic link from /sbin/ueventd to /init. To know which entries to create in /dev, ueventd relies on the /ueventd.rc and /ueventd.<device_name>.rc files.三、總結:    之前遇到需要修改許可權之類的事情,一般都是在init.rc中進行修改,那時候覺得挺奇怪的,因為一般會有專門給裝置節點設定許可權的檔案,那裡明顯不是,但也沒找到準確的地方,現在終於找到依據了。

 

Android udev /dev 裝置節點許可權

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.