• Home
  • Raw
  • Download

Lines Matching refs: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
152 if (info->task) { in task_file_seq_get_next()
153 curr_task = info->task; in task_file_seq_get_next()
159 info->task = NULL; in task_file_seq_get_next()
174 info->task = curr_task; in task_file_seq_get_next()
204 info->task = NULL; in task_file_seq_get_next()
216 info->task = NULL; in task_file_seq_start()
237 __bpf_md_ptr(struct task_struct *, task);
243 struct task_struct *task, u32 fd, in DEFINE_BPF_ITER_FUNC() argument
260 ctx.task = info->task; in DEFINE_BPF_ITER_FUNC()
280 put_task_struct(info->task); in task_file_seq_stop()
282 info->task = NULL; in task_file_seq_stop()
323 { offsetof(struct bpf_iter__task, task),
340 { offsetof(struct bpf_iter__task_file, task),