-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow user space to determine if a disk supports Asynchronous Notification of media changes. This is done by adding a new sysfs file "capability_flags", which is documented in (insert file name). This sysfs file will export all disk capabilities flags to user space. We also define a new flag to define the media change notification capability. Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
- Loading branch information
Kristen Carlson Accardi
authored and
Linus Torvalds
committed
May 24, 2007
1 parent
3528231
commit 86ce18d
Showing
3 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Generic Block Device Capability | ||
=============================================================================== | ||
This file documents the sysfs file block/<disk>/capability | ||
|
||
capability is a hex word indicating which capabilities a specific disk | ||
supports. For more information on bits not listed here, see | ||
include/linux/genhd.h | ||
|
||
Capability Value | ||
------------------------------------------------------------------------------- | ||
GENHD_FL_MEDIA_CHANGE_NOTIFY 4 | ||
When this bit is set, the disk supports Asynchronous Notification | ||
of media change events. These events will be broadcast to user | ||
space via kernel uevent. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters