/* * 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)));
struct ccw_device_dma_area { struct senseid senseid; /* SenseID info */ struct ccw1 iccws[2]; /* ccws for SNID/SID/SPGID commands */ struct irb irb; /* device status */ struct pgid pgid[8]; /* path group IDs per chpid*/
};
struct ccw_device_private { struct ccw_device *cdev; struct subchannel *sch; int state; /* device state */
atomic_t onoff; struct ccw_dev_id dev_id; /* device id */ struct ccw_request req; /* internal I/O request */ int iretry;
u8 pgid_valid_mask; /* mask of valid PGIDs */
u8 pgid_todo_mask; /* mask of PGIDs to be adjusted */
u8 pgid_reset_mask; /* mask of PGIDs which were reset */
u8 path_noirq_mask; /* mask of paths for which no irq was
received */
u8 path_notoper_mask; /* mask of paths which were found
not operable */
u8 path_gone_mask; /* mask of paths, that became unavailable */
u8 path_new_mask; /* mask of paths, that became available */
u8 path_broken_mask; /* mask of paths, which were found to be
unusable */ struct { unsignedint fast:1; /* post with "channel end" */ unsignedint repall:1; /* report every interrupt status */ unsignedint pgroup:1; /* do path grouping */ unsignedint force:1; /* allow forced online */ unsignedint mpath:1; /* do multipathing */
} __attribute__ ((packed)) options; struct { unsignedint esid:1; /* Ext. SenseID supported by HW */ unsignedint dosense:1; /* delayed SENSE required */ unsignedint doverify:1; /* delayed path verification */ unsignedint donotify:1; /* call notify function */ unsignedint recog_done:1; /* dev. recog. complete */ unsignedint fake_irb:2; /* deliver faked irb */ unsignedint pgroup:1; /* pathgroup is set up */ unsignedint mpath:1; /* multipathing is set up */ unsignedint pgid_unknown:1;/* unknown pgid state */ unsignedint initialized:1; /* set if initial reference held */
} __attribute__((packed)) flags; unsignedlong intparm; /* user interruption parameter */ struct qdio_irq *qdio_data; int async_kill_io_rc; struct work_struct todo_work; enum cdev_todo todo;
wait_queue_head_t wait_q; struct timer_list timer; void *cmb; /* measurement information */ struct list_head cmb_list; /* list of measured devices */
u64 cmb_start_time; /* clock value of cmb reset */ void *cmb_wait; /* deferred cmb enable/disable */ struct gen_pool *dma_pool; struct ccw_device_dma_area *dma_area; enum interruption_class int_class;
};
#endif
Messung V0.5 in Prozent
¤ 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.0.16Bemerkung:
(Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-06-08)
¤
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.