/include/linux/ |
D | cn_proc.h | 23 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 …]
|
D | ioprio.h | 30 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() 63 extern int set_task_ioprio(struct task_struct *task, int ioprio);
|
D | pid.h | 99 extern struct pid *get_task_pid(struct task_struct *task, enum pid_type type); 104 extern void attach_pid(struct task_struct *task, enum pid_type); 105 extern void detach_pid(struct task_struct *task, enum pid_type); 106 extern void change_pid(struct task_struct *task, enum pid_type, 108 extern void exchange_tids(struct task_struct *task, struct task_struct *old); 192 #define do_each_pid_task(pid, type, task) \ argument 195 hlist_for_each_entry_rcu((task), \ 202 #define while_each_pid_task(pid, type, task) \ argument 208 #define do_each_pid_thread(pid, type, task) \ argument 209 do_each_pid_task(pid, type, task) { \ [all …]
|
D | shm.h | 20 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
|
D | task_work.h | 23 static inline bool task_work_pending(struct task_struct *task) in task_work_pending() argument 25 return READ_ONCE(task->task_works); in task_work_pending() 28 int task_work_add(struct task_struct *task, struct callback_head *twork, 31 struct callback_head *task_work_cancel_match(struct task_struct *task, 36 static inline void exit_task_work(struct task_struct *task) in exit_task_work() argument
|
D | rcuwait.h | 17 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()
|
D | cgroup.h | 124 int task_cgroup_path(struct task_struct *task, char *buf, size_t buflen); 290 #define cgroup_taskset_for_each(task, dst_css, tset) \ argument 291 for ((task) = cgroup_taskset_first((tset), &(dst_css)); \ 292 (task); \ 293 (task) = cgroup_taskset_next((tset), &(dst_css))) 468 #define task_css_set_check(task, __c) \ argument 469 rcu_dereference_check((task)->cgroups, \ 473 ((task)->flags & PF_EXITING) || (__c)) 475 #define task_css_set_check(task, __c) \ argument 476 rcu_dereference((task)->cgroups) [all …]
|
D | latencytop.h | 31 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
|
D | ptrace.h | 88 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 …]
|
D | resume_user_mode.h | 20 static inline void set_notify_resume(struct task_struct *task) in set_notify_resume() argument 22 if (!test_and_set_tsk_thread_flag(task, TIF_NOTIFY_RESUME)) in set_notify_resume() 23 kick_process(task); in set_notify_resume()
|
D | seccomp.h | 108 extern long seccomp_get_filter(struct task_struct *task, 110 extern long seccomp_get_metadata(struct task_struct *task, 113 static inline long seccomp_get_filter(struct task_struct *task, in seccomp_get_filter() argument 118 static inline long seccomp_get_metadata(struct task_struct *task, in seccomp_get_metadata() argument 130 struct pid *pid, struct task_struct *task);
|
D | nospec.h | 68 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/ |
D | creds.h | 16 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/ |
D | syscall.h | 38 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/ |
D | task.h | 3 #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 …]
|
D | oom.h | 14 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 …]
|
D | sunrpc.h | 54 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)) 244 TP_PROTO(const struct rpc_task *task), 246 TP_ARGS(task), 255 __entry->task_id = task->tk_pid; [all …]
|
D | rpcgss.h | 85 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)) 322 const struct rpc_task *task 325 TP_ARGS(task), 333 __entry->task_id = task->tk_pid; 334 __entry->client_id = task->tk_client->cl_clid; [all …]
|
/include/linux/fsl/bestcomm/ |
D | bestcomm_priv.h | 238 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/sched/ |
D | task_stack.h | 19 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() 84 #define task_stack_end_corrupted(task) \ argument 85 (*(end_of_stack(task)) != STACK_END_MAGIC)
|
D | signal.h | 77 struct task_struct *task; member 284 extern int dequeue_signal(struct task_struct *task, sigset_t *mask, 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, &task->blocked, &__info, &__type); in kernel_dequeue_signal() 296 spin_unlock_irq(&task->sighand->siglock); in kernel_dequeue_signal() 371 static inline bool __set_notify_signal(struct task_struct *task) in __set_notify_signal() argument 373 return !test_and_set_tsk_thread_flag(task, TIF_NOTIFY_SIGNAL) && in __set_notify_signal() 374 !wake_up_state(task, TASK_INTERRUPTIBLE); in __set_notify_signal() 381 static inline void set_notify_signal(struct task_struct *task) in set_notify_signal() argument [all …]
|
D | jobctl.h | 43 extern bool task_set_jobctl_pending(struct task_struct *task, unsigned long mask); 44 extern void task_clear_jobctl_trapping(struct task_struct *task); 45 extern void task_clear_jobctl_pending(struct task_struct *task, unsigned long mask);
|
/include/linux/sunrpc/ |
D | xprt.h | 134 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); 145 int (*buf_alloc)(struct rpc_task *task); 146 void (*buf_free)(struct rpc_task *task); 150 void (*wait_for_reply_request)(struct rpc_task *task); 151 void (*timer)(struct rpc_xprt *xprt, struct rpc_task *task); 152 void (*release_request)(struct rpc_task *task); [all …]
|
D | auth.h | 131 int (*crmarshal)(struct rpc_task *task, 134 int (*crvalidate)(struct rpc_task *task, 136 int (*crwrap_req)(struct rpc_task *task, 138 int (*crunwrap_resp)(struct rpc_task *task, 166 int rpcauth_marshcred(struct rpc_task *task, 168 int rpcauth_checkverf(struct rpc_task *task, 170 int rpcauth_wrap_req_encode(struct rpc_task *task, 172 int rpcauth_wrap_req(struct rpc_task *task, 174 int rpcauth_unwrap_resp_decode(struct rpc_task *task, 176 int rpcauth_unwrap_resp(struct rpc_task *task, [all …]
|
/include/scsi/ |
D | libiscsi.h | 138 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 …]
|