Lines Matching refs:task

15 __weak int subprog_trusted_task_nullable(struct task_struct *task __arg_trusted __arg_nullable)  in subprog_trusted_task_nullable()
17 if (!task) in subprog_trusted_task_nullable()
19 return task->pid + task->tgid; in subprog_trusted_task_nullable()
22 __weak int subprog_trusted_task_nullable_extra_layer(struct task_struct *task __arg_trusted __arg_n… in subprog_trusted_task_nullable_extra_layer()
24 return subprog_trusted_task_nullable(task) + subprog_trusted_task_nullable(NULL); in subprog_trusted_task_nullable_extra_layer()
59 __weak int subprog_trusted_task_nonnull(struct task_struct *task __arg_trusted) in subprog_trusted_task_nonnull()
61 return task->pid + task->tgid; in subprog_trusted_task_nonnull()
108 struct task_struct___local *task __arg_trusted __arg_nullable) in subprog_nullable_task_flavor()
112 if (!task) in subprog_nullable_task_flavor()
115 return bpf_copy_from_user_task(&buf, sizeof(buf), NULL, (void *)task, 0); in subprog_nullable_task_flavor()
129 __weak int subprog_nonnull_task_flavor(struct task_struct___local *task __arg_trusted) in subprog_nonnull_task_flavor()
133 return bpf_copy_from_user_task(&buf, sizeof(buf), NULL, (void *)task, 0); in subprog_nonnull_task_flavor()
147 __weak int subprog_trusted_destroy(struct task_struct *task __arg_trusted) in subprog_trusted_destroy()
149 bpf_task_release(task); /* should be rejected */ in subprog_trusted_destroy()
157 int BPF_PROG(trusted_destroy_fail, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
159 return subprog_trusted_destroy(task); in BPF_PROG()
162 __weak int subprog_trusted_acq_rel(struct task_struct *task __arg_trusted) in subprog_trusted_acq_rel()
166 owned = bpf_task_acquire(task); in subprog_trusted_acq_rel()
177 int BPF_PROG(trusted_acq_rel, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
179 return subprog_trusted_acq_rel(task); in BPF_PROG()