Searched refs:bpf_task_from_pid (Results 1 - 4 of 4) sorted by relevance

/linux-master/tools/testing/selftests/bpf/progs/
H A Dtask_kfunc_common.h25 struct task_struct *bpf_task_from_pid(s32 pid) __ksym;
H A Dtask_kfunc_success.c235 acquired = bpf_task_from_pid(p->pid);
270 acquired = bpf_task_from_pid(pid);
H A Dtask_kfunc_failure.c242 acquired = bpf_task_from_pid(task->pid);
244 /* Releasing bpf_task_from_pid() lookup without a NULL check. */
/linux-master/kernel/bpf/
H A Dhelpers.c2272 * bpf_task_from_pid - Find a struct task_struct from its pid by looking it up
2277 __bpf_kfunc struct task_struct *bpf_task_from_pid(s32 pid) function
2577 BTF_ID_FLAGS(func, bpf_task_from_pid, KF_ACQUIRE | KF_RET_NULL)

Completed in 123 milliseconds