diff options
author | phk <phk@FreeBSD.org> | 2003-03-09 11:03:45 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-03-09 11:03:45 +0000 |
commit | 2fe1f6204d38d7d1423802fd525964774dae667c (patch) | |
tree | cfa97a9d4fdebe78406e688b9759ba8119bb7dfc /sys/conf/majors | |
parent | 3a6679ec745949833041f02adfc73f8672717e1e (diff) | |
download | FreeBSD-src-2fe1f6204d38d7d1423802fd525964774dae667c.zip FreeBSD-src-2fe1f6204d38d7d1423802fd525964774dae667c.tar.gz |
Note that MAJOR_AUTO is now the default if d_maj is not initialized. This
is more robust and prevents the hijacking of /dev/console for the typical
mistake.
Remove unneeded MAJOR_AUTO uses, it is only needed explicitly now if the
driver source has cross-branch compatibility to old releases.
Diffstat (limited to 'sys/conf/majors')
-rw-r--r-- | sys/conf/majors | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/conf/majors b/sys/conf/majors index 7c87547..2d2f562 100644 --- a/sys/conf/majors +++ b/sys/conf/majors @@ -4,8 +4,9 @@ # the current allocation of device major numbers. # # Unless very special circumstants demand otherwise, all device drivers -# are able to use the "MAJOR_AUTO" facility for auto-allocating major -# numbers at runtime. +# are able to use a dynamically allocated major number. If the d_maj +# element of the cdevsw is uninitialized (preferred) or initialized to +# MAJOR_AUTO, this dynamic allocation will happen. # # NOTICE: FreeBSD does not use block major numbers anymore, you neither # need to assign nor use a block major number for any device driver any |