cdevsw_add -- adds a cdevsw entry
#include <sys/param.h>
#include <sys/conf.h>
int
cdevsw_add(struct cdevsw *newentry);
The cdevsw_add() function adds newentry to the cdevsw table if its major
number is greater than or equal to zero, and is less than NUMCDEVSW.
Its argument is:
newentry The device to add to the table.
A value of 0 is returned on success; otherwise, EINVAL is returned indicating
that the major number is not in the valid range.
This man page was written by Chad David <[email protected]>.
FreeBSD 5.2.1 July 9, 2001 FreeBSD 5.2.1 [ Back ] |