Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

fs/lockd/svc4proc.c nlm4svc_lookup_file() -> lock_to_openmode()

Type Parameter Key Value
PARAM_VALUE 0 lock 4096-ptr_max
PARAM_VALUE 0 lock->c.flc_type 0-2
BUF_SIZE 0 lock 256
MEM_ZERO 0 lock

fs/lockd/svcproc.c nlm3svc_lookup_file() -> lock_to_openmode()

Type Parameter Key Value
PARAM_VALUE 0 lock 4096-ptr_max
PARAM_VALUE 0 lock->c.flc_type 0-2
BUF_SIZE 0 lock 256
MEM_ZERO 0 lock

fs/lockd/svclock.c nlmsvc_cancel_blocked() -> lock_to_openmode()

Type Parameter Key Value
PARAM_VALUE 0 lock 4096-ptr_max
BUF_SIZE 0 lock 256

fs/lockd/svclock.c nlmsvc_grant_blocked() -> lock_to_openmode()

Type Parameter Key Value
PARAM_VALUE 0 lock 4096-ptr_max

fs/lockd/svclock.c nlmsvc_lock() -> lock_to_openmode()

Type Parameter Key Value
PARAM_VALUE 0 lock 4096-ptr_max
PARAM_VALUE 0 lock->c.flc_type 0-2
LOCK2 &file->f_mutex
TYPE_LOCK (struct nlm_file)->f_mutex