Home
last modified time | relevance | path

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

12345

/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 …]
Dtask_work.h27 static inline bool task_work_pending(struct task_struct *task) in task_work_pending() argument
29 return READ_ONCE(task->task_works); in task_work_pending()
32 int task_work_add(struct task_struct *task, struct callback_head *twork,
35 struct callback_head *task_work_cancel_match(struct task_struct *task,
38 bool task_work_cancel(struct task_struct *task, struct callback_head *cb);
41 static inline void exit_task_work(struct task_struct *task) in exit_task_work() argument
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
Dpid.h79 void do_notify_pidfd(struct task_struct *task);
96 extern struct pid *get_task_pid(struct task_struct *task, enum pid_type type);
101 extern void attach_pid(struct task_struct *task, enum pid_type);
102 extern void detach_pid(struct task_struct *task, enum pid_type);
103 extern void change_pid(struct task_struct *task, enum pid_type,
105 extern void exchange_tids(struct task_struct *task, struct task_struct *old);
186 #define do_each_pid_task(pid, type, task) \ argument
189 hlist_for_each_entry_rcu((task), \
196 #define while_each_pid_task(pid, type, task) \ argument
202 #define do_each_pid_thread(pid, type, task) \ argument
[all …]
Dcgroup.h288 #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)))
393 #define task_css_set_check(task, __c) \ argument
394 rcu_dereference_check((task)->cgroups, \
398 ((task)->flags & PF_EXITING) || (__c))
400 #define task_css_set_check(task, __c) \ argument
401 rcu_dereference((task)->cgroups)
413 #define task_css_check(task, subsys_id, __c) \ argument
[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 (rt_or_dl_task_policy(task)) in task_nice_ioclass()
87 extern int set_task_ioprio(struct task_struct *task, int ioprio);
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
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
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()
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()
[all …]
Dseccomp.h89 extern long seccomp_get_filter(struct task_struct *task,
91 extern long seccomp_get_metadata(struct task_struct *task,
94 static inline long seccomp_get_filter(struct task_struct *task, in seccomp_get_filter() argument
99 static inline long seccomp_get_metadata(struct task_struct *task, in seccomp_get_metadata() argument
113 struct pid *pid, struct task_struct *task);
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()
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()
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/trace/hooks/
Dcreds.h16 TP_PROTO(const struct task_struct *task, const struct cred *new),
17 TP_ARGS(task, new), 1);
20 TP_PROTO(const struct task_struct *task, const struct cred *cred),
21 TP_ARGS(task, cred), 1);
24 TP_PROTO(const struct task_struct *task, const struct cred *new),
25 TP_ARGS(task, new), 1);
28 TP_PROTO(const struct task_struct *task, const struct cred *old),
29 TP_ARGS(task, old), 1);
/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 int syscall_get_arch(struct task_struct *task);
/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;
96 __entry->total_vm = PG_COUNT_TO_KB(task->mm->total_vm);
[all …]
Dsunrpc.h54 const struct rpc_task *task,
58 TP_ARGS(task, xdr),
73 __entry->task_id = task->tk_pid;
74 __entry->client_id = task->tk_client ?
75 task->tk_client->cl_clid : -1;
99 const struct rpc_task *task, \
102 TP_ARGS(task, xdr))
276 TP_PROTO(const struct rpc_task *task),
278 TP_ARGS(task),
287 __entry->task_id = task->tk_pid;
[all …]
Drpcgss.h85 const struct rpc_task *task,
89 TP_ARGS(task, maj_stat),
99 __entry->task_id = task->tk_pid;
100 __entry->client_id = task->tk_client->cl_clid;
113 const struct rpc_task *task, \
116 TP_ARGS(task, maj_stat))
344 const struct rpc_task *task
347 TP_ARGS(task),
355 __entry->task_id = task->tk_pid;
356 __entry->client_id = task->tk_client->cl_clid;
[all …]
/include/linux/sched/
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)
Dsignal.h78 struct task_struct *task; member
289 struct task_struct *task = current; in kernel_dequeue_signal() local
294 spin_lock_irq(&task->sighand->siglock); in kernel_dequeue_signal()
295 ret = dequeue_signal(&task->blocked, &__info, &__type); in kernel_dequeue_signal()
296 spin_unlock_irq(&task->sighand->siglock); in kernel_dequeue_signal()
362 static inline bool __set_notify_signal(struct task_struct *task) in __set_notify_signal() argument
364 return !test_and_set_tsk_thread_flag(task, TIF_NOTIFY_SIGNAL) && in __set_notify_signal()
365 !wake_up_state(task, TASK_INTERRUPTIBLE); in __set_notify_signal()
372 static inline void set_notify_signal(struct task_struct *task) in set_notify_signal() argument
374 if (__set_notify_signal(task)) in set_notify_signal()
[all …]
/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.h139 int (*reserve_xprt)(struct rpc_xprt *xprt, struct rpc_task *task);
140 void (*release_xprt)(struct rpc_xprt *xprt, struct rpc_task *task);
141 void (*alloc_slot)(struct rpc_xprt *xprt, struct rpc_task *task);
144 void (*rpcbind)(struct rpc_task *task);
146 void (*connect)(struct rpc_xprt *xprt, struct rpc_task *task);
150 int (*buf_alloc)(struct rpc_task *task);
151 void (*buf_free)(struct rpc_task *task);
156 void (*wait_for_reply_request)(struct rpc_task *task);
157 void (*timer)(struct rpc_xprt *xprt, struct rpc_task *task);
158 void (*release_request)(struct rpc_task *task);
[all …]
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/
Dlibiscsi.h138 static inline int iscsi_task_has_unsol_data(struct iscsi_task *task) in iscsi_task_has_unsol_data() argument
140 return task->unsol_r2t.data_length > task->unsol_r2t.sent; in iscsi_task_has_unsol_data()
143 static inline void* iscsi_next_hdr(struct iscsi_task *task) in iscsi_next_hdr() argument
145 return (void*)task->hdr + task->hdr_len; in iscsi_next_hdr()
148 static inline bool iscsi_task_is_completed(struct iscsi_task *task) in iscsi_task_is_completed() argument
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
[all …]

12345