Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/input/ff-core.c erase_effect() -> check_effect_access()

Type Parameter Key Value
PARAM_VALUE 2 file 0,4096-ptr_max
BUF_SIZE 2 file (-1),1-s32max
BUF_SIZE 2 file (-1),1-s32max
BUF_SIZE 2 file->private_data (-1),26
CAPPED_DATA 2 file 1
DATA_SOURCE 1 effect_id $1
DATA_SOURCE 2 file $2
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 2 file->f_inode->i_blkbits
NO_OVERFLOW_SIMPLE 2 file->f_inode->i_ino
NO_OVERFLOW_SIMPLE 2 file->f_inode->i_linklen
NO_OVERFLOW_SIMPLE 2 file->f_inode->i_size
NO_OVERFLOW_SIMPLE 2 file->f_path.d_inode->i_size
NO_OVERFLOW_SIMPLE 2 file->f_path.dentry->d_inode->i_size
NO_OVERFLOW_SIMPLE 2 file->f_path.moved->d_inode->i_size
UNITS 1 effect_id unit_array_size
LOCK2 _T->lock
HALF_LOCKED2 &evdev->mutex

drivers/input/ff-core.c input_ff_event() -> check_effect_access()

Type Parameter Key Value
PARAM_VALUE 1 effect_id s32min-95,98-s32max
PARAM_VALUE 2 file 0
DATA_SOURCE 1 effect_id $2
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 effect_id 0-95,98-u16max
HALF_LOCKED2 &dev->event_lock
HALF_LOCKED2 irq

drivers/input/ff-core.c input_ff_upload() -> check_effect_access()

Type Parameter Key Value
PARAM_VALUE 0 ff 4096-ptr_max
PARAM_VALUE 1 effect_id s16min-(-2),0-s16max
PARAM_VALUE 2 file 4096-ptr_max
DATA_SOURCE 2 file $2
USER_DATA 1 effect_id s16min-(-2),0-s16max
UNITS 1 effect_id unit_array_size
LOCK2 &evdev->mutex
LOCK2 _T->lock
TYPE_LOCK (struct evdev)->mutex