• A
    UBI: add UBI control device · 9f961b57
    Artem Bityutskiy 提交于
    This patch is a preparation to make UBI devices dynamic. It
    adds an UBI control device which has dynamically allocated
    major number and registers itself as "ubi_ctrl". It does not
    do anything so far. The idea is that this device will allow
    to attach/detach MTD devices from userspace.
    
    This is symilar to what the Linux device mapper has.
    
    The next things to do are:
    * Fix UBI, because it now assumes UBI devices cannot go away
    * Implement control device ioctls which will attach/detach MTD
      devices
    Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
    9f961b57
cdev.c 15.7 KB