linux/drivers/mtd/ubi
Dmitry Pervushin 0e0ee1cc33 UBI: add notification API
UBI volume notifications are intended to create the API to get clients
notified about volume creation/deletion, renaming and re-sizing. A
client can subscribe to these notifications using 'ubi_volume_register()'
and cancel the subscription using 'ubi_volume_unregister()'. When UBI
volumes change, a blocking notifier is called. Clients also can request
"added" events on all volumes that existed before client subscribed
to the notifications.

If we use notifications instead of calling functions like 'ubi_gluebi_xxx()',
we can make the MTD emulation layer to be more flexible: build it as a
separate module and load/unload it on demand.

[Artem: many cleanups, rework locking, add "updated" event, provide
 device/volume info in notifiers]

Signed-off-by: Dmitry Pervushin <dpervushin@embeddedalley.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2009-06-02 13:53:35 +03:00
..
build.c UBI: add notification API 2009-06-02 13:53:35 +03:00
cdev.c UBI: add notification API 2009-06-02 13:53:35 +03:00
debug.c UBI: remove pre-sqnum images support 2008-07-24 13:36:09 +03:00
debug.h UBI: fix checkpatch.pl warnings 2008-12-28 12:20:51 +02:00
eba.c UBI: do not switch to R/O mode on read errors 2009-06-02 13:53:35 +03:00
gluebi.c UBI: use nicer 64-bit math 2009-01-18 14:27:44 +02:00
io.c UBI: fix races in I/O debugging checks 2009-05-18 12:28:25 +03:00
kapi.c UBI: add notification API 2009-06-02 13:53:35 +03:00
Kconfig UBI: improve Kconfig documentation 2008-04-17 11:32:00 +03:00
Kconfig.debug UBI: allow direct user-space I/O 2009-01-27 16:54:41 +02:00
Makefile UBI: Unsorted Block Images 2007-04-27 14:23:33 +03:00
misc.c UBI: avoid unnecessary division operations 2008-07-24 13:32:54 +03:00
scan.c UBI: use nicer 64-bit math 2009-01-18 14:27:44 +02:00
scan.h UBI: remove pre-sqnum images support 2008-07-24 13:36:09 +03:00
ubi-media.h trivial: fix then -> than typos in comments and documentation 2009-01-06 11:28:06 +01:00
ubi.h UBI: add notification API 2009-06-02 13:53:35 +03:00
upd.c UBI: minor serialization fix 2009-05-18 12:28:26 +03:00
vmt.c UBI: add notification API 2009-06-02 13:53:35 +03:00
vtbl.c trivial: fix then -> than typos in comments and documentation 2009-01-06 11:28:06 +01:00
wl.c UBI: do not switch to R/O mode on read errors 2009-06-02 13:53:35 +03:00