Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/mtd/ubi/cdev.c ctrl_cdev_ioctl() -> ubi_attach_mtd_dev()

Type Parameter Key Value
PARAM_VALUE 0 mtd 0-ptr_max
PARAM_VALUE 1 ubi_num (-1)-s32max
DATA_SOURCE 0 mtd r get_mtd_device
CAPABLE 0 24
USER_DATA 1 ubi_num 0-s32max
USER_DATA 2 vid_hdr_offset s32min-s32max
USER_DATA 3 max_beb_per1024 s16min-s16max
USER_DATA 4 disable_fm 0-1
USER_DATA 5 need_resv_pool 0-1
USER_DATA 6 wl_threshold s32min-s32max
LOCK2 global &ubi_devices_mutex

drivers/mtd/ubi/build.c ubi_init_attach() -> ubi_attach_mtd_dev()

Type Parameter Key Value
PARAM_VALUE 0 mtd 0-ptr_max
BUF_SIZE 0 mtd (-1),64,88
BUF_SIZE 0 mtd (-1),64,88
DATA_SOURCE 0 mtd r open_mtd_device
LOCK2 global &ubi_devices_mutex

drivers/mtd/ubi/build.c ubi_notify_add() -> ubi_attach_mtd_dev()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 0 mtd->dbg.dfs_dir->d_inode->i_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 mtd->dbg.dfs_dir->d_inode->i_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 mtd->dev.kobj.parent->sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 mtd->dev.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 mtd->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 mtd->ooblayout->ecc 0,4096-ptr_max
PARAM_VALUE 0 mtd->ooblayout->free 0,4096-ptr_max
PARAM_VALUE 1 ubi_num (-1)
PARAM_VALUE 2 vid_hdr_offset 0
PARAM_VALUE 3 max_beb_per1024 0
PARAM_VALUE 4 disable_fm 0
PARAM_VALUE 5 need_resv_pool 0
PARAM_VALUE 6 wl_threshold 0
BUF_SIZE 0 mtd (-1),2448,2984
BUF_SIZE 0 mtd (-1),2448,2984
DATA_SOURCE 0 mtd $0
STR_LEN 0 mtd (-1),18
STR_LEN 0 mtd (-1),18
STR_LEN 0 mtd->dev.driver_data (-1)
STR_LEN 0 mtd->name (-1)
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 mtd->erasesize
NO_OVERFLOW_SIMPLE 0 mtd->parent->erasesize
LOCK2 global &mtd_table_mutex
LOCK2 global &ubi_devices_mutex