1MISC_REGISTER(9) Miscellaneous Devices MISC_REGISTER(9)
2
3
4
6 misc_register - register a miscellaneous device
7
9 int misc_register(struct miscdevice * misc);
10
12 misc
13 device structure
14
15 Register a miscellaneous device with the kernel. If the minor
16 number is set to MISC_DYNAMIC_MINOR a minor number is assigned and
17 placed in the minor field of the structure. For other cases the
18 minor number requested is used.
19
21 The structure passed is linked into the kernel and may not be destroyed
22 until it has been unregistered.
23
24 A zero is returned on success and a negative errno code for failure.
25
27Kernel Hackers Manual 3.10 June 2019 MISC_REGISTER(9)