86ce18d7b7
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>
15 lines
618 B
Text
15 lines
618 B
Text
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.
|
|
|