Home
last modified time | relevance | path

Searched refs:task_struct (Results 1 – 25 of 126) sorted by relevance

123456

/include/linux/
Dvtime.h10 struct task_struct;
42 extern void vtime_task_switch(struct task_struct *prev);
44 extern void vtime_common_task_switch(struct task_struct *prev);
45 static inline void vtime_task_switch(struct task_struct *prev) in vtime_task_switch()
52 extern void vtime_account_system(struct task_struct *tsk);
53 extern void vtime_account_idle(struct task_struct *tsk);
54 extern void vtime_account_user(struct task_struct *tsk);
57 extern void vtime_account_irq_enter(struct task_struct *tsk);
59 extern void vtime_common_account_irq_enter(struct task_struct *tsk);
60 static inline void vtime_account_irq_enter(struct task_struct *tsk) in vtime_account_irq_enter()
[all …]
Dcn_proc.h23 void proc_fork_connector(struct task_struct *task);
24 void proc_exec_connector(struct task_struct *task);
25 void proc_id_connector(struct task_struct *task, int which_id);
26 void proc_sid_connector(struct task_struct *task);
27 void proc_ptrace_connector(struct task_struct *task, int which_id);
28 void proc_comm_connector(struct task_struct *task);
29 void proc_coredump_connector(struct task_struct *task);
30 void proc_exit_connector(struct task_struct *task);
32 static inline void proc_fork_connector(struct task_struct *task) in proc_fork_connector()
35 static inline void proc_exec_connector(struct task_struct *task) in proc_exec_connector()
[all …]
Dtsacct_kern.h15 struct taskstats *stats, struct task_struct *tsk);
19 struct taskstats *stats, struct task_struct *tsk) in bacct_add_tsk()
24 extern void xacct_add_tsk(struct taskstats *stats, struct task_struct *p);
25 extern void acct_update_integrals(struct task_struct *tsk);
26 extern void acct_account_cputime(struct task_struct *tsk);
27 extern void acct_clear_integrals(struct task_struct *tsk);
29 static inline void xacct_add_tsk(struct taskstats *stats, struct task_struct *p) in xacct_add_tsk()
31 static inline void acct_update_integrals(struct task_struct *tsk) in acct_update_integrals()
33 static inline void acct_account_cputime(struct task_struct *tsk) in acct_account_cputime()
35 static inline void acct_clear_integrals(struct task_struct *tsk) in acct_clear_integrals()
Dptrace.h44 extern long arch_ptrace(struct task_struct *child, long request,
46 extern int ptrace_readdata(struct task_struct *tsk, unsigned long src, char __user *dst, int len);
47 extern int ptrace_writedata(struct task_struct *tsk, char __user *src, unsigned long dst, int len);
48 extern void ptrace_disable(struct task_struct *);
49 extern int ptrace_request(struct task_struct *child, long request,
52 extern void __ptrace_link(struct task_struct *child,
53 struct task_struct *new_parent);
54 extern void __ptrace_unlink(struct task_struct *child);
55 extern void exit_ptrace(struct task_struct *tracer);
82 extern bool ptrace_may_access(struct task_struct *task, unsigned int mode);
[all …]
Ddelayacct.h36 extern void __delayacct_tsk_init(struct task_struct *);
37 extern void __delayacct_tsk_exit(struct task_struct *);
40 extern int __delayacct_add_tsk(struct taskstats *, struct task_struct *);
41 extern __u64 __delayacct_blkio_ticks(struct task_struct *);
45 static inline int delayacct_is_task_waiting_on_io(struct task_struct *p) in delayacct_is_task_waiting_on_io()
65 static inline void delayacct_tsk_init(struct task_struct *tsk) in delayacct_tsk_init()
76 static inline void delayacct_tsk_free(struct task_struct *tsk) in delayacct_tsk_free()
98 struct task_struct *tsk) in delayacct_add_tsk()
105 static inline __u64 delayacct_blkio_ticks(struct task_struct *tsk) in delayacct_blkio_ticks()
131 static inline void delayacct_tsk_init(struct task_struct *tsk) in delayacct_tsk_init()
[all …]
Dkcov.h6 struct task_struct;
10 void kcov_task_init(struct task_struct *t);
11 void kcov_task_exit(struct task_struct *t);
25 static inline void kcov_task_init(struct task_struct *t) {} in kcov_task_init()
26 static inline void kcov_task_exit(struct task_struct *t) {} in kcov_task_exit()
Dlatencytop.h13 struct task_struct;
30 void __account_scheduler_latency(struct task_struct *task, int usecs, int inter);
32 account_scheduler_latency(struct task_struct *task, int usecs, int inter) in account_scheduler_latency()
38 void clear_all_latency_tracing(struct task_struct *p);
43 account_scheduler_latency(struct task_struct *task, int usecs, int inter) in account_scheduler_latency()
47 static inline void clear_all_latency_tracing(struct task_struct *p) in clear_all_latency_tracing()
Dsched.h196 extern void proc_sched_show_task(struct task_struct *p, struct seq_file *m);
197 extern void proc_sched_set_task(struct task_struct *p);
299 struct task_struct;
307 extern asmlinkage void schedule_tail(struct task_struct *prev);
308 extern void init_idle(struct task_struct *idle, int cpu);
309 extern void init_idle_bootup_task(struct task_struct *idle);
343 extern void show_stack(struct task_struct *task, unsigned long *sp);
350 extern void sched_show_task(struct task_struct *p);
598 struct task_struct *curr_target;
611 struct task_struct *group_exit_task;
[all …]
Duser-return-notifier.h18 static inline void propagate_user_return_notify(struct task_struct *prev, in propagate_user_return_notify()
19 struct task_struct *next) in propagate_user_return_notify()
29 static inline void clear_user_return_notifier(struct task_struct *p) in clear_user_return_notifier()
38 static inline void propagate_user_return_notify(struct task_struct *prev, in propagate_user_return_notify()
39 struct task_struct *next) in propagate_user_return_notify()
45 static inline void clear_user_return_notifier(struct task_struct *p) {} in clear_user_return_notifier()
Dcpuset.h44 extern void cpuset_cpus_allowed(struct task_struct *p, struct cpumask *mask);
45 extern void cpuset_cpus_allowed_fallback(struct task_struct *p);
46 extern nodemask_t cpuset_mems_allowed(struct task_struct *p);
76 extern int cpuset_mems_allowed_intersects(const struct task_struct *tsk1,
77 const struct task_struct *tsk2);
88 struct task_struct *task);
90 struct pid *pid, struct task_struct *tsk);
109 extern void cpuset_print_task_mems_allowed(struct task_struct *p);
159 static inline void cpuset_cpus_allowed(struct task_struct *p, in cpuset_cpus_allowed()
165 static inline void cpuset_cpus_allowed_fallback(struct task_struct *p) in cpuset_cpus_allowed_fallback()
[all …]
Dkthread.h8 struct task_struct *kthread_create_on_node(int (*threadfn)(void *data),
17 struct task_struct *kthread_create_on_cpu(int (*threadfn)(void *data),
33 struct task_struct *__k \
40 void kthread_bind(struct task_struct *k, unsigned int cpu);
41 void kthread_bind_mask(struct task_struct *k, const struct cpumask *mask);
42 int kthread_stop(struct task_struct *k);
46 void *kthread_data(struct task_struct *k);
47 void *probe_kthread_data(struct task_struct *k);
48 int kthread_park(struct task_struct *k);
49 void kthread_unpark(struct task_struct *k);
[all …]
Dsem.h9 struct task_struct;
32 extern int copy_semundo(unsigned long clone_flags, struct task_struct *tsk);
33 extern void exit_sem(struct task_struct *tsk);
41 static inline int copy_semundo(unsigned long clone_flags, struct task_struct *tsk) in copy_semundo()
46 static inline void exit_sem(struct task_struct *tsk) in exit_sem()
Dfutex.h8 struct task_struct;
15 handle_futex_death(u32 __user *uaddr, struct task_struct *curr, int pi);
56 extern void exit_robust_list(struct task_struct *curr);
57 extern void exit_pi_state_list(struct task_struct *curr);
64 static inline void exit_robust_list(struct task_struct *curr) in exit_robust_list()
67 static inline void exit_pi_state_list(struct task_struct *curr) in exit_pi_state_list()
Dcontext_tracking.h15 extern void __context_tracking_task_switch(struct task_struct *prev,
16 struct task_struct *next);
51 static inline void context_tracking_task_switch(struct task_struct *prev, in context_tracking_task_switch()
52 struct task_struct *next) in context_tracking_task_switch()
62 static inline void context_tracking_task_switch(struct task_struct *prev, in context_tracking_task_switch()
63 struct task_struct *next) { } in context_tracking_task_switch()
Doom.h13 struct task_struct;
45 static inline bool oom_task_origin(const struct task_struct *p) in oom_task_origin()
50 extern unsigned long oom_badness(struct task_struct *p,
56 extern void oom_kill_process(struct task_struct *p, gfp_t gfp_mask, int order,
67 extern enum oom_scan_t oom_scan_process_thread(struct task_struct *task,
93 extern struct task_struct *find_lock_task_mm(struct task_struct *p);
Dresource.h7 struct task_struct;
9 int getrusage(struct task_struct *p, int who, struct rusage __user *ru);
10 int do_prlimit(struct task_struct *tsk, unsigned int resource,
Ddebug_locks.h8 struct task_struct;
48 struct task_struct;
52 extern void debug_show_held_locks(struct task_struct *task);
60 static inline void debug_show_held_locks(struct task_struct *task) in debug_show_held_locks()
Dtask_work.h15 int task_work_add(struct task_struct *task, struct callback_head *twork, bool);
16 struct callback_head *task_work_cancel(struct task_struct *, task_work_func_t);
19 static inline void exit_task_work(struct task_struct *task) in exit_task_work()
Dfreezer.h24 static inline bool frozen(struct task_struct *p) in frozen()
29 extern bool freezing_slow_path(struct task_struct *p);
34 static inline bool freezing(struct task_struct *p) in freezing()
42 extern void __thaw_task(struct task_struct *t);
69 extern bool freeze_task(struct task_struct *p);
73 extern bool cgroup_freezing(struct task_struct *task);
75 static inline bool cgroup_freezing(struct task_struct *task) in cgroup_freezing()
148 static inline bool freezer_should_skip(struct task_struct *p) in freezer_should_skip()
298 static inline bool frozen(struct task_struct *p) { return false; } in frozen()
299 static inline bool freezing(struct task_struct *p) { return false; } in freezing()
[all …]
Dpid.h85 extern struct task_struct *pid_task(struct pid *pid, enum pid_type);
86 extern struct task_struct *get_pid_task(struct pid *pid, enum pid_type);
88 extern struct pid *get_task_pid(struct task_struct *task, enum pid_type type);
93 extern void attach_pid(struct task_struct *task, enum pid_type);
94 extern void detach_pid(struct task_struct *task, enum pid_type);
95 extern void change_pid(struct task_struct *task, enum pid_type,
97 extern void transfer_pid(struct task_struct *old, struct task_struct *new,
195 struct task_struct *tg___ = task; \
Dseccomp.h86 extern void put_seccomp_filter(struct task_struct *tsk);
87 extern void get_seccomp_filter(struct task_struct *tsk);
89 static inline void put_seccomp_filter(struct task_struct *tsk) in put_seccomp_filter()
93 static inline void get_seccomp_filter(struct task_struct *tsk) in get_seccomp_filter()
/include/linux/sched/
Drt.h13 static inline int rt_task(struct task_struct *p) in rt_task()
19 extern int rt_mutex_getprio(struct task_struct *p);
20 extern void rt_mutex_setprio(struct task_struct *p, int prio);
21 extern int rt_mutex_get_effective_prio(struct task_struct *task, int newprio);
22 extern struct task_struct *rt_mutex_get_top_task(struct task_struct *task);
23 extern void rt_mutex_adjust_pi(struct task_struct *p);
24 static inline bool tsk_is_pi_blocked(struct task_struct *tsk) in tsk_is_pi_blocked()
29 static inline int rt_mutex_getprio(struct task_struct *p) in rt_mutex_getprio()
34 static inline int rt_mutex_get_effective_prio(struct task_struct *task, in rt_mutex_get_effective_prio()
40 static inline struct task_struct *rt_mutex_get_top_task(struct task_struct *task) in rt_mutex_get_top_task()
[all …]
/include/asm-generic/
Dsyscall.h22 struct task_struct;
41 int syscall_get_nr(struct task_struct *task, struct pt_regs *regs);
59 void syscall_rollback(struct task_struct *task, struct pt_regs *regs);
71 long syscall_get_error(struct task_struct *task, struct pt_regs *regs);
84 long syscall_get_return_value(struct task_struct *task, struct pt_regs *regs);
101 void syscall_set_return_value(struct task_struct *task, struct pt_regs *regs,
121 void syscall_get_arguments(struct task_struct *task, struct pt_regs *regs,
141 void syscall_set_arguments(struct task_struct *task, struct pt_regs *regs,
Dmmu_context.h11 struct task_struct;
15 struct task_struct *tsk) in enter_lazy_tlb()
19 static inline int init_new_context(struct task_struct *tsk, in init_new_context()
29 static inline void deactivate_mm(struct task_struct *task, in deactivate_mm()
36 struct task_struct *tsk) in switch_mm()
Dswitch_to.h22 extern struct task_struct *__switch_to(struct task_struct *,
23 struct task_struct *);

123456