Defined in 1 files as a prototype:

Defined in 1 files as a member:

Defined in 2 files as a function:

Referenced in 2 files:

Smatch caller information:

ipc/shm.c shm_destroy() -> shmem_lock()

Type Parameter Key Value
PARAM_VALUE 0 file 4096-ptr_max
PARAM_VALUE 0 file->f_op 4096-ptr_max
PARAM_VALUE 1 lock 0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &ipcp->lock

ipc/shm.c shmctl_do_lock() -> shmem_lock()

Type Parameter Key Value
PARAM_VALUE 0 file 4096-ptr_max
PARAM_VALUE 0 file->f_op 4096-ptr_max
PARAM_VALUE 1 lock 1
NS_CAPABLE 0 14
PREEMPT_ADD <- disables preempt
LOCK2 &shp->shm_perm.lock
LOCK2 rcu_read
TYPE_LOCK (struct kern_ipc_perm)->lock

ipc/shm.c shmctl_do_lock() -> shmem_lock()

Type Parameter Key Value
PARAM_VALUE 0 file 4096-ptr_max
PARAM_VALUE 0 file->f_op 4096-ptr_max
PARAM_VALUE 1 lock 0
NS_CAPABLE 0 14
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &shp->shm_perm.lock
LOCK2 rcu_read
TYPE_LOCK (struct kern_ipc_perm)->lock