1MISC_REGISTER(9)             Miscellaneous Devices            MISC_REGISTER(9)
2
3
4

NAME

6       misc_register - register a miscellaneous device
7

SYNOPSIS

9       int misc_register(struct miscdevice * misc);
10

ARGUMENTS

12       misc
13           device structure
14

DESCRIPTION

16       Register a miscellaneous device with the kernel. If the minor number is
17       set to MISC_DYNAMIC_MINOR a minor number is assigned and placed in the
18       minor field of the structure. For other cases the minor number
19       requested is used.
20
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 2.6.         June 2019                  MISC_REGISTER(9)
Impressum