:man| Alphabetical   Categories   About us 
 
DEVSW (9) | Kernel routines | Unix Manual Pages | :man

NAME

devsw - returns the
.Vt cdevsw structure

CONTENTS

Synopsis
Description
Return Values
See Also
Authors

SYNOPSIS


.In sys/param.h
.In sys/conf.h "struct cdevsw *" devsw "dev_t dev"

DESCRIPTION

The devsw function returns a pointer to the
.Vt 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
.Vt cdevsw entry should be returned.

RETURN VALUES

A pointer to a
.Vt cdevsw structure.

SEE ALSO

major(9), minor(9), umajor(9), uminor(9)

AUTHORS


Share this page

     Follow us

Facebook Twitter Google+ LinkedIn


 
Created by Blin Media, 2008-2013