Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

fs/file.c __range_close() -> file_close_fd_locked()

Type Parameter Key Value
PARAM_VALUE 0 files 4096-ptr_max
PARAM_VALUE 0 files->fdt 4096-ptr_max
PARAM_VALUE 0 files->file_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 fd 0-64
CAPPED_DATA 1 fd 1
DATA_SOURCE 0 files $0
DATA_SOURCE 1 fd $1 [m]
NOSPEC 0 files->next_fd
PREEMPT_ADD <- disables preempt
USER_DATA 0 files->next_fd 0-s32max[c]
USER_DATA 1 fd 0-64[c]
LOCK2 0 &files->file_lock
TYPE_LOCK (struct files_struct)->file_lock

fs/file.c close_fd() -> file_close_fd_locked()

Type Parameter Key Value
PARAM_VALUE 0 files 4096-ptr_max
PARAM_VALUE 0 files->file_lock.rlock.dep_map->name 0-255
DATA_SOURCE 1 fd $0
PREEMPT_ADD <- disables preempt
USER_DATA 1 fd 0-u32max
UNITS 1 fd unit_long
LOCK2 0 &files->file_lock
TYPE_LOCK (struct files_struct)->file_lock

fs/file.c file_close_fd() -> file_close_fd_locked()

Type Parameter Key Value
PARAM_VALUE 0 files 4096-ptr_max
PARAM_VALUE 0 files->file_lock.rlock.dep_map->name 0-255
DATA_SOURCE 1 fd $0
PREEMPT_ADD <- disables preempt
TASK_NOT_RUNNING
USER_DATA 1 fd 0-u32max
LOCK2 0 &files->file_lock
TYPE_LOCK (struct files_struct)->file_lock

io_uring/openclose.c io_close() -> file_close_fd_locked()

Type Parameter Key Value
PARAM_VALUE 0 files 4096-ptr_max
PARAM_VALUE 0 files->fdt 4096-ptr_max
PARAM_VALUE 0 files->fdt->fd 4096-ptr_max
PARAM_VALUE 0 files->file_lock.rlock.dep_map->name 0-255
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &files->file_lock
TYPE_LOCK (struct files_struct)->file_lock