jh d93ad5245d 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
2010-10-07 18:00:55 +00:00
..
2010-08-30 14:26:02 +00:00
2010-09-09 09:58:05 +00:00
2010-07-09 10:57:55 +00:00
2010-08-30 14:26:02 +00:00
2010-08-30 14:26:02 +00:00
2010-01-04 20:59:52 +00:00
2009-05-26 09:19:21 +00:00
2010-06-26 21:44:45 +00:00