devsw -- returns the cdevsw structure
      #include <sys/param.h>
     #include <sys/conf.h>
     struct cdevsw *
     devsw(dev_t dev);
     The devsw() function returns a pointer to the cdevsw structure 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 returned.
     Its argument is:
     dev  The device whose cdevsw entry should be returned.
     A pointer to a cdevsw structure.
 
     major(9), minor(9), umajor(9), uminor(9)
     This man page was written by Chad David <davidc@acns.ab.ca>.
FreeBSD 5.2.1			 July 9, 2001			 FreeBSD 5.2.1  [ Back ] |