0

Is there any significance of reserving 256 minor numbers when dynamically assigning a major number using register_chrdev?

view story
linux-howto

http://stackoverflow.com – Is there a significance for assigning 256 minor numbers for dynamically assigned major number using register_chrdev function To dynamically assign a major number I use register_chrdev function defined in kernel static inline int register_chrdev(unsigned int major, const char *name, const struct file_operations *fops) { return __register_chrdev(major, 0, 256, name, fops); } __register_chrdev now will assign a dynamic major number if value of major passed as argument is 0.This particular operation has following source code in kernel if (major == 0) { (HowTos)