Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 20 files:

Smatch caller information:

drivers/gpu/drm/xe/xe_device.c xe_file_open() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 0 pid 0,4096-ptr_max
PARAM_VALUE 1 type 0
CAPABLE 0 21
RX_PATH
TASK_NOT_RUNNING

drivers/accel/habanalabs/common/device.c device_kill_open_processes() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 1 type 0
RX_PATH
TASK_NOT_RUNNING
LOCK2 hpriv_lock
HALF_LOCKED2 &dev->mutex

fs/pidfs.c pidfd_info() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 0 pid 4096-ptr_max
PARAM_VALUE 1 type 0
BUF_SIZE 0 pid s32min-(-1),1-s32max
BUF_SIZE 0 pid s32min-(-1),1-s32max
DATA_SOURCE 0 pid r pidfd_pid

fs/pidfs.c pidfd_ioctl() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 1 type 0
BUF_SIZE 0 pid s32min-(-1),1-s32max

drivers/gpu/drm/i915/selftests/i915_selftest.c get_selftest_mm() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 0 pid 4096-ptr_max
PARAM_VALUE 1 type 0
DATA_SOURCE 0 pid r find_get_pid
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c kfd_lookup_process_by_pid() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 0 pid 4096-ptr_max
PARAM_VALUE 1 type 0
DATA_SOURCE 0 pid $0
HALF_LOCKED2 &process_info->lock

fs/proc/base.c get_proc_task() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 1 type 0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &m->lock

fs/proc/base.c proc_single_show() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 1 type 0
DATA_SOURCE 0 pid r proc_pid
RX_PATH
TASK_NOT_RUNNING
LOCK2 &m->lock
TYPE_LOCK (struct seq_file)->lock

fs/proc/base.c timers_start() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 1 type 0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &m->lock
TYPE_LOCK (struct seq_file)->lock

fs/proc/namespaces.c get_proc_task() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 1 type 0
RX_PATH
TASK_NOT_RUNNING

mm/damon/vaddr.c damon_get_task_struct() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 1 type 0

fs/proc/task_mmu.c get_proc_task() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 1 type 0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &m->lock

kernel/bpf/syscall.c bpf_task_fd_query() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 1 type 0
CAPABLE 0 21
LOCK2 rcu_read

drivers/infiniband/core/umem_odp.c ib_umem_odp_map_dma_and_lock() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 1 type 0
RX_PATH
TASK_NOT_RUNNING

fs/proc/fd.c get_proc_task() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 1 type 0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &m->lock

drivers/gpu/drm/etnaviv/etnaviv_gpu.c etnaviv_gpu_recover_hang() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 1 type 0
HALF_LOCKED2 &pool->lock

kernel/pid.c pidfd_get_task() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 1 type 0-1
BUF_SIZE 0 pid s32min-(-1),1-s32max
BUF_SIZE 0 pid s32min-(-1),1-s32max
FUZZY_MAX 1 type 1
HARD_MAX 1 type 1

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

Type Parameter Key Value
PARAM_VALUE 0 pid 0-ptr_max
PARAM_VALUE 1 type 0
BUF_SIZE 0 pid s32min-(-2),1-s32max
BUF_SIZE 0 pid s32min-(-2),1-s32max
DATA_SOURCE 0 pid $0

fs/proc_namespace.c get_proc_task() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 1 type 0
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_chardev.c kfd_ioctl_set_debug_trap() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 0 pid 4096-ptr_max
PARAM_VALUE 1 type 0
DATA_SOURCE 0 pid r find_get_pid

drivers/gpu/drm/msm/msm_gpu.c get_comm_cmdline() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 1 type 0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &gpu->lock
TYPE_LOCK (struct msm_gpu)->lock

drivers/gpu/drm/msm/msm_gpu.c recover_worker() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 1 type 0
LOCK2 &gpu->lock
TYPE_LOCK (struct msm_gpu)->lock

drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c amdgpu_amdkfd_restore_userptr_worker() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 1 type 0
HALF_LOCKED2 &pool->lock

kernel/bpf/task_iter.c task_group_seq_get_next() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 1 type 1
DATA_SOURCE 0 pid r find_pid_ns
RX_PATH
TASK_NOT_RUNNING
LOCK2 &seq->lock
LOCK2 rcu_read
TYPE_LOCK (struct seq_file)->lock

kernel/bpf/task_iter.c task_group_seq_get_next() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 1 type 0
DATA_SOURCE 0 pid r find_pid_ns
RX_PATH
TASK_NOT_RUNNING
LOCK2 &seq->lock
LOCK2 rcu_read
TYPE_LOCK (struct seq_file)->lock

kernel/bpf/task_iter.c task_seq_get_next() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 0 pid 1-u64max
PARAM_VALUE 1 type 0
DATA_SOURCE 0 pid r find_pid_ns
RX_PATH
TASK_NOT_RUNNING
LOCK2 &seq->lock
LOCK2 rcu_read
TYPE_LOCK (struct seq_file)->lock

kernel/bpf/task_iter.c task_seq_get_next() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 0 pid 1-u64max
PARAM_VALUE 1 type 0
DATA_SOURCE 0 pid r find_ge_pid
RX_PATH
TASK_NOT_RUNNING
LOCK2 &seq->lock
LOCK2 rcu_read
TYPE_LOCK (struct seq_file)->lock

kernel/trace/bpf_trace.c bpf_uprobe_multi_link_attach() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 1 type 1
LOCK2 rcu_read

arch/x86/kvm/../../../virt/kvm/kvm_main.c kvm_vcpu_yield_to() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 0 pid 1-u64max
PARAM_VALUE 1 type 0
LOCK2 &target->pid_lock
TYPE_LOCK (struct kvm_vcpu)->pid_lock

drivers/gpu/drm/msm/msm_gem.c msm_gem_describe() -> get_pid_task()

Type Parameter Key Value
PARAM_VALUE 1 type 0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &m->lock
LOCK2 obj->resv
HALF_LOCKED2 &priv->obj_lock
TYPE_LOCK (struct seq_file)->lock