Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/mtd/mtdcore.c add_mtd_device() -> mtd_unlock()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 0 mtd->dev.dma_io_tlb_mem->can_grow 0-1
PARAM_VALUE 0 mtd->dev.dma_io_tlb_mem->debugfs 0-s64max
PARAM_VALUE 0 mtd->dev.dma_io_tlb_mem->for_alloc 0-1
PARAM_VALUE 0 mtd->dev.dma_io_tlb_mem->force_bounce 0-1
PARAM_VALUE 0 mtd->dev.dma_io_tlb_mem->nslabs 0-s64max
PARAM_VALUE 0 mtd->dev.dma_io_tlb_mem->phys_limit 0-s64max
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->dev.type 0
PARAM_VALUE 0 mtd->flags 8192-u32max
PARAM_VALUE 0 mtd->index 0-s32max
PARAM_VALUE 0 mtd->ooblayout->ecc 0,4096-ptr_max
PARAM_VALUE 0 mtd->ooblayout->free 0,4096-ptr_max
PARAM_VALUE 0 mtd->refcnt.refcount.refs.counter 1
PARAM_VALUE 0 mtd->writesize 1-u32max
PARAM_VALUE 1 ofs 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->name (-1)
BIT_INFO 0 mtd->flags 0x2400,0xffffffff
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 mtd->erasesize
NO_OVERFLOW_SIMPLE 0 mtd->parent->erasesize
UNITS 2 len unit_byte
LOCK2 global &mtd_table_mutex
HALF_LOCKED2 &master->master.chrdev_lock

drivers/mtd/mtdchar.c mtdchar_ioctl() -> mtd_unlock()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
USER_DATA 1 ofs 0-u32max
USER_DATA 2 len 0-u32max
LOCK2 &master->master.chrdev_lock
TYPE_LOCK (struct mtd_master)->chrdev_lock

drivers/mtd/mtdconcat.c concat_xxlock() -> mtd_unlock()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 0 mtd->size 1-u64max
PARAM_VALUE 1 ofs s64min-(-2),0-s64max
CAPPED_DATA 0 mtd->size 1
CAPPED_DATA 1 ofs 1
CAPPED_DATA 1 ofs 1
DATA_SOURCE 1 ofs $1 [m]
PARAM_COMPARE 1 ofs < $0->size
PARAM_COMPARE 1 ofs < $0->size
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 ofs 0-s64max[c]
USER_DATA 2 len 0-u64max[c]
UNITS 1 ofs unit_byte
UNITS 2 len unit_byte
HALF_LOCKED2 &master->master.chrdev_lock
HALF_LOCKED2 global &mtd_table_mutex