⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 devfsd.conf.5

📁 devfsd 驱动对linux的补丁支持
💻 5
字号:
.TH "devfsd.conf" "5" "1.3.21" "russell@coker.com.au" "devfsd".SH "NAME"/etc/devfsd.conf \- the main configuration file for.BR devfsd ..SH "FORMAT"The main documentation for the format is in devfsd(8)..SH "EXAMPLES"Here are some examples of the most common usage:.PP Compatibility entries, the following will create symbolic links from /dev/misc/device to /dev/device on node registration and remove them on unregistration:.PPREGISTER        misc            MKOLDCOMPAT.PPUNREGISTER      misc            RMOLDCOMPAT.PPThe following means to ignore any \fBREGISTER\fP or \fBCHANGE\fPentries occurring later in the file for devices matching the regex\fB^pt[sy]/.*\fP:.PPREGISTER		^pt[sy]/.*		IGNORE.PPCHANGE		^pt[sy]/.*		IGNORE.PPCREATE		^pt[sy]/.*		IGNORE.PPThis runs the partx command to tell the kernel about the partitioningof an IDE or SCSI hard disk when one of the partitions is accessed forthe first time.  Notice the use of regular expression substituation inthe command "\\1", corresponding to the first set of parentheses inthe regular expression being matched..PPLOOKUP         ^((ide|scsi)/host[0-9]+/bus[0-9]+/target[0-9]+/lun[0-9]+)/part[0-9]+$       EXECUTE /sbin/partx -a $mntpnt/\\1/disc.PPThis calls the \fBGLOBAL\fP function to create a symlink from/dev/tts/0 to /dev/ttyS0 and also to /dev/modem, the links will beremoved at device unregistration time. The order of link creation isthe reverse of the order in the config file. Typically the\fBGLOBAL\fP functions are in libc. Note how the \fBmksymlink\fPfunction is being used, rather than the \fBsymlink\fP function fromlibc. The \fBmksymlink\fP function will create parent directories asrequired, and will not generate a failure code if the symlink alreadyexists..PPREGISTER  ^tts/0$ CFUNCTION GLOBAL mksymlink $devname modem.PPREGISTER  ^tts/3$ CFUNCTION GLOBAL mksymlink $devname ttyS0.PPUNREGISTER ^tts/0$ CFUNCTION GLOBAL unlink modem.PPUNREGISTER ^tts/3$ CFUNCTION GLOBAL unlink ttyS0.PPThe other use of \fBCFUNCTION\fP and \fBMFUNCTION\fP isto call a function in a shared object that devfsd will load.  Seethe \fBexamples\fP directory for code for some shared objects..SH "SEE ALSO".BR devfsd (8)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -