How to create a device in /dev automatically upon loading of the kernel module for a device driver?

后端 未结 6 1342
南旧
南旧 2020-12-06 01:26

I am attempting to develop Linux device drivers and as my first attempt I am trying to develop a char device driver that has the following file options,

st         


        
6条回答
  •  没有蜡笔的小新
    2020-12-06 02:05

    CONFIG_DEVTMPFS is quite nice if you can use that with your distro. You can have the kernel automount that for you at boot (CONFIG_DEVTMPFS_MOUNT) or mount it manually (mount -t devtmpfs none /dev).

提交回复
热议问题