Lines Matching refs:pid
121 struct pid *pid; in bpf_pid_task_storage_lookup_elem() local
125 pid = pidfd_get_pid(fd, &f_flags); in bpf_pid_task_storage_lookup_elem()
126 if (IS_ERR(pid)) in bpf_pid_task_storage_lookup_elem()
127 return ERR_CAST(pid); in bpf_pid_task_storage_lookup_elem()
133 task = pid_task(pid, PIDTYPE_PID); in bpf_pid_task_storage_lookup_elem()
142 put_pid(pid); in bpf_pid_task_storage_lookup_elem()
145 put_pid(pid); in bpf_pid_task_storage_lookup_elem()
155 struct pid *pid; in bpf_pid_task_storage_update_elem() local
159 pid = pidfd_get_pid(fd, &f_flags); in bpf_pid_task_storage_update_elem()
160 if (IS_ERR(pid)) in bpf_pid_task_storage_update_elem()
161 return PTR_ERR(pid); in bpf_pid_task_storage_update_elem()
167 task = pid_task(pid, PIDTYPE_PID); in bpf_pid_task_storage_update_elem()
180 put_pid(pid); in bpf_pid_task_storage_update_elem()
201 struct pid *pid; in bpf_pid_task_storage_delete_elem() local
205 pid = pidfd_get_pid(fd, &f_flags); in bpf_pid_task_storage_delete_elem()
206 if (IS_ERR(pid)) in bpf_pid_task_storage_delete_elem()
207 return PTR_ERR(pid); in bpf_pid_task_storage_delete_elem()
213 task = pid_task(pid, PIDTYPE_PID); in bpf_pid_task_storage_delete_elem()
223 put_pid(pid); in bpf_pid_task_storage_delete_elem()