Relations drive names, device names and device file name

  Writing a driver file is generated when a name1.ko file, name1 is the name of the driver, after using insmod name1.ko instruction, use lsmod can see the drive named name1

  When an incoming call alloc_chrdev_region function or function register_chrdev_region last parameter is the name of the device, if the incoming is name2, it indicates that the device is named name2, use cat / proc / devices command can see the device name

  Files using mknod command to specify the name of the device file name, the name is opened using the open function

Guess you like

Origin www.cnblogs.com/Suzkfly/p/11768941.html