Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

fs/file.c do_close_on_exec() -> __put_unused_fd()

Type Parameter Key Value
PARAM_VALUE 0 files 4096-ptr_max
PARAM_VALUE 0 files->fdt->close_on_exec 4096-ptr_max
PARAM_VALUE 0 files->fdt->fd 4096-ptr_max
PARAM_VALUE 0 files->fdt->max_fds 1-u32max
PARAM_VALUE 0 files->file_lock.rlock.dep_map->name 0-255
DATA_SOURCE 0 files $0
FUZZY_MAX 0 files->fdt->max_fds 1
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
UNITS 1 fd unit_long
LOCK2 &tsk->signal->exec_update_lock
LOCK2 0 &files->file_lock
TYPE_LOCK (struct files_struct)->file_lock

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

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->fdt->max_fds 1-u32max
PARAM_VALUE 0 files->file_lock.rlock.dep_map->name 0-255
PARAM_VALUE 1 fd 0-4294967294
CAPPED_DATA 1 fd 1
DATA_SOURCE 0 files $0
NOSPEC 0 files->next_fd
NOSPEC 1 fd
NOSPEC 1 fd
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 0 files->next_fd 0-s32max[c]
USER_DATA 1 fd 0-s32max[c]
UNITS 1 fd unit_long
LOCK2 0 &files->file_lock
TYPE_LOCK (struct files_struct)->file_lock

fs/file.c put_unused_fd() -> __put_unused_fd()

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
NOSPEC 1 fd
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 1 fd 0-s32max[c]
LOCK2 0 &files->file_lock
HALF_LOCKED2 &ctx->uring_lock
HALF_LOCKED2 &dev_priv->cmdbuf_mutex
HALF_LOCKED2 &ne_pci_dev->enclaves_list_mutex
HALF_LOCKED2 &p->mutex
HALF_LOCKED2 &tsk->signal->exec_update_lock
HALF_LOCKED2 &u->iolock
HALF_LOCKED2 &ufile->hw_destroy_rwsem
HALF_LOCKED2 &vcpu->mutex
HALF_LOCKED2 &viommu->veventqs_rwsem
HALF_LOCKED2 _T->lock
HALF_LOCKED2 sk
TYPE_LOCK (struct files_struct)->file_lock