/* * Possible status values for a CCW request's I/O.
*/ enum io_status {
IO_DONE,
IO_RUNNING,
IO_STATUS_ERROR,
IO_PATH_ERROR,
IO_REJECTED,
IO_KILLED
};
/** * ccw_request - Internal CCW request. * @cp: channel program to start * @timeout: maximum allowable time in jiffies between start I/O and interrupt * @maxretries: number of retries per I/O operation and path * @lpm: mask of paths to use * @check: optional callback that determines if results are final * @filter: optional callback to adjust request status based on IRB data * @callback: final callback * @data: user-defined pointer passed to all callbacks * @singlepath: if set, use only one path from @lpm per start I/O * @cancel: non-zero if request was cancelled * @done: non-zero if request was finished * @mask: current path mask * @retries: current number of retries * @drc: delayed return code
*/ struct ccw_request { struct ccw1 *cp; unsignedlong timeout;
u16 maxretries;
u8 lpm; int (*check)(struct ccw_device *, void *); enum io_status (*filter)(struct ccw_device *, void *, struct irb *, enum io_status); void (*callback)(struct ccw_device *, void *, int); void *data; unsignedint singlepath:1; /* These fields are used internally. */ unsignedint cancel:1; unsignedint done:1;
u16 mask;
u16 retries; int drc;
} __attribute__((packed));
/* * sense-id response buffer layout
*/ struct senseid { /* common part */
u8 reserved; /* always 0x'FF' */
u16 cu_type; /* control unit type */
u8 cu_model; /* control unit model */
u16 dev_type; /* device type */
u8 dev_model; /* device model */
u8 unused; /* padding byte */ /* extended part */ struct ciw ciw[MAX_CIWS]; /* variable # of CIWs */
} __attribute__ ((packed, aligned(4)));
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.