diff options
Diffstat (limited to 'drivers/mtd/ubi/ubi.h')
-rw-r--r-- | drivers/mtd/ubi/ubi.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h index 6d929329a8d5..86e1a4e0ab01 100644 --- a/drivers/mtd/ubi/ubi.h +++ b/drivers/mtd/ubi/ubi.h | |||
@@ -38,6 +38,7 @@ | |||
38 | #include <linux/vmalloc.h> | 38 | #include <linux/vmalloc.h> |
39 | #include <linux/mtd/mtd.h> | 39 | #include <linux/mtd/mtd.h> |
40 | #include <linux/mtd/ubi.h> | 40 | #include <linux/mtd/ubi.h> |
41 | #include <linux/notifier.h> | ||
41 | 42 | ||
42 | #include "ubi-media.h" | 43 | #include "ubi-media.h" |
43 | #include "scan.h" | 44 | #include "scan.h" |
@@ -483,6 +484,7 @@ extern const struct file_operations ubi_cdev_operations; | |||
483 | extern const struct file_operations ubi_vol_cdev_operations; | 484 | extern const struct file_operations ubi_vol_cdev_operations; |
484 | extern struct class *ubi_class; | 485 | extern struct class *ubi_class; |
485 | extern struct mutex ubi_devices_mutex; | 486 | extern struct mutex ubi_devices_mutex; |
487 | extern struct blocking_notifier_head ubi_notifiers; | ||
486 | 488 | ||
487 | /* vtbl.c */ | 489 | /* vtbl.c */ |
488 | int ubi_change_vtbl_record(struct ubi_device *ubi, int idx, | 490 | int ubi_change_vtbl_record(struct ubi_device *ubi, int idx, |
@@ -575,6 +577,16 @@ struct ubi_device *ubi_get_device(int ubi_num); | |||
575 | void ubi_put_device(struct ubi_device *ubi); | 577 | void ubi_put_device(struct ubi_device *ubi); |
576 | struct ubi_device *ubi_get_by_major(int major); | 578 | struct ubi_device *ubi_get_by_major(int major); |
577 | int ubi_major2num(int major); | 579 | int ubi_major2num(int major); |
580 | int ubi_volume_notify(struct ubi_device *ubi, struct ubi_volume *vol, | ||
581 | int ntype); | ||
582 | int ubi_notify_all(struct ubi_device *ubi, int ntype, | ||
583 | struct notifier_block *nb); | ||
584 | int ubi_enumerate_volumes(struct notifier_block *nb); | ||
585 | |||
586 | /* kapi.c */ | ||
587 | void ubi_do_get_device_info(struct ubi_device *ubi, struct ubi_device_info *di); | ||
588 | void ubi_do_get_volume_info(struct ubi_device *ubi, struct ubi_volume *vol, | ||
589 | struct ubi_volume_info *vi); | ||
578 | 590 | ||
579 | /* | 591 | /* |
580 | * ubi_rb_for_each_entry - walk an RB-tree. | 592 | * ubi_rb_for_each_entry - walk an RB-tree. |