diff options
author | jh <jh@FreeBSD.org> | 2010-10-07 18:00:55 +0000 |
---|---|---|
committer | jh <jh@FreeBSD.org> | 2010-10-07 18:00:55 +0000 |
commit | d93ad5245d40e2887d36fe6e876a870d16f1dc0d (patch) | |
tree | f6bd7f0b6ecbf4f251efb4a2bf7d3fa7096463ef /contrib/llvm/lib/CodeGen | |
parent | 81f0eaae12838513377191ff7dd13700a9b32dad (diff) | |
download | FreeBSD-src-d93ad5245d40e2887d36fe6e876a870d16f1dc0d.zip FreeBSD-src-d93ad5245d40e2887d36fe6e876a870d16f1dc0d.tar.gz |
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
Diffstat (limited to 'contrib/llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions