Scroll to navigation

STRUCT CCW_DEVICE(9) The ccw bus STRUCT CCW_DEVICE(9)

NAME

struct_ccw_device - channel attached device

SYNOPSIS

struct ccw_device {
  spinlock_t * ccwlock;
  struct ccw_device_id id;
  struct ccw_driver * drv;
  struct device dev;
  int online;
  void (* handler) (struct ccw_device *, unsigned long, struct irb *);
};  

MEMBERS

spinlock_t * ccwlock
pointer to device lock

struct ccw_device_id id

id of this device

struct ccw_driver * drv

ccw driver for this device

struct device dev

embedded device structure

int online

online status of device

void (*) (struct ccw_device *, unsigned long, struct irb *) handler

interrupt handler

DESCRIPTION

handler is a member of the device rather than the driver since a driver can have different interrupt handlers for different ccw devices (multi-subchannel drivers).

AUTHOR

Cornelia Huck <cornelia.huck@de.ibm.com>
Author.

COPYRIGHT

September 2017 Kernel Hackers Manual 4.12