1
0
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:
Poul-Henning Kamp 2003-09-27 21:49:35 +00:00
parent 2853ad7d60
commit 370d48ebe4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120528
2 changed files with 8 additions and 0 deletions

View File

@ -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;

View File

@ -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;