Date: Thu, 7 Oct 2010 18:00:55 +0000 (UTC) From: Jaakko Heinonen <jh@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/share/man/man9 make_dev.9 src/sys/kern kern_conf.c src/sys/sys conf.h Message-ID: <201010071801.o97I1jEG085032@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jh 2010-10-07 18:00:55 UTC FreeBSD src repository Modified files: share/man/man9 make_dev.9 sys/kern kern_conf.c sys/sys conf.h Log: SVN rev 213526 on 2010-10-07 18:00:55Z by jh Check the device name validity on device registration. A new function prep_devname() sanitizes a device name by removing leading and redundant sequential slashes. The function returns an error for names which already exist or are considered invalid. A new flag MAKEDEV_CHECKNAME for make_dev_p(9) and make_dev_credf(9) indicates that the caller is prepared to handle an error related to the device name. An invalid name triggers a panic if the flag is not specified. Document the MAKEDEV_CHECKNAME flag in the make_dev(9) manual page. Idea from: kib Reviewed by: kib Revision Changes Path 1.32 +16 -7 src/share/man/man9/make_dev.9 1.243 +87 -27 src/sys/kern/kern_conf.c 1.259 +6 -5 src/sys/sys/conf.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010071801.o97I1jEG085032>