InterviewSolution
Saved Bookmarks
| 1. |
How Can We Allocate Device Number Statically ? |
|
Answer» register_chrdev_region() FUNCTION will statically allocate DEVICE numbers. which is declared in <linux/fs.h> INT register_chrdev_region(dev_t first, unsigned int count, char *name); Return values : In case of success "0" will return , In case of failure "-1 or negative value " will return Here
register_chrdev_region() function will statically allocate device numbers. which is declared in <linux/fs.h> int register_chrdev_region(dev_t first, unsigned int count, char *name); Return values : In case of success "0" will return , In case of failure "-1 or negative value " will return Here |
|