Changeset View
Changeset View
Standalone View
Standalone View
stand/libsa/libsa.3
Show First 20 Lines • Show All 699 Lines • ▼ Show 20 Lines | |||||
to interface with the device. | to interface with the device. | ||||
.Bd -literal | .Bd -literal | ||||
struct devsw { | struct devsw { | ||||
const char dv_name[DEV_NAMLEN]; | const char dv_name[DEV_NAMLEN]; | ||||
int dv_type; | int dv_type; | ||||
int (*dv_init)(void); | int (*dv_init)(void); | ||||
int (*dv_strategy)(void *devdata, int rw, daddr_t blk, | int (*dv_strategy)(void *devdata, int rw, daddr_t blk, | ||||
size_t size, char *buf, size_t *rsize); | size_t size, char *buf, size_t *rsize); | ||||
int (*dv_open)(struct open_file *f, ...); | int (*dv_open)(struct open_file *f); | ||||
int (*dv_close)(struct open_file *f); | int (*dv_close)(struct open_file *f); | ||||
int (*dv_ioctl)(struct open_file *f, u_long cmd, void *data); | int (*dv_ioctl)(struct open_file *f, u_long cmd, void *data); | ||||
int (*dv_print)(int verbose); | int (*dv_print)(int verbose); | ||||
void (*dv_cleanup)(void); | void (*dv_cleanup)(void); | ||||
void (*dv_fmtdev)(struct devdesc *); | void (*dv_fmtdev)(struct devdesc *); | ||||
}; | }; | ||||
.Ed | .Ed | ||||
.Bl -tag -width ".Fn dv_strategy" | .Bl -tag -width ".Fn dv_strategy" | ||||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |