diff options
author | Kristen Carlson Accardi <kristen.c.accardi@intel.com> | 2007-05-23 13:57:38 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-23 20:14:11 -0700 |
commit | 86ce18d7b7925bfd6b64c061828ca2a857ee83b8 (patch) | |
tree | b753b7fd6d195aa7ed9eebc5a3917c5f20786260 /include/linux/genhd.h | |
parent | 352823160613b65fdaa558be486720a71f75ed86 (diff) | |
download | linux-3.10-86ce18d7b7925bfd6b64c061828ca2a857ee83b8.tar.gz linux-3.10-86ce18d7b7925bfd6b64c061828ca2a857ee83b8.tar.bz2 linux-3.10-86ce18d7b7925bfd6b64c061828ca2a857ee83b8.zip |
genhd: expose AN to user space
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>
Diffstat (limited to 'include/linux/genhd.h')
-rw-r--r-- | include/linux/genhd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/genhd.h b/include/linux/genhd.h index 4c03ee353e7..3fcfed2168a 100644 --- a/include/linux/genhd.h +++ b/include/linux/genhd.h @@ -94,6 +94,7 @@ struct hd_struct { #define GENHD_FL_REMOVABLE 1 #define GENHD_FL_DRIVERFS 2 +#define GENHD_FL_MEDIA_CHANGE_NOTIFY 4 #define GENHD_FL_CD 8 #define GENHD_FL_UP 16 #define GENHD_FL_SUPPRESS_PARTITION_INFO 32 |