Home
last modified time | relevance | path

Searched refs:task (Results 1 – 25 of 95) sorted by relevance

1234

/include/linux/
A 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);
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() argument
35 static inline void proc_exec_connector(struct task_struct *task) in proc_exec_connector() argument
38 static inline void proc_id_connector(struct task_struct *task, in proc_id_connector() argument
[all …]
A Dtask_work.h24 static inline bool task_work_pending(struct task_struct *task) in task_work_pending() argument
26 return READ_ONCE(task->task_works); in task_work_pending()
29 int task_work_add(struct task_struct *task, struct callback_head *twork,
32 struct callback_head *task_work_cancel_match(struct task_struct *task,
35 bool task_work_cancel(struct task_struct *task, struct callback_head *cb);
38 static inline void exit_task_work(struct task_struct *task) in exit_task_work() argument
A Dshm.h19 void exit_shm(struct task_struct *task);
20 #define shm_init_task(task) INIT_LIST_HEAD(&(task)->sysvshm.shm_clist) argument
32 static inline void exit_shm(struct task_struct *task) in exit_shm() argument
35 static inline void shm_init_task(struct task_struct *task) in shm_init_task() argument
A Dpid.h85 void do_notify_pidfd(struct task_struct *task);
190 #define do_each_pid_task(pid, type, task) \ argument
193 hlist_for_each_entry_rcu((task), \
200 #define while_each_pid_task(pid, type, task) \ argument
206 #define do_each_pid_thread(pid, type, task) \ argument
207 do_each_pid_task(pid, type, task) { \
208 struct task_struct *tg___ = task; \
209 for_each_thread(tg___, task) {
213 task = tg___; \
214 } while_each_pid_task(pid, type, task)
[all …]
A Dioprio.h30 static inline int task_nice_ioprio(struct task_struct *task) in task_nice_ioprio() argument
32 return (task_nice(task) + 20) / 5; in task_nice_ioprio()
39 static inline int task_nice_ioclass(struct task_struct *task) in task_nice_ioclass() argument
41 if (task->policy == SCHED_IDLE) in task_nice_ioclass()
43 else if (rt_or_dl_task_policy(task)) in task_nice_ioclass()
87 extern int set_task_ioprio(struct task_struct *task, int ioprio);
A Dcgroup.h295 (task); \
414 ((task)->flags & PF_EXITING) || (__c))
417 rcu_dereference((task)->cgroups)
440 return task_css_set_check(task, false); in task_css_set()
472 css = task_css(task, subsys_id); in task_get_css()
504 return task_css(task, subsys_id)->cgroup; in task_cgroup()
509 return task_css_set(task)->dfl_cgrp; in task_dfl_cgroup()
733 cpuacct_charge(task, delta_exec); in cgroup_account_cputime()
735 cgrp = task_dfl_cgroup(task); in cgroup_account_cputime()
748 cgrp = task_dfl_cgroup(task); in cgroup_account_cputime_field()
[all …]
A Dlatencytop.h31 void __account_scheduler_latency(struct task_struct *task, int usecs, int inter);
33 account_scheduler_latency(struct task_struct *task, int usecs, int inter) in account_scheduler_latency() argument
36 __account_scheduler_latency(task, usecs, inter); in account_scheduler_latency()
44 account_scheduler_latency(struct task_struct *task, int usecs, int inter) in account_scheduler_latency() argument
A Dsyscall_user_dispatch.h19 int syscall_user_dispatch_get_config(struct task_struct *task, unsigned long size,
22 int syscall_user_dispatch_set_config(struct task_struct *task, unsigned long size,
37 static inline int syscall_user_dispatch_get_config(struct task_struct *task, in syscall_user_dispatch_get_config() argument
43 static inline int syscall_user_dispatch_set_config(struct task_struct *task, in syscall_user_dispatch_set_config() argument
A Dunwind_deferred.h33 void unwind_task_init(struct task_struct *task);
34 void unwind_task_free(struct task_struct *task);
42 void unwind_deferred_task_exit(struct task_struct *task);
68 static inline void unwind_task_init(struct task_struct *task) {} in unwind_task_init() argument
69 static inline void unwind_task_free(struct task_struct *task) {} in unwind_task_free() argument
76 static inline void unwind_deferred_task_exit(struct task_struct *task) {} in unwind_deferred_task_exit() argument
A Dseccomp.h90 extern long seccomp_get_filter(struct task_struct *task,
92 extern long seccomp_get_metadata(struct task_struct *task,
95 static inline long seccomp_get_filter(struct task_struct *task, in seccomp_get_filter() argument
100 static inline long seccomp_get_metadata(struct task_struct *task, in seccomp_get_metadata() argument
114 struct pid *pid, struct task_struct *task);
A Dptrace.h117 static inline struct task_struct *ptrace_parent(struct task_struct *task) in ptrace_parent() argument
119 if (unlikely(task->ptrace)) in ptrace_parent()
120 return rcu_dereference(task->parent); in ptrace_parent()
135 return task->ptrace & PT_EVENT_FLAG(event); in ptrace_event_enabled()
227 static inline void ptrace_release_task(struct task_struct *task) in ptrace_release_task() argument
229 BUG_ON(!list_empty(&task->ptraced)); in ptrace_release_task()
230 ptrace_unlink(task); in ptrace_release_task()
231 BUG_ON(!list_empty(&task->ptrace_entry)); in ptrace_release_task()
287 static inline void user_enable_single_step(struct task_struct *task) in user_enable_single_step() argument
301 static inline void user_disable_single_step(struct task_struct *task) in user_disable_single_step() argument
[all …]
A Dresume_user_mode.h21 static inline void set_notify_resume(struct task_struct *task) in set_notify_resume() argument
23 if (!test_and_set_tsk_thread_flag(task, TIF_NOTIFY_RESUME)) in set_notify_resume()
24 kick_process(task); in set_notify_resume()
A Drcuwait.h10 { .task = NULL, }
14 w->task = NULL; in rcuwait_init()
23 return !!rcu_access_pointer(w->task); in rcuwait_active()
36 rcu_assign_pointer(w->task, current); in prepare_to_rcuwait()
/include/rv/
A Dltl_monitor.h28 task->comm, task->pid); in rv_cond_react()
56 ltl_atoms_fetch(task, mon); in ltl_task_init()
61 ltl_task_init(task, true); in handle_task_newtask()
101 rv_cond_react(task); in ltl_illegal_state()
107 ltl_start(task, mon); in ltl_attempt_start()
160 ltl_illegal_state(task, mon); in ltl_validate()
168 ltl_atoms_fetch(task, mon); in ltl_atom_update()
171 ltl_attempt_start(task, mon); in ltl_atom_update()
175 ltl_validate(task, mon); in ltl_atom_update()
182 ltl_atom_update(task, atom, value); in ltl_atom_pulse()
[all …]
/include/asm-generic/
A Dsyscall.h38 int syscall_get_nr(struct task_struct *task, struct pt_regs *regs);
52 void syscall_set_nr(struct task_struct *task, struct pt_regs *regs, int nr);
70 void syscall_rollback(struct task_struct *task, struct pt_regs *regs);
83 long syscall_get_error(struct task_struct *task, struct pt_regs *regs);
97 long syscall_get_return_value(struct task_struct *task, struct pt_regs *regs);
115 void syscall_set_return_value(struct task_struct *task, struct pt_regs *regs,
131 void syscall_get_arguments(struct task_struct *task, struct pt_regs *regs,
147 void syscall_set_arguments(struct task_struct *task, struct pt_regs *regs,
163 int syscall_get_arch(struct task_struct *task);
/include/linux/sched/
A Dtask_stack.h21 static __always_inline void *task_stack_page(const struct task_struct *task) in task_stack_page() argument
23 return task->stack; in task_stack_page()
28 static __always_inline unsigned long *end_of_stack(const struct task_struct *task) in end_of_stack() argument
31 return (unsigned long *)((unsigned long)task->stack + THREAD_SIZE) - 1; in end_of_stack()
33 return task->stack; in end_of_stack()
39 #define task_stack_page(task) ((void *)(task)->stack) argument
44 task_thread_info(p)->task = p; in setup_thread_stack()
86 #define task_stack_end_corrupted(task) \ argument
87 (*(end_of_stack(task)) != STACK_END_MAGIC)
A Dsignal.h77 struct task_struct *task; member
285 struct task_struct *task = current; in kernel_dequeue_signal() local
290 spin_lock_irq(&task->sighand->siglock); in kernel_dequeue_signal()
367 if (__set_notify_signal(task)) in set_notify_signal()
368 kick_process(task); in set_notify_signal()
513 task->restore_sigmask = false; in clear_tsk_restore_sigmask()
525 return task->restore_sigmask; in test_tsk_restore_sigmask()
669 pid = task_pid(task); in task_pid_type()
671 pid = task->signal->pids[type]; in task_pid_type()
692 return task->signal->pids[PIDTYPE_SID]; in task_session()
[all …]
/include/linux/fsl/bestcomm/
A Dbestcomm_priv.h261 bcom_enable_task(int task) in bcom_enable_task() argument
269 bcom_disable_task(int task) in bcom_disable_task() argument
277 bcom_task_desc(int task) in bcom_task_desc() argument
283 bcom_task_num_descs(int task) in bcom_task_num_descs() argument
285 return (bcom_eng->tdt[task].stop - bcom_eng->tdt[task].start)/sizeof(u32) + 1; in bcom_task_num_descs()
289 bcom_task_var(int task) in bcom_task_var() argument
295 bcom_task_inc(int task) in bcom_task_inc() argument
297 return &bcom_task_var(task)[BCOM_MAX_VAR]; in bcom_task_inc()
328 bcom_set_task_pragma(int task, int pragma) in bcom_set_task_pragma() argument
330 u32 *fdt = &bcom_eng->tdt[task].fdt; in bcom_set_task_pragma()
[all …]
/include/trace/events/
A Dtask.h3 #define TRACE_SYSTEM task
11 TP_PROTO(struct task_struct *task, unsigned long clone_flags),
13 TP_ARGS(task, clone_flags),
23 __entry->pid = task->pid;
24 memcpy(__entry->comm, task->comm, TASK_COMM_LEN);
26 __entry->oom_score_adj = task->signal->oom_score_adj;
36 TP_PROTO(struct task_struct *task, const char *comm),
38 TP_ARGS(task, comm),
47 memcpy(entry->oldcomm, task->comm, TASK_COMM_LEN);
49 __entry->oom_score_adj = task->signal->oom_score_adj;
A Doom.h14 TP_PROTO(struct task_struct *task),
16 TP_ARGS(task),
25 __entry->pid = task->pid;
26 memcpy(__entry->comm, task->comm, TASK_COMM_LEN);
27 __entry->oom_score_adj = task->signal->oom_score_adj;
77 TP_PROTO(struct task_struct *task, uid_t uid),
79 TP_ARGS(task, uid),
83 __string(comm, task->comm)
94 __entry->pid = task->pid;
101 __entry->pgtables = mm_pgtables_bytes(task->mm) >> 10;
[all …]
A Dsunrpc.h56 TP_ARGS(task, xdr),
276 TP_ARGS(task),
299 TP_ARGS(task))
310 TP_ARGS(task),
468 TP_ARGS(task),
489 TP_ARGS(task))
500 TP_ARGS(task),
534 TP_ARGS(task))
551 TP_ARGS(task))
1187 if (task) {
[all …]
A Drpcgss.h85 const struct rpc_task *task,
89 TP_ARGS(task, maj_stat),
116 TP_ARGS(task, maj_stat))
344 const struct rpc_task *task
347 TP_ARGS(task),
365 const struct rpc_task *task,
394 const struct rpc_task *task
397 TP_ARGS(task),
422 const struct rpc_task *task,
427 TP_ARGS(task, seq_xmit, ret),
[all …]
/include/linux/sunrpc/
A Dxprt.h159 void (*rpcbind)(struct rpc_task *task);
165 int (*buf_alloc)(struct rpc_task *task);
166 void (*buf_free)(struct rpc_task *task);
173 void (*release_request)(struct rpc_task *task);
377 void xprt_connect(struct rpc_task *task);
381 void xprt_reserve(struct rpc_task *task);
382 void xprt_retry_reserve(struct rpc_task *task);
394 void xprt_transmit(struct rpc_task *task);
395 void xprt_end_transmit(struct rpc_task *task);
399 void xprt_release(struct rpc_task *task);
[all …]
A Dauth.h132 int (*crmarshal)(struct rpc_task *task,
135 int (*crvalidate)(struct rpc_task *task,
137 int (*crwrap_req)(struct rpc_task *task,
139 int (*crunwrap_resp)(struct rpc_task *task,
168 int rpcauth_marshcred(struct rpc_task *task,
170 int rpcauth_checkverf(struct rpc_task *task,
172 int rpcauth_wrap_req_encode(struct rpc_task *task,
174 int rpcauth_wrap_req(struct rpc_task *task,
176 int rpcauth_unwrap_resp_decode(struct rpc_task *task,
178 int rpcauth_unwrap_resp(struct rpc_task *task,
[all …]
/include/scsi/
A Dlibiscsi.h140 return task->unsol_r2t.data_length > task->unsol_r2t.sent; in iscsi_task_has_unsol_data()
145 return (void*)task->hdr + task->hdr_len; in iscsi_next_hdr()
150 return task->state == ISCSI_TASK_COMPLETED || in iscsi_task_is_completed()
151 task->state == ISCSI_TASK_ABRT_TMF || in iscsi_task_is_completed()
152 task->state == ISCSI_TASK_ABRT_SESS_RECOV; in iscsi_task_is_completed()
157 struct iscsi_task *task; member
205 struct iscsi_task *task; /* xmit task in progress */ member
481 extern void iscsi_requeue_task(struct iscsi_task *task);
482 extern void iscsi_put_task(struct iscsi_task *task);
483 extern void __iscsi_put_task(struct iscsi_task *task);
[all …]

Completed in 43 milliseconds

1234