文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Fedora 下的Udev

Fedora 下的Udev

时间:2005-04-11  来源:honbj

This document tries to reveal the secrets of udev and how it works on Fedora.

本文解释为什么fedora下挂载光盘要用 mount /dev/hdc /media/cdrecorder

udev provides a dynamic device directory containing only the files for actually present devices. It creates or removes device node files usually located in the /dev directory, or it renames network interfaces.

As part of the hotplug subsystem, udev is executed if a kernel device is added or removed from the system. On device creation, udev reads the sysfs directory of the given device to collect device attributes like label, serial number or bus device number. These attributes may be used as keys to determine a unique name for the device. udev maintains a database for devices present on the system. On device removal, udev queries its database for the name of the device file to be deleted.

udev gets called by hotplug, if a module is loaded, and a device is added or removed. udev looks in /sys, if the driver provides a "dev" file, which contains the major and minor number for a device node to communicate with the driver. After looking in the udev rules (/etc/udev/rules.d), which specify the device node filename and symlinks, a device node is created in /dev with the permissions, which are specified in /etc/udev/permissions.d.

But I really want my device node!

Put them in /etc/udev/devices/ and they will get copied to /dev. File a bugzilla entry, if you think that should be done per default.

可以理解为什么在fedora下 mount光盘要用 /dev/hdc

相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载