lkml.org 
[lkml]   [2007]   [Oct]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v5 0/2] SCSI asynchronous event notification API
Date
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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-10-29 22:35    [W:0.165 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site