[PATCH v5 0/2] SCSI asynchronous event notification API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is the next revision of the SCSI event notification infrastructure
patchset, enabling SATA Asynchronous Notification ("AN") for CD/DVD
devices that support it.

For devices that support SATA AN (only very recent ones do), this means
that HAL and other userspace utilities no longer need to repeatedly poll
the CD/DVD device to determine if the user has changed the media.

This revision takes into account James' comments from earlier today,
up to patchset revision #4 (this one is revision 5).

Changes since last revision:

1) sysfs 'store' operation is implemented, to eliminate any confusion
   about how it should work.

2) if we are going to emit events more complex than a single "I'm
   asserted" bit, then we cannot use the nifty bitmap.h stuff.

a) struct scsi_event is created.

b) sdev_evt_send() -- send an event.  event intentionally and
   silently dropped, if not in supported_events mask.

c) sdev_evt_alloc() -- allocate an event.  structured such that
   future event types can be added easily.

d) sdev_evt_send_simple() -- for simple events where we only need
   to know the event type, we can use this simple interface (libata uses
   this).

e) Events are sent one-at-a-time.  Unlike the bitmap, complex events
   should not be merged together.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux