diff options
author | Kristen Carlson Accardi <kristen.c.accardi@intel.com> | 2007-05-23 16:57:38 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-23 23:14:12 -0400 |
commit | 8ce7ad7b2d11fae2c3d285a6a0caea9322c0b8fc (patch) | |
tree | 87d7423635821dae9f26d14c62f3314ec7bb3b17 /include/linux/genhd.h | |
parent | 86ce18d7b7925bfd6b64c061828ca2a857ee83b8 (diff) |
genhd: send async notification on media change
Send an uevent to user space to indicate that a media change event has
occurred.
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 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/genhd.h b/include/linux/genhd.h index 3fcfed2168a7..9756fc102a83 100644 --- a/include/linux/genhd.h +++ b/include/linux/genhd.h | |||
@@ -66,6 +66,7 @@ struct partition { | |||
66 | #include <linux/smp.h> | 66 | #include <linux/smp.h> |
67 | #include <linux/string.h> | 67 | #include <linux/string.h> |
68 | #include <linux/fs.h> | 68 | #include <linux/fs.h> |
69 | #include <linux/workqueue.h> | ||
69 | 70 | ||
70 | struct partition { | 71 | struct partition { |
71 | unsigned char boot_ind; /* 0x80 - active */ | 72 | unsigned char boot_ind; /* 0x80 - active */ |
@@ -139,6 +140,7 @@ struct gendisk { | |||
139 | #else | 140 | #else |
140 | struct disk_stats dkstats; | 141 | struct disk_stats dkstats; |
141 | #endif | 142 | #endif |
143 | struct work_struct async_notify; | ||
142 | }; | 144 | }; |
143 | 145 | ||
144 | /* Structure for sysfs attributes on block devices */ | 146 | /* Structure for sysfs attributes on block devices */ |
@@ -420,7 +422,7 @@ extern struct gendisk *alloc_disk_node(int minors, int node_id); | |||
420 | extern struct gendisk *alloc_disk(int minors); | 422 | extern struct gendisk *alloc_disk(int minors); |
421 | extern struct kobject *get_disk(struct gendisk *disk); | 423 | extern struct kobject *get_disk(struct gendisk *disk); |
422 | extern void put_disk(struct gendisk *disk); | 424 | extern void put_disk(struct gendisk *disk); |
423 | 425 | extern void genhd_media_change_notify(struct gendisk *disk); | |
424 | extern void blk_register_region(dev_t dev, unsigned long range, | 426 | extern void blk_register_region(dev_t dev, unsigned long range, |
425 | struct module *module, | 427 | struct module *module, |
426 | struct kobject *(*probe)(dev_t, int *, void *), | 428 | struct kobject *(*probe)(dev_t, int *, void *), |