Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/aio.h
Show First 20 Lines • Show All 134 Lines • ▼ Show 20 Lines | struct kaiocb { | ||||
ksiginfo_t ksi; /* (a) realtime signal info */ | ksiginfo_t ksi; /* (a) realtime signal info */ | ||||
uint64_t seqno; /* (*) job number */ | uint64_t seqno; /* (*) job number */ | ||||
aio_cancel_fn_t *cancel_fn; /* (a) backend cancel function */ | aio_cancel_fn_t *cancel_fn; /* (a) backend cancel function */ | ||||
aio_handle_fn_t *handle_fn; /* (c) backend handle function */ | aio_handle_fn_t *handle_fn; /* (c) backend handle function */ | ||||
union { /* Backend-specific data fields */ | union { /* Backend-specific data fields */ | ||||
struct { /* BIO backend */ | struct { /* BIO backend */ | ||||
struct bio *bp; /* (*) BIO pointer */ | struct bio *bp; /* (*) BIO pointer */ | ||||
struct buf *pbuf; /* (*) buffer pointer */ | struct buf *pbuf; /* (*) buffer pointer */ | ||||
struct vm_page *pages[btoc(MAXPHYS)+1]; /* (*) */ | |||||
int npages; /* (*) number of pages */ | int npages; /* (*) number of pages */ | ||||
struct vm_page **pages; /* (*) */ | |||||
}; | }; | ||||
struct { /* fsync() requests */ | struct { /* fsync() requests */ | ||||
int pending; /* (a) number of pending I/O */ | int pending; /* (a) number of pending I/O */ | ||||
}; | }; | ||||
struct { | struct { | ||||
void *backend1; | void *backend1; | ||||
void *backend2; | void *backend2; | ||||
long backend3; | long backend3; | ||||
▲ Show 20 Lines • Show All 114 Lines • Show Last 20 Lines |