Defined in 2 files as a function:
- include/linux/filelock.h, line 179 (as a function)
- include/linux/filelock.h, line 308 (as a function)
Referenced in 10 files:
- fs/afs/flock.c
- fs/ceph/locks.c
- fs/gfs2/file.c
- fs/locks.c
- fs/nfs/file.c
- fs/nfs/nfs4proc.c, line 7721
- fs/ocfs2/locks.c, line 110
- fs/ocfs2/stack_user.c, line 736
- fs/smb/client/file.c
- fs/smb/server/smb2pdu.c
Smatch caller information:
fs/afs/flock.c afs_do_getlk() -> lock_is_unlock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| BUF_SIZE | 0 | fl | (-1)-s32max |
| BUF_SIZE | 0 | fl | (-1)-s32max |
| BUF_SIZE | 0 | fl->c.flc_file | (-1)-s32max |
| BUF_SIZE | 0 | fl->fl_lmops | (-1),56 |
| DATA_SOURCE | 0 | fl | $1 |
| NOSPEC | 0 | fl->fl_start | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | fl->c.flc_type | 0-1 |
| USER_DATA | 0 | fl->fl_start | s64min-s64max[c] |
fs/afs/flock.c afs_flock() -> lock_is_unlock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 6679205499366121472,8240022910925856768 |
| PARAM_VALUE | 0 | fl->c.flc_type | 0-2 |
| DATA_SOURCE | 0 | fl | $2 |
| BIT_INFO | 0 | fl->c.flc_flags | 0x2,0xffffffffffffffff |
| BIT_INFO | 0 | fl->fl_u.afs.debug_id | 0x0,0x7fffffff |
| MEM_ZERO | 0 | fl | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/afs/flock.c afs_lock() -> lock_is_unlock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| BUF_SIZE | 0 | fl | (-1),256 |
| BUF_SIZE | 0 | fl | (-1),256 |
| BUF_SIZE | 0 | fl->fl_lmops | (-1),56 |
| DATA_SOURCE | 0 | fl | $2 |
| BIT_INFO | 0 | fl->fl_u.afs.debug_id | 0x0,0x7fffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | fl->c.flc_type | 0-2 |
| USER_DATA | 0 | fl->fl_start | s64min-9223372036854775806[c][u] |
fs/ocfs2/stack_user.c user_plock() -> lock_is_unlock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| BUF_SIZE | 0 | fl | (-1)-s32max |
| BUF_SIZE | 0 | fl | (-1)-s32max |
| BUF_SIZE | 0 | fl->c.flc_file | (-1),1-s32max |
| BUF_SIZE | 0 | fl->fl_lmops | (-1),56 |
| DATA_SOURCE | 0 | fl | $4 |
| BIT_INFO | 0 | fl->c.flc_flags | 0x1,0xffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/ceph/locks.c ceph_flock() -> lock_is_unlock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 6679205499366121472,8240022910925856768 |
| PARAM_VALUE | 0 | fl->c.flc_type | 0-2 |
| DATA_SOURCE | 0 | fl | $2 |
| BIT_INFO | 0 | fl->c.flc_flags | 0x2,0xff |
| MEM_ZERO | 0 | fl | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/ceph/locks.c ceph_flock() -> lock_is_unlock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 6679205499366121472,8240022910925856768 |
| PARAM_VALUE | 0 | fl->c.flc_type | 0-2 |
| DATA_SOURCE | 0 | fl | $2 |
| BIT_INFO | 0 | fl->c.flc_flags | 0x2,0xff |
| MEM_ZERO | 0 | fl | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/ceph/locks.c ceph_flock() -> lock_is_unlock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 6679205499366121472,8240022910925856768 |
| PARAM_VALUE | 0 | fl->c.flc_type | 0-2 |
| DATA_SOURCE | 0 | fl | $2 |
| BIT_INFO | 0 | fl->c.flc_flags | 0x2,0xffffffffffffffff |
| MEM_ZERO | 0 | fl | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/ceph/locks.c ceph_lock() -> lock_is_unlock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| BUF_SIZE | 0 | fl | (-1),256 |
| BUF_SIZE | 0 | fl | (-1),256 |
| BUF_SIZE | 0 | fl->fl_lmops | (-1),56 |
| DATA_SOURCE | 0 | fl | $2 |
| BIT_INFO | 0 | fl->c.flc_flags | 0x1,0xffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | fl->c.flc_type | 0-2 |
| USER_DATA | 0 | fl->fl_start | s64min-9223372036854775806[c][u] |
fs/ceph/locks.c ceph_lock() -> lock_is_unlock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| BUF_SIZE | 0 | fl | (-1),256 |
| BUF_SIZE | 0 | fl | (-1),256 |
| BUF_SIZE | 0 | fl->fl_lmops | (-1),56 |
| DATA_SOURCE | 0 | fl | $2 |
| BIT_INFO | 0 | fl->c.flc_flags | 0x1,0xffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | fl->c.flc_type | 0-2 |
| USER_DATA | 0 | fl->fl_start | s64min-9223372036854775806[c][u] |
fs/ceph/locks.c ceph_lock() -> lock_is_unlock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| BUF_SIZE | 0 | fl | (-1),256 |
| BUF_SIZE | 0 | fl | (-1),256 |
| BUF_SIZE | 0 | fl->fl_lmops | (-1),56 |
| DATA_SOURCE | 0 | fl | $2 |
| BIT_INFO | 0 | fl->c.flc_flags | 0x1,0xffffffffffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | fl->c.flc_type | 0-2 |
| USER_DATA | 0 | fl->fl_start | s64min-9223372036854775806[c][u] |
fs/nfs/file.c nfs_flock() -> lock_is_unlock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 6679205499366121472,8240022910925856768 |
| PARAM_VALUE | 0 | fl->c.flc_type | 0-2 |
| DATA_SOURCE | 0 | fl | $2 |
| BIT_INFO | 0 | fl->c.flc_flags | 0x2,0xff |
| MEM_ZERO | 0 | fl | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/nfs/file.c nfs_lock() -> lock_is_unlock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| BUF_SIZE | 0 | fl | (-1),256 |
| BUF_SIZE | 0 | fl | (-1),256 |
| BUF_SIZE | 0 | fl->fl_lmops | (-1),56 |
| DATA_SOURCE | 0 | fl | $2 |
| BIT_INFO | 0 | fl->c.flc_flags | 0x0,0xffffefff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | fl->c.flc_type | 0-2 |
| USER_DATA | 0 | fl->fl_start | s64min-9223372036854775806[c][u] |
fs/smb/client/file.c cifs_posix_lock_test() -> lock_is_unlock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| BUF_SIZE | 0 | fl | (-1)-s32max |
| BUF_SIZE | 0 | fl | (-1)-s32max |
| BUF_SIZE | 0 | fl->c.flc_file | (-1),1-s32max |
| BUF_SIZE | 0 | fl->fl_lmops | (-1),56 |
| DATA_SOURCE | 0 | fl | $1 |
| NOSPEC | 0 | fl->fl_start | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | fl->c.flc_type | 0-1 |
| USER_DATA | 0 | fl->fl_start | s64min-s64max[c] |
| LOCK2 | &cinode->lock_sem | ||
| TYPE_LOCK | (struct cifsInodeInfo)->lock_sem |
fs/smb/client/file.c cifs_read_flock() -> lock_is_unlock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| PARAM_VALUE | 0 | fl->c.flc_type | 0,2-255 |
| BUF_SIZE | 0 | fl | (-1)-s32max |
| BUF_SIZE | 0 | fl | (-1)-s32max |
| BUF_SIZE | 0 | fl->c.flc_file | (-1)-s32max |
| BUF_SIZE | 0 | fl->fl_lmops | (-1),56 |
| DATA_SOURCE | 0 | fl | $0 |
| NOSPEC | 0 | fl->fl_start | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | fl->c.flc_type | 0,2 |
| USER_DATA | 0 | fl->fl_start | s64min-9223372036854775806[c][u] |
fs/smb/server/smb2pdu.c smb2_lock() -> lock_is_unlock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| PREEMPT_ADD | <- disables preempt | ||
| NO_OVERFLOW_SIMPLE | 0 | fl->fl_start | |
| LOCK2 | &conn->llist_lock | ||
| LOCK2 | global &conn_list_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct ksmbd_conn)->llist_lock |
fs/locks.c flock_lock_inode() -> lock_is_unlock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| BUF_SIZE | 0 | fl | (-1),1-s32max |
| BUF_SIZE | 0 | fl | (-1),1-s32max |
| BUF_SIZE | 0 | fl->c.flc_file | s32min,(-1),1-s32max |
| BUF_SIZE | 0 | fl->c.flc_owner | (-1),1-s32max |
| BUF_SIZE | 0 | fl->fl_lmops | (-1),56 |
| BUF_SIZE | 0 | fl->fl_ops | (-1),16 |
| DATA_SOURCE | 0 | fl | $1 |
| BIT_INFO | 0 | fl->c.flc_flags | 0x0,0xfffffff7 |
| NOSPEC | 0 | fl->c.flc_type | |
| NOSPEC | 0 | fl->fl_start | |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | fl->c.flc_type | 0-1 |
| USER_DATA | 0 | fl->fl_start | s64min-s64max[c] |
| LOCK2 | &ctx->flc_lock | ||
| TYPE_LOCK | (struct file_lock_context)->flc_lock |
fs/locks.c posix_lock_inode() -> lock_is_unlock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| BUF_SIZE | 0 | fl | (-1)-s32max |
| BUF_SIZE | 0 | fl | (-1)-s32max |
| BUF_SIZE | 0 | fl->c.flc_file | s32min,(-1)-s32max |
| BUF_SIZE | 0 | fl->c.flc_owner | (-1),1-s32max |
| BUF_SIZE | 0 | fl->fl_lmops | (-1),56 |
| BUF_SIZE | 0 | fl->fl_ops | (-1),16 |
| DATA_SOURCE | 0 | fl | $1 |
| NOSPEC | 0 | fl->c.flc_type | |
| NOSPEC | 0 | fl->fl_start | |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | fl->c.flc_type | 0-2 |
| USER_DATA | 0 | fl->fl_start | s64min-s64max[c] |
fs/locks.c posix_lock_inode() -> lock_is_unlock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| BUF_SIZE | 0 | fl | (-1)-s32max |
| BUF_SIZE | 0 | fl | (-1)-s32max |
| BUF_SIZE | 0 | fl->c.flc_file | s32min,(-1)-s32max |
| BUF_SIZE | 0 | fl->c.flc_owner | (-1),1-s32max |
| BUF_SIZE | 0 | fl->fl_lmops | (-1),56 |
| BUF_SIZE | 0 | fl->fl_ops | (-1),16 |
| CAPPED_DATA | 0 | fl->c.flc_owner | 1 |
| CAPPED_DATA | 0 | fl->fl_start | 1 |
| DATA_SOURCE | 0 | fl | $1 [m] |
| NOSPEC | 0 | fl->c.flc_type | |
| NOSPEC | 0 | fl->fl_start | |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | fl->c.flc_type | 0-1 |
| USER_DATA | 0 | fl->fl_start | s64min-s64max[c] |
| LOCK2 | &ctx->flc_lock | ||
| TYPE_LOCK | (struct file_lock_context)->flc_lock |
fs/locks.c posix_lock_inode() -> lock_is_unlock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| BUF_SIZE | 0 | fl | (-1)-s32max |
| BUF_SIZE | 0 | fl | (-1)-s32max |
| BUF_SIZE | 0 | fl->c.flc_file | s32min,(-1)-s32max |
| BUF_SIZE | 0 | fl->c.flc_owner | (-1),1-s32max |
| BUF_SIZE | 0 | fl->fl_lmops | (-1),56 |
| BUF_SIZE | 0 | fl->fl_ops | (-1),16 |
| DATA_SOURCE | 0 | fl | $1 |
| BIT_INFO | 0 | fl->c.flc_flags | 0x0,0xfffffff7 |
| NOSPEC | 0 | fl->c.flc_type | |
| NOSPEC | 0 | fl->fl_start | |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | fl->c.flc_type | 0-1 |
| USER_DATA | 0 | fl->fl_start | s64min-s64max[c] |
| LOCK2 | &ctx->flc_lock | ||
| TYPE_LOCK | (struct file_lock_context)->flc_lock |
fs/locks.c posix_test_locks_conflict() -> lock_is_unlock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| BUF_SIZE | 0 | fl | (-1)-s32max |
| BUF_SIZE | 0 | fl | (-1)-s32max |
| BUF_SIZE | 0 | fl->c.flc_file | (-1),1-s32max |
| BUF_SIZE | 0 | fl->c.flc_owner | (-1),1-s32max |
| BUF_SIZE | 0 | fl->fl_lmops | (-1),56 |
| DATA_SOURCE | 0 | fl | $0 |
| NOSPEC | 0 | fl->fl_start | |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | fl->c.flc_type | 0-2 |
| USER_DATA | 0 | fl->fl_start | s64min-9223372036854775806[c][u] |
| LOCK2 | &ctx->flc_lock | ||
| HALF_LOCKED2 | &cinode->lock_sem | ||
| TYPE_LOCK | (struct file_lock_context)->flc_lock |
fs/nfs/nfs4proc.c nfs4_proc_lock() -> lock_is_unlock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| BUF_SIZE | 0 | fl | (-1)-s32max |
| BUF_SIZE | 0 | fl | (-1)-s32max |
| BUF_SIZE | 0 | fl->c.flc_file | (-1),1-s32max |
| BUF_SIZE | 0 | fl->fl_lmops | (-1),56 |
| DATA_SOURCE | 0 | fl | $2 |
| NOSPEC | 0 | fl->fl_start | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | fl->c.flc_type | 0-2 |
| USER_DATA | 0 | fl->fl_start | s64min-s64max[c] |
fs/gfs2/file.c gfs2_flock() -> lock_is_unlock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 6679205499366121472,8240022910925856768 |
| PARAM_VALUE | 0 | fl->c.flc_type | 0-2 |
| DATA_SOURCE | 0 | fl | $2 |
| BIT_INFO | 0 | fl->c.flc_flags | 0x2,0xff |
| MEM_ZERO | 0 | fl | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/gfs2/file.c gfs2_lock() -> lock_is_unlock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| BUF_SIZE | 0 | fl | (-1),256 |
| BUF_SIZE | 0 | fl | (-1),256 |
| BUF_SIZE | 0 | fl->fl_lmops | (-1),56 |
| DATA_SOURCE | 0 | fl | $2 |
| BIT_INFO | 0 | fl->c.flc_flags | 0x1,0xffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | fl->c.flc_type | 0-2 |
| USER_DATA | 0 | fl->fl_start | s64min-9223372036854775806[c][u] |
fs/gfs2/file.c gfs2_lock() -> lock_is_unlock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 4096-ptr_max |
| BUF_SIZE | 0 | fl | (-1),256 |
| BUF_SIZE | 0 | fl | (-1),256 |
| BUF_SIZE | 0 | fl->fl_lmops | (-1),56 |
| DATA_SOURCE | 0 | fl | $2 |
| BIT_INFO | 0 | fl->c.flc_flags | 0x1,0xffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | fl->c.flc_type | 0-2 |
| USER_DATA | 0 | fl->fl_start | s64min-9223372036854775806[c][u] |
| LOCK2 | &ls->ls_sem | ||
| HALF_LOCKED2 | &file->f_mutex | ||
| TYPE_LOCK | (struct lm_lockstruct)->ls_sem |
fs/ocfs2/locks.c ocfs2_flock() -> lock_is_unlock()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fl | 6679205499366121472,8240022910925856768 |
| PARAM_VALUE | 0 | fl->c.flc_type | 0-2 |
| DATA_SOURCE | 0 | fl | $2 |
| BIT_INFO | 0 | fl->c.flc_flags | 0x2,0xff |
| MEM_ZERO | 0 | fl | |
| RX_PATH | |||
| TASK_NOT_RUNNING |