mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Add an explanation why MAJOR_AUTO should not be specified explicitly.
This commit is contained in:
parent
2853ad7d60
commit
370d48ebe4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120528
@ -261,6 +261,10 @@ void ldisc_deregister(int);
|
||||
|
||||
#define NUMCDEVSW 256
|
||||
|
||||
/*
|
||||
* XXX: do not use MAJOR_AUTO unless you have no choice. In general drivers
|
||||
* should just not initialize .d_maj and that will DTRT.
|
||||
*/
|
||||
#define MAJOR_AUTO 0 /* XXX: Not GM */
|
||||
|
||||
l_ioctl_t l_nullioctl;
|
||||
|
@ -261,6 +261,10 @@ void ldisc_deregister(int);
|
||||
|
||||
#define NUMCDEVSW 256
|
||||
|
||||
/*
|
||||
* XXX: do not use MAJOR_AUTO unless you have no choice. In general drivers
|
||||
* should just not initialize .d_maj and that will DTRT.
|
||||
*/
|
||||
#define MAJOR_AUTO 0 /* XXX: Not GM */
|
||||
|
||||
l_ioctl_t l_nullioctl;
|
||||
|
Loading…
Reference in New Issue
Block a user