|
NAMEdevfs_set_cdevpriv ,
devfs_get_cdevpriv ,
devfs_clear_cdevpriv —
manage per-open filedescriptor data for devices
SYNOPSIS#include <sys/param.h>
#include <sys/conf.h>
typedef void d_priv_dtor_t(void *data); int devfs_get_cdevpriv (void
**datap);
int
void
DESCRIPTIONThedevfs_xxx_cdevpriv () family of functions allows the
cdev driver methods to associate some driver-specific
data with each user process
open(2) of
the device special file. Currently, functioning of these functions is
restricted to the context of the cdevsw switch method
calls performed as
devfs(5)
operations in response to system calls that use filedescriptors.
The On the last filedescriptor close, system automatically arranges
If successful, the functions return 0. The function
The function
SEE ALSOclose(2), open(2), devfs(5)HISTORYThedevfs_cdevpriv () family of functions first appeared
in FreeBSD 7.1.
Visit the GSP FreeBSD Man Page Interface. |