devsw(9)
NAME
devsw - returns the cdevsw structure
SYNOPSIS
#include <sys/param.h>
#include <sys/conf.h>
struct cdevsw *
devsw(dev_t dev);
DESCRIPTION
- The devsw() function returns a pointer to the cdevsw struc
- ture associated
with this character device ID. If dev->si_cdevsw is set it - is returned;
otherwise, the major(9) offset into the cdevsw array is re - turned.
- Its argument is:
- dev The device whose cdevsw entry should be returned.
RETURN VALUES
A pointer to a cdevsw structure.
SEE ALSO
major(9), minor(9), umajor(9), uminor(9)
AUTHORS
- This manual page was written by Chad David <davidc@ac
- ns.ab.ca>.
- BSD July 9, 2001