Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/conf.h
Show First 20 Lines • Show All 313 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
#define dev2unit(d) ((d)->si_drv0) | #define dev2unit(d) ((d)->si_drv0) | ||||
typedef void d_priv_dtor_t(void *data); | typedef void d_priv_dtor_t(void *data); | ||||
int devfs_get_cdevpriv(void **datap); | int devfs_get_cdevpriv(void **datap); | ||||
int devfs_set_cdevpriv(void *priv, d_priv_dtor_t *dtr); | int devfs_set_cdevpriv(void *priv, d_priv_dtor_t *dtr); | ||||
void devfs_clear_cdevpriv(void); | void devfs_clear_cdevpriv(void); | ||||
int devfs_foreach_cdevpriv(struct cdev *dev, | |||||
int (*cb)(void *data, void *arg), void *arg); | |||||
ino_t devfs_alloc_cdp_inode(void); | ino_t devfs_alloc_cdp_inode(void); | ||||
void devfs_free_cdp_inode(ino_t ino); | void devfs_free_cdp_inode(ino_t ino); | ||||
typedef void (*dev_clone_fn)(void *arg, struct ucred *cred, char *name, | typedef void (*dev_clone_fn)(void *arg, struct ucred *cred, char *name, | ||||
int namelen, struct cdev **result); | int namelen, struct cdev **result); | ||||
int dev_stdclone(char *_name, char **_namep, const char *_stem, int *_unit); | int dev_stdclone(char *_name, char **_namep, const char *_stem, int *_unit); | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |