examples.txt

来自「devfsd 驱动对linux的补丁支持」· 文本 代码 · 共 13 行

TXT
13
字号
Put the following two lines in /etc/devfs/conf.d/mysymlink and run update-devfsdand it will create and remove sym-links from /dev/floppy/0 to /dev/fd0.REGISTER	^floppy/0$	MFUNCTION /usr/local/lib/mysymlink.so mysymlink $devname fd0UNREGISTER	^floppy/0$	MFUNCTION /usr/local/lib/mysymlink.so myunlink fd0Use the following two lines instead to achieve a similar effect through theCFUNCTION interface.  However they will create and remove two links, /etc/fd0and /dev/fd0u1440, the code can dynamically handle up to 4 sym-links.REGISTER	^floppy/0$	CFUNCTION /usr/local/lib/mysymlink.so cfdolink EVENT fd0 fd0u1440UNREGISTER	^floppy/0$	CFUNCTION /usr/local/lib/mysymlink.so cfdolink EVENT fd0 fd0u1440

⌨️ 快捷键说明

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