Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 6 files:

Smatch caller information:

io_uring/openclose.c io_install_fixed_fd() -> receive_fd()

Type Parameter Key Value
PARAM_VALUE 1 ufd 0
RX_PATH
TASK_NOT_RUNNING

net/compat.c scm_recv_one_fd() -> receive_fd()

Type Parameter Key Value
PARAM_VALUE 1 ufd 1-u64max
PARAM_VALUE 2 o_flags 0,524288
DATA_SOURCE 0 file $0
DATA_SOURCE 1 ufd $1
DATA_SOURCE 2 o_flags $2
FUZZY_MAX 2 o_flags 524288
BIT_INFO 2 o_flags 0x0,0x80000
HARD_MAX 2 o_flags 524288
RX_PATH
TASK_NOT_RUNNING
UNITS 1 ufd unit_byte
HALF_LOCKED2 &u->iolock

kernel/pid.c pidfd_getfd() -> receive_fd()

Type Parameter Key Value
PARAM_VALUE 0 file 4096-ptr_max
PARAM_VALUE 1 ufd 0
PARAM_VALUE 2 o_flags 524288
CAPPED_DATA 0 file 1
DATA_SOURCE 0 file r __pidfd_fget

net/core/scm.c scm_recv_one_fd() -> receive_fd()

Type Parameter Key Value
PARAM_VALUE 1 ufd 1-u64max
PARAM_VALUE 2 o_flags 0,524288
DATA_SOURCE 0 file $0
DATA_SOURCE 1 ufd $1
DATA_SOURCE 2 o_flags $2
FUZZY_MAX 2 o_flags 524288
BIT_INFO 2 o_flags 0x0,0x80000
HARD_MAX 2 o_flags 524288
RX_PATH
TASK_NOT_RUNNING
UNITS 1 ufd unit_byte
HALF_LOCKED2 &u->iolock

drivers/vdpa/vdpa_user/vduse_dev.c vduse_dev_compat_ioctl() -> receive_fd()

Type Parameter Key Value
PARAM_VALUE 0 file 4096-ptr_max
PARAM_VALUE 1 ufd 0
PARAM_VALUE 2 o_flags 0-2

drivers/vdpa/vdpa_user/vduse_dev.c vduse_dev_ioctl() -> receive_fd()

Type Parameter Key Value
PARAM_VALUE 0 file 4096-ptr_max
PARAM_VALUE 1 ufd 0
PARAM_VALUE 2 o_flags 0-2

kernel/seccomp.c seccomp_handle_addfd() -> receive_fd()

Type Parameter Key Value
PARAM_VALUE 1 ufd 0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &match->notify_lock
TYPE_LOCK (struct seccomp_filter)->notify_lock