Home
last modified time | relevance | path

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

12345

/include/linux/
Dvtime.h4 struct task_struct;
7 extern void vtime_task_switch(struct task_struct *prev);
8 extern void vtime_account_system(struct task_struct *tsk);
9 extern void vtime_account_idle(struct task_struct *tsk);
10 extern void vtime_account_user(struct task_struct *tsk);
11 extern void vtime_account_irq_enter(struct task_struct *tsk);
19 static inline void vtime_task_switch(struct task_struct *prev) { } in vtime_task_switch()
20 static inline void vtime_account_system(struct task_struct *tsk) { } in vtime_account_system()
21 static inline void vtime_account_user(struct task_struct *tsk) { } in vtime_account_user()
22 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.h43 extern long arch_ptrace(struct task_struct *child, long request,
45 extern int ptrace_readdata(struct task_struct *tsk, unsigned long src, char __user *dst, int len);
46 extern int ptrace_writedata(struct task_struct *tsk, char __user *src, unsigned long dst, int len);
47 extern void ptrace_disable(struct task_struct *);
48 extern int ptrace_request(struct task_struct *child, long request,
51 extern void __ptrace_link(struct task_struct *child,
52 struct task_struct *new_parent);
53 extern void __ptrace_unlink(struct task_struct *child);
54 extern void exit_ptrace(struct task_struct *tracer);
59 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 …]
Dsched.h112 struct task_struct *task;
126 extern void proc_sched_show_task(struct task_struct *p, struct seq_file *m);
127 extern void proc_sched_set_task(struct task_struct *p);
220 struct task_struct;
228 extern asmlinkage void schedule_tail(struct task_struct *prev);
229 extern void init_idle(struct task_struct *idle, int cpu);
230 extern void init_idle_bootup_task(struct task_struct *idle);
260 extern void show_stack(struct task_struct *task, unsigned long *sp);
270 extern void sched_show_task(struct task_struct *p);
484 struct task_struct *curr_target;
[all …]
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()
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.h23 extern void cpuset_cpus_allowed(struct task_struct *p, struct cpumask *mask);
24 extern void cpuset_cpus_allowed_fallback(struct task_struct *p);
25 extern nodemask_t cpuset_mems_allowed(struct task_struct *p);
55 extern int cpuset_mems_allowed_intersects(const struct task_struct *tsk1,
56 const struct task_struct *tsk2);
67 struct task_struct *task);
87 extern void cpuset_print_task_mems_allowed(struct task_struct *p);
130 static inline void cpuset_cpus_allowed(struct task_struct *p, in cpuset_cpus_allowed()
136 static inline void cpuset_cpus_allowed_fallback(struct task_struct *p) in cpuset_cpus_allowed_fallback()
140 static inline nodemask_t cpuset_mems_allowed(struct task_struct *p) in cpuset_mems_allowed()
[all …]
Dsem.h9 struct task_struct;
30 extern int copy_semundo(unsigned long clone_flags, struct task_struct *tsk);
31 extern void exit_sem(struct task_struct *tsk);
39 static inline int copy_semundo(unsigned long clone_flags, struct task_struct *tsk) in copy_semundo()
44 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);
60 static inline void exit_robust_list(struct task_struct *curr) in exit_robust_list()
63 static inline void exit_pi_state_list(struct task_struct *curr) in exit_pi_state_list()
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 int kthread_stop(struct task_struct *k);
45 void *kthread_data(struct task_struct *k);
46 void *probe_kthread_data(struct task_struct *k);
47 int kthread_park(struct task_struct *k);
48 void kthread_unpark(struct task_struct *k);
52 extern struct task_struct *kthreadd_task;
[all …]
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,
53 extern void oom_kill_process(struct task_struct *p, gfp_t gfp_mask, int order,
64 extern enum oom_scan_t oom_scan_process_thread(struct task_struct *task,
85 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);
94 extern void attach_pid(struct task_struct *task, enum pid_type type,
96 extern void detach_pid(struct task_struct *task, enum pid_type);
97 extern void change_pid(struct task_struct *task, enum pid_type,
99 extern void transfer_pid(struct task_struct *old, struct task_struct *new,
197 struct task_struct *tg___ = task; \
Dseccomp.h79 extern void put_seccomp_filter(struct task_struct *tsk);
80 extern void get_seccomp_filter(struct task_struct *tsk);
83 static inline void put_seccomp_filter(struct task_struct *tsk) in put_seccomp_filter()
87 static inline void get_seccomp_filter(struct task_struct *tsk) in get_seccomp_filter()
Dperf_event.h104 struct task_struct;
139 struct task_struct *tp_target;
150 struct task_struct *bp_target;
387 struct task_struct *owner;
462 struct task_struct *task;
519 extern void __perf_event_task_sched_in(struct task_struct *prev,
520 struct task_struct *task);
521 extern void __perf_event_task_sched_out(struct task_struct *prev,
522 struct task_struct *next);
523 extern int perf_event_init_task(struct task_struct *child);
[all …]
Dnsproxy.h60 static inline struct nsproxy *task_nsproxy(struct task_struct *tsk) in task_nsproxy()
65 int copy_namespaces(unsigned long flags, struct task_struct *tsk);
66 void exit_task_namespaces(struct task_struct *tsk);
67 void switch_task_namespaces(struct task_struct *tsk, struct nsproxy *new);
/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 *);
/include/linux/sched/
Drt.h30 static inline int rt_task(struct task_struct *p) in rt_task()
36 extern int rt_mutex_getprio(struct task_struct *p);
37 extern void rt_mutex_setprio(struct task_struct *p, int prio);
38 extern void rt_mutex_adjust_pi(struct task_struct *p);
39 static inline bool tsk_is_pi_blocked(struct task_struct *tsk) in tsk_is_pi_blocked()
44 static inline int rt_mutex_getprio(struct task_struct *p) in rt_mutex_getprio()
49 static inline bool tsk_is_pi_blocked(struct task_struct *tsk) in tsk_is_pi_blocked()

12345