Lines Matching refs:pid
123 struct pid *pid; in bpf_pid_task_storage_lookup_elem() local
127 pid = pidfd_get_pid(fd, &f_flags); in bpf_pid_task_storage_lookup_elem()
128 if (IS_ERR(pid)) in bpf_pid_task_storage_lookup_elem()
129 return ERR_CAST(pid); in bpf_pid_task_storage_lookup_elem()
135 task = pid_task(pid, PIDTYPE_PID); in bpf_pid_task_storage_lookup_elem()
144 put_pid(pid); in bpf_pid_task_storage_lookup_elem()
147 put_pid(pid); in bpf_pid_task_storage_lookup_elem()
157 struct pid *pid; in bpf_pid_task_storage_update_elem() local
161 pid = pidfd_get_pid(fd, &f_flags); in bpf_pid_task_storage_update_elem()
162 if (IS_ERR(pid)) in bpf_pid_task_storage_update_elem()
163 return PTR_ERR(pid); in bpf_pid_task_storage_update_elem()
169 task = pid_task(pid, PIDTYPE_PID); in bpf_pid_task_storage_update_elem()
183 put_pid(pid); in bpf_pid_task_storage_update_elem()
204 struct pid *pid; in bpf_pid_task_storage_delete_elem() local
208 pid = pidfd_get_pid(fd, &f_flags); in bpf_pid_task_storage_delete_elem()
209 if (IS_ERR(pid)) in bpf_pid_task_storage_delete_elem()
210 return PTR_ERR(pid); in bpf_pid_task_storage_delete_elem()
216 task = pid_task(pid, PIDTYPE_PID); in bpf_pid_task_storage_delete_elem()
226 put_pid(pid); in bpf_pid_task_storage_delete_elem()