Lines Matching full:task

28 	struct task_struct *task = NULL;  in task_seq_get_next()  local
36 task = get_pid_task(pid, PIDTYPE_PID); in task_seq_get_next()
37 if (!task) { in task_seq_get_next()
40 } else if (skip_if_dup_files && task->tgid != task->pid && in task_seq_get_next()
41 task->files == task->group_leader->files) { in task_seq_get_next()
42 put_task_struct(task); in task_seq_get_next()
43 task = NULL; in task_seq_get_next()
50 return task; in task_seq_get_next()
56 struct task_struct *task; in task_seq_start() local
58 task = task_seq_get_next(info->common.ns, &info->tid, false); in task_seq_start()
59 if (!task) in task_seq_start()
64 return task; in task_seq_start()
70 struct task_struct *task; in task_seq_next() local
75 task = task_seq_get_next(info->common.ns, &info->tid, false); in task_seq_next()
76 if (!task) in task_seq_next()
79 return task; in task_seq_next()
84 __bpf_md_ptr(struct task_struct *, task);
87 DEFINE_BPF_ITER_FUNC(task, struct bpf_iter_meta *meta, struct task_struct *task) in DEFINE_BPF_ITER_FUNC() argument
89 static int __task_seq_show(struct seq_file *seq, struct task_struct *task, in DEFINE_BPF_ITER_FUNC()
103 ctx.task = task; in DEFINE_BPF_ITER_FUNC()
132 struct task_struct *task; member
140 struct task_struct **task, struct files_struct **fstruct) in task_file_seq_get_next() argument
149 * it held a reference to the task/files_struct/file. in task_file_seq_get_next()
153 if (*task) { in task_file_seq_get_next()
154 curr_task = *task; in task_file_seq_get_next()
170 /* set *fstruct, *task and info->tid */ in task_file_seq_get_next()
172 *task = curr_task; in task_file_seq_get_next()
198 /* the current task is done, go to the next task */ in task_file_seq_get_next()
202 *task = NULL; in task_file_seq_get_next()
213 struct task_struct *task = NULL; in task_file_seq_start() local
216 file = task_file_seq_get_next(info, &task, &files); in task_file_seq_start()
219 info->task = NULL; in task_file_seq_start()
225 info->task = task; in task_file_seq_start()
235 struct task_struct *task = info->task; in task_file_seq_next() local
241 file = task_file_seq_get_next(info, &task, &files); in task_file_seq_next()
244 info->task = NULL; in task_file_seq_next()
248 info->task = task; in task_file_seq_next()
256 __bpf_md_ptr(struct task_struct *, task);
262 struct task_struct *task, u32 fd, in DEFINE_BPF_ITER_FUNC() argument
279 ctx.task = info->task; in DEFINE_BPF_ITER_FUNC()
299 put_task_struct(info->task); in task_file_seq_stop()
301 info->task = NULL; in task_file_seq_stop()
339 .target = "task",
342 { offsetof(struct bpf_iter__task, task),
359 { offsetof(struct bpf_iter__task_file, task),