Skip to contentSkip to conversation

0/4 notifications

PATCH In review dmitry pervushin 2 participants 2 messages Dec 8, 2008 – Dec 9, 2008 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 0/4 notifications

Hello all,

I am glad to present the serie of patches that implement volume notifications in UBI and based on these notifications reworked MTD emulation layer and a simple mtdblock-like FTL.

UBI volume notifications is intended to create the API to get clients notified about volume creation/deletion, renaming and changing(actually, resizing). A client can subscribe to these notifications using ubi_volume_register and cancel the subsription using ubi_volume_unregister. When UBI volume change occurs, the atomic notifier will be called. Client also can request "added" event on all volumes that existed before client subscribed to the notifications.

Using notifications instead of calling functions ubi_gluebi_xxx allows MTD emulation layer to be more flexible; say, now is it possible to build it as a module and load/unload it on demand.

The simple FTL uses the same notification mechanism and provides mtdblock-like layer.

#1 lore raw
Quoted 12 lines · dmitry pervushin

I am glad to present the serie of patches that implement volume notifications in UBI and based on these notifications reworked MTD emulation layer and a simple mtdblock-like FTL.

UBI volume notifications is intended to create the API to get clients notified about volume creation/deletion, renaming and changing(actually, resizing). A client can subscribe to these notifications using ubi_volume_register and cancel the subsription using ubi_volume_unregister. When UBI volume change occurs, the atomic notifier will be called. Client also can request "added" event on all volumes that existed before client subscribed to the notifications.

Quoted 6 lines

Using notifications instead of calling functions ubi_gluebi_xxx allows MTD emulation layer to be more flexible; say, now is it possible to build it as a module and load/unload it on demand.

The simple FTL uses the same notification mechanism and provides mtdblock-like layer.

Hi,

minor general notes:

1. Please, make sure checkpatch.pl is happy - here are complaints about trailing white-spaces.

2. Would you please add kernel-doc style comments functions you introduce? Lets maintain consistent code style please.

Signature · 2 lines
Best regards,
Artem Bityutskiy (Битюцкий Артём)