devsw(9)

devsw9

Returns the cdevsw structure

Usage

#include <sys/param.h>

#include <sys/conf.h>

struct cdevsw *

devsw(dev_t dev);

Overview

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.

Return values

A pointer to a cdevsw structure.

Authors

This manual page was written by Chad David ⟨[email protected]⟩.

From freebsd-manpages 6.0-5 in Debian 4.0 (Etch). Parsed by carta from the page's mdoc source.