Home
last modified time | relevance | path

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

1234

/include/linux/
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() argument
35 static inline void proc_exec_connector(struct task_struct *task) in proc_exec_connector() argument
[all …]
Dpid.h98 extern struct pid *get_task_pid(struct task_struct *task, enum pid_type type);
103 extern void attach_pid(struct task_struct *task, enum pid_type);
104 extern void detach_pid(struct task_struct *task, enum pid_type);
105 extern void change_pid(struct task_struct *task, enum pid_type,
107 extern void exchange_tids(struct task_struct *task, struct task_struct *old);
191 #define do_each_pid_task(pid, type, task) \ argument
194 hlist_for_each_entry_rcu((task), \
201 #define while_each_pid_task(pid, type, task) \ argument
207 #define do_each_pid_thread(pid, type, task) \ argument
208 do_each_pid_task(pid, type, task) { \
[all …]
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 (task_is_realtime(task)) in task_nice_ioclass()
67 extern int set_task_ioprio(struct task_struct *task, int ioprio);
Drcuwait.h17 struct task_struct __rcu *task; member
21 { .task = NULL, }
25 w->task = NULL; in rcuwait_init()
34 return !!rcu_access_pointer(w->task); in rcuwait_active()
47 rcu_assign_pointer(w->task, current); in prepare_to_rcuwait()
52 rcu_assign_pointer(w->task, NULL); in finish_rcuwait()
Dshm.h20 void exit_shm(struct task_struct *task);
21 #define shm_init_task(task) INIT_LIST_HEAD(&(task)->sysvshm.shm_clist) argument
37 static inline void exit_shm(struct task_struct *task) in exit_shm() argument
40 static inline void shm_init_task(struct task_struct *task) in shm_init_task() argument
Dtracehook.h159 static inline void set_notify_resume(struct task_struct *task) in set_notify_resume() argument
162 if (!test_and_set_tsk_thread_flag(task, TIF_NOTIFY_RESUME)) in set_notify_resume()
163 kick_process(task); in set_notify_resume()
220 static inline void set_notify_signal(struct task_struct *task) in set_notify_signal() argument
222 if (!test_and_set_tsk_thread_flag(task, TIF_NOTIFY_SIGNAL) && in set_notify_signal()
223 !wake_up_state(task, TASK_INTERRUPTIBLE)) in set_notify_signal()
224 kick_process(task); in set_notify_signal()
Dcgroup.h122 int task_cgroup_path(struct task_struct *task, char *buf, size_t buflen);
288 #define cgroup_taskset_for_each(task, dst_css, tset) \ argument
289 for ((task) = cgroup_taskset_first((tset), &(dst_css)); \
290 (task); \
291 (task) = cgroup_taskset_next((tset), &(dst_css)))
466 #define task_css_set_check(task, __c) \ argument
467 rcu_dereference_check((task)->cgroups, \
471 ((task)->flags & PF_EXITING) || (__c))
473 #define task_css_set_check(task, __c) \ argument
474 rcu_dereference((task)->cgroups)
[all …]
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()
47 account_scheduler_latency(struct task_struct *task, int usecs, int inter) in account_scheduler_latency() argument
Dptrace.h88 extern bool ptrace_may_access(struct task_struct *task, unsigned int mode);
117 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()
133 static inline bool ptrace_event_enabled(struct task_struct *task, int event) in ptrace_event_enabled() argument
135 return task->ptrace & PT_EVENT_FLAG(event); in ptrace_event_enabled()
228 static inline void ptrace_release_task(struct task_struct *task) in ptrace_release_task() argument
230 BUG_ON(!list_empty(&task->ptraced)); in ptrace_release_task()
231 ptrace_unlink(task); in ptrace_release_task()
232 BUG_ON(!list_empty(&task->ptrace_entry)); in ptrace_release_task()
[all …]
Dtask_work.h22 int task_work_add(struct task_struct *task, struct callback_head *twork,
25 struct callback_head *task_work_cancel_match(struct task_struct *task,
30 static inline void exit_task_work(struct task_struct *task) in exit_task_work() argument
Dseccomp.h107 extern long seccomp_get_filter(struct task_struct *task,
109 extern long seccomp_get_metadata(struct task_struct *task,
112 static inline long seccomp_get_filter(struct task_struct *task, in seccomp_get_filter() argument
117 static inline long seccomp_get_metadata(struct task_struct *task, in seccomp_get_metadata() argument
129 struct pid *pid, struct task_struct *task);
Dnospec.h68 int arch_prctl_spec_ctrl_get(struct task_struct *task, unsigned long which);
69 int arch_prctl_spec_ctrl_set(struct task_struct *task, unsigned long which,
72 void arch_seccomp_spec_mitigate(struct task_struct *task);
/include/asm-generic/
Dsyscall.h38 int syscall_get_nr(struct task_struct *task, struct pt_regs *regs);
56 void syscall_rollback(struct task_struct *task, struct pt_regs *regs);
69 long syscall_get_error(struct task_struct *task, struct pt_regs *regs);
83 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,
117 void syscall_get_arguments(struct task_struct *task, struct pt_regs *regs,
133 void syscall_set_arguments(struct task_struct *task, struct pt_regs *regs,
149 int syscall_get_arch(struct task_struct *task);
/include/trace/hooks/
Dcreds.h17 TP_PROTO(const struct task_struct *task, const struct cred *new),
18 TP_ARGS(task, new), 1);
21 TP_PROTO(const struct task_struct *task, const struct cred *cred),
22 TP_ARGS(task, cred), 1);
25 TP_PROTO(const struct task_struct *task, const struct cred *new),
26 TP_ARGS(task, new), 1);
29 TP_PROTO(const struct task_struct *task, const struct cred *old),
30 TP_ARGS(task, old), 1);
/include/trace/events/
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),
48 __entry->pid = task->pid;
49 memcpy(entry->oldcomm, task->comm, TASK_COMM_LEN);
[all …]
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;
95 __assign_str(comm, task->comm);
[all …]
Dsunrpc.h52 const struct rpc_task *task,
56 TP_ARGS(task, xdr),
70 __entry->task_id = task->tk_pid;
71 __entry->client_id = task->tk_client ?
72 task->tk_client->cl_clid : -1;
92 const struct rpc_task *task, \
95 TP_ARGS(task, xdr))
235 TP_PROTO(const struct rpc_task *task),
237 TP_ARGS(task),
246 __entry->task_id = task->tk_pid;
[all …]
Drpcgss.h83 const struct rpc_task *task,
87 TP_ARGS(task, maj_stat),
97 __entry->task_id = task->tk_pid;
98 __entry->client_id = task->tk_client->cl_clid;
111 const struct rpc_task *task, \
114 TP_ARGS(task, maj_stat))
320 const struct rpc_task *task
323 TP_ARGS(task),
331 __entry->task_id = task->tk_pid;
332 __entry->client_id = task->tk_client->cl_clid;
[all …]
/include/linux/sched/
Dtask_stack.h19 static __always_inline void *task_stack_page(const struct task_struct *task) in task_stack_page() argument
21 return task->stack; in task_stack_page()
26 static __always_inline unsigned long *end_of_stack(const struct task_struct *task) in end_of_stack() argument
29 return (unsigned long *)((unsigned long)task->stack + THREAD_SIZE) - 1; in end_of_stack()
31 return task->stack; in end_of_stack()
37 #define task_stack_page(task) ((void *)(task)->stack) argument
42 task_thread_info(p)->task = p; in setup_thread_stack()
82 #define task_stack_end_corrupted(task) \ argument
83 (*(end_of_stack(task)) != STACK_END_MAGIC)
Dsignal.h282 extern int dequeue_signal(struct task_struct *task,
287 struct task_struct *task = current; in kernel_dequeue_signal() local
291 spin_lock_irq(&task->sighand->siglock); in kernel_dequeue_signal()
292 ret = dequeue_signal(task, &task->blocked, &__info); in kernel_dequeue_signal()
293 spin_unlock_irq(&task->sighand->siglock); in kernel_dequeue_signal()
434 void task_join_group_stop(struct task_struct *task);
458 static inline void clear_tsk_restore_sigmask(struct task_struct *task) in clear_tsk_restore_sigmask() argument
460 clear_tsk_thread_flag(task, TIF_RESTORE_SIGMASK); in clear_tsk_restore_sigmask()
467 static inline bool test_tsk_restore_sigmask(struct task_struct *task) in test_tsk_restore_sigmask() argument
469 return test_tsk_thread_flag(task, TIF_RESTORE_SIGMASK); in test_tsk_restore_sigmask()
[all …]
Djobctl.h35 extern bool task_set_jobctl_pending(struct task_struct *task, unsigned long mask);
36 extern void task_clear_jobctl_trapping(struct task_struct *task);
37 extern void task_clear_jobctl_pending(struct task_struct *task, unsigned long mask);
/include/linux/fsl/bestcomm/
Dbestcomm_priv.h238 extern int bcom_load_image(int task, u32 *task_image);
239 extern void bcom_set_initiator(int task, int initiator);
261 bcom_enable_task(int task) in bcom_enable_task() argument
264 reg = in_be16(&bcom_eng->regs->tcr[task]); in bcom_enable_task()
265 out_be16(&bcom_eng->regs->tcr[task], reg | TASK_ENABLE); in bcom_enable_task()
269 bcom_disable_task(int task) in bcom_disable_task() argument
271 u16 reg = in_be16(&bcom_eng->regs->tcr[task]); in bcom_disable_task()
272 out_be16(&bcom_eng->regs->tcr[task], reg & ~TASK_ENABLE); in bcom_disable_task()
277 bcom_task_desc(int task) in bcom_task_desc() argument
279 return bcom_sram_pa2va(bcom_eng->tdt[task].start); in bcom_task_desc()
[all …]
/include/linux/sunrpc/
Dxprt.h134 int (*reserve_xprt)(struct rpc_xprt *xprt, struct rpc_task *task);
135 void (*release_xprt)(struct rpc_xprt *xprt, struct rpc_task *task);
136 void (*alloc_slot)(struct rpc_xprt *xprt, struct rpc_task *task);
139 void (*rpcbind)(struct rpc_task *task);
141 void (*connect)(struct rpc_xprt *xprt, struct rpc_task *task);
142 int (*buf_alloc)(struct rpc_task *task);
143 void (*buf_free)(struct rpc_task *task);
146 void (*wait_for_reply_request)(struct rpc_task *task);
147 void (*timer)(struct rpc_xprt *xprt, struct rpc_task *task);
148 void (*release_request)(struct rpc_task *task);
[all …]
Dauth.h130 int (*crmarshal)(struct rpc_task *task,
133 int (*crvalidate)(struct rpc_task *task,
135 int (*crwrap_req)(struct rpc_task *task,
137 int (*crunwrap_resp)(struct rpc_task *task,
165 int rpcauth_marshcred(struct rpc_task *task,
167 int rpcauth_checkverf(struct rpc_task *task,
169 int rpcauth_wrap_req_encode(struct rpc_task *task,
171 int rpcauth_wrap_req(struct rpc_task *task,
173 int rpcauth_unwrap_resp_decode(struct rpc_task *task,
175 int rpcauth_unwrap_resp(struct rpc_task *task,
[all …]
/include/scsi/
Dlibiscsi.h140 static inline int iscsi_task_has_unsol_data(struct iscsi_task *task) in iscsi_task_has_unsol_data() argument
142 return task->unsol_r2t.data_length > task->unsol_r2t.sent; in iscsi_task_has_unsol_data()
145 static inline void* iscsi_next_hdr(struct iscsi_task *task) in iscsi_next_hdr() argument
147 return (void*)task->hdr + task->hdr_len; in iscsi_next_hdr()
150 static inline bool iscsi_task_is_completed(struct iscsi_task *task) in iscsi_task_is_completed() argument
152 return task->state == ISCSI_TASK_COMPLETED || in iscsi_task_is_completed()
153 task->state == ISCSI_TASK_ABRT_TMF || in iscsi_task_is_completed()
154 task->state == ISCSI_TASK_ABRT_SESS_RECOV; in iscsi_task_is_completed()
196 struct iscsi_task *task; /* xmit task in progress */ member
461 extern void iscsi_prep_data_out_pdu(struct iscsi_task *task,
[all …]

1234