Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

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

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_lock()

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

drivers/mtd/maps/scb2_flash.c scb2_flash_remove() -> mtd_lock()

Type Parameter Key Value
PARAM_VALUE 0 mtd 4096-ptr_max
PARAM_VALUE 1 ofs 0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 len unit_byte