dev_t
int MAJOR(dev_t dev) // macro
int MINOR(dev_t dev) // macro
dev_t MKDEV(int major, int minor) // macro
int register_chrdev_region(dev_t first, unsigned int count, char *name)
int alloc_chrdev_region(dev_t *dev, unsigned int firstminor, unsigned int count, char *name) // device number stored in '/proc/devices', it will be used by 'mknod' to make a node under '/dev'
void unregister_chrdev_region(dev_t first, unsigned int count)
Linux device driver
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.