[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-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux