/linux-4.4.14/net/sunrpc/ |
D | sched.c | 46 static void rpc_release_task(struct rpc_task *task); 65 __rpc_disable_timer(struct rpc_wait_queue *queue, struct rpc_task *task) in __rpc_disable_timer() argument 67 if (task->tk_timeout == 0) in __rpc_disable_timer() 69 dprintk("RPC: %5u disabling timer\n", task->tk_pid); in __rpc_disable_timer() 70 task->tk_timeout = 0; in __rpc_disable_timer() 71 list_del(&task->u.tk_wait.timer_list); in __rpc_disable_timer() 87 __rpc_add_timer(struct rpc_wait_queue *queue, struct rpc_task *task) in __rpc_add_timer() argument 89 if (!task->tk_timeout) in __rpc_add_timer() 93 task->tk_pid, jiffies_to_msecs(task->tk_timeout)); in __rpc_add_timer() 95 task->u.tk_wait.expires = jiffies + task->tk_timeout; in __rpc_add_timer() [all …]
|
D | clnt.c | 60 static void call_start(struct rpc_task *task); 61 static void call_reserve(struct rpc_task *task); 62 static void call_reserveresult(struct rpc_task *task); 63 static void call_allocate(struct rpc_task *task); 64 static void call_decode(struct rpc_task *task); 65 static void call_bind(struct rpc_task *task); 66 static void call_bind_status(struct rpc_task *task); 67 static void call_transmit(struct rpc_task *task); 69 static void call_bc_transmit(struct rpc_task *task); 71 static void call_status(struct rpc_task *task); [all …]
|
D | xprt.c | 69 static void xprt_connect_status(struct rpc_task *task); 182 int xprt_reserve_xprt(struct rpc_xprt *xprt, struct rpc_task *task) in xprt_reserve_xprt() argument 184 struct rpc_rqst *req = task->tk_rqstp; in xprt_reserve_xprt() 188 if (task == xprt->snd_task) in xprt_reserve_xprt() 192 xprt->snd_task = task; in xprt_reserve_xprt() 200 task->tk_pid, xprt); in xprt_reserve_xprt() 201 task->tk_timeout = 0; in xprt_reserve_xprt() 202 task->tk_status = -EAGAIN; in xprt_reserve_xprt() 209 rpc_sleep_on_priority(&xprt->sending, task, NULL, priority); in xprt_reserve_xprt() 233 int xprt_reserve_xprt_cong(struct rpc_xprt *xprt, struct rpc_task *task) in xprt_reserve_xprt_cong() argument [all …]
|
D | auth.c | 657 rpcauth_generic_bind_cred(struct rpc_task *task, struct rpc_cred *cred, int lookupflags) in rpcauth_generic_bind_cred() argument 659 dprintk("RPC: %5u holding %s cred %p\n", task->tk_pid, in rpcauth_generic_bind_cred() 666 rpcauth_bind_root_cred(struct rpc_task *task, int lookupflags) in rpcauth_bind_root_cred() argument 668 struct rpc_auth *auth = task->tk_client->cl_auth; in rpcauth_bind_root_cred() 675 task->tk_pid, task->tk_client->cl_auth->au_ops->au_name); in rpcauth_bind_root_cred() 680 rpcauth_bind_new_cred(struct rpc_task *task, int lookupflags) in rpcauth_bind_new_cred() argument 682 struct rpc_auth *auth = task->tk_client->cl_auth; in rpcauth_bind_new_cred() 685 task->tk_pid, auth->au_ops->au_name); in rpcauth_bind_new_cred() 690 rpcauth_bindcred(struct rpc_task *task, struct rpc_cred *cred, int flags) in rpcauth_bindcred() argument 692 struct rpc_rqst *req = task->tk_rqstp; in rpcauth_bindcred() [all …]
|
D | debugfs.c | 28 struct rpc_task *task = v; in tasks_show() local 29 struct rpc_clnt *clnt = task->tk_client; in tasks_show() 32 if (RPC_IS_QUEUED(task)) in tasks_show() 33 rpc_waitq = rpc_qname(task->tk_waitqueue); in tasks_show() 35 if (task->tk_rqstp) in tasks_show() 36 xid = be32_to_cpu(task->tk_rqstp->rq_xid); in tasks_show() 39 task->tk_pid, task->tk_flags, task->tk_status, in tasks_show() 40 clnt->cl_clid, xid, task->tk_timeout, task->tk_ops, in tasks_show() 41 clnt->cl_program->name, clnt->cl_vers, rpc_proc_name(task), in tasks_show() 42 task->tk_action, rpc_waitq); in tasks_show() [all …]
|
D | auth_unix.c | 144 unx_marshal(struct rpc_task *task, __be32 *p) in unx_marshal() argument 146 struct rpc_clnt *clnt = task->tk_client; in unx_marshal() 147 struct unx_cred *cred = container_of(task->tk_rqstp->rq_cred, struct unx_cred, uc_base); in unx_marshal() 178 unx_refresh(struct rpc_task *task) in unx_refresh() argument 180 set_bit(RPCAUTH_CRED_UPTODATE, &task->tk_rqstp->rq_cred->cr_flags); in unx_refresh() 185 unx_validate(struct rpc_task *task, __be32 *p) in unx_validate() argument 203 task->tk_rqstp->rq_cred->cr_auth->au_rslack = (size >> 2) + 2; in unx_validate()
|
D | sunrpc.h | 40 static inline int rpc_reply_expected(struct rpc_task *task) in rpc_reply_expected() argument 42 return (task->tk_msg.rpc_proc != NULL) && in rpc_reply_expected() 43 (task->tk_msg.rpc_proc->p_decode != NULL); in rpc_reply_expected()
|
D | stats.c | 147 void rpc_count_iostats_metrics(const struct rpc_task *task, in rpc_count_iostats_metrics() argument 150 struct rpc_rqst *req = task->tk_rqstp; in rpc_count_iostats_metrics() 161 op_metrics->om_timeouts += task->tk_timeouts; in rpc_count_iostats_metrics() 166 delta = ktime_sub(req->rq_xtime, task->tk_start); in rpc_count_iostats_metrics() 171 delta = ktime_sub(now, task->tk_start); in rpc_count_iostats_metrics() 185 void rpc_count_iostats(const struct rpc_task *task, struct rpc_iostats *stats) in rpc_count_iostats() argument 187 rpc_count_iostats_metrics(task, in rpc_count_iostats() 188 &stats[task->tk_msg.rpc_proc->p_statidx]); in rpc_count_iostats()
|
D | auth_null.c | 64 nul_marshal(struct rpc_task *task, __be32 *p) in nul_marshal() argument 78 nul_refresh(struct rpc_task *task) in nul_refresh() argument 80 set_bit(RPCAUTH_CRED_UPTODATE, &task->tk_rqstp->rq_cred->cr_flags); in nul_refresh() 85 nul_validate(struct rpc_task *task, __be32 *p) in nul_validate() argument
|
/linux-4.4.14/arch/parisc/kernel/ |
D | ptrace.c | 38 void ptrace_disable(struct task_struct *task) in ptrace_disable() argument 40 clear_tsk_thread_flag(task, TIF_SINGLESTEP); in ptrace_disable() 41 clear_tsk_thread_flag(task, TIF_BLOCKSTEP); in ptrace_disable() 44 pa_psw(task)->r = 0; in ptrace_disable() 45 pa_psw(task)->t = 0; in ptrace_disable() 46 pa_psw(task)->h = 0; in ptrace_disable() 47 pa_psw(task)->l = 0; in ptrace_disable() 54 void user_disable_single_step(struct task_struct *task) in user_disable_single_step() argument 56 ptrace_disable(task); in user_disable_single_step() 59 void user_enable_single_step(struct task_struct *task) in user_enable_single_step() argument [all …]
|
D | stacktrace.c | 15 static void dump_trace(struct task_struct *task, struct stack_trace *trace) in dump_trace() argument 20 if (task == current) { in dump_trace() 29 unwind_frame_init(&info, task, &r); in dump_trace() 31 unwind_frame_init_from_blocked_task(&info, task); in dump_trace()
|
/linux-4.4.14/net/irda/ |
D | irda_device.c | 55 static void __irda_task_delete(struct irda_task *task); 162 static void __irda_task_delete(struct irda_task *task) in __irda_task_delete() argument 164 del_timer(&task->timer); in __irda_task_delete() 166 kfree(task); in __irda_task_delete() 169 static void irda_task_delete(struct irda_task *task) in irda_task_delete() argument 172 hashbin_remove(tasks, (long) task, NULL); in irda_task_delete() 174 __irda_task_delete(task); in irda_task_delete() 185 static int irda_task_kick(struct irda_task *task) in irda_task_kick() argument 191 IRDA_ASSERT(task != NULL, return -1;); in irda_task_kick() 192 IRDA_ASSERT(task->magic == IRDA_TASK_MAGIC, return -1;); in irda_task_kick() [all …]
|
/linux-4.4.14/kernel/locking/ |
D | rtmutex.c | 173 return dl_time_before(left->task->dl.deadline, in rt_mutex_waiter_less() 174 right->task->dl.deadline); in rt_mutex_waiter_less() 219 rt_mutex_enqueue_pi(struct task_struct *task, struct rt_mutex_waiter *waiter) in rt_mutex_enqueue_pi() argument 221 struct rb_node **link = &task->pi_waiters.rb_node; in rt_mutex_enqueue_pi() 238 task->pi_waiters_leftmost = &waiter->pi_tree_entry; in rt_mutex_enqueue_pi() 241 rb_insert_color(&waiter->pi_tree_entry, &task->pi_waiters); in rt_mutex_enqueue_pi() 245 rt_mutex_dequeue_pi(struct task_struct *task, struct rt_mutex_waiter *waiter) in rt_mutex_dequeue_pi() argument 250 if (task->pi_waiters_leftmost == &waiter->pi_tree_entry) in rt_mutex_dequeue_pi() 251 task->pi_waiters_leftmost = rb_next(&waiter->pi_tree_entry); in rt_mutex_dequeue_pi() 253 rb_erase(&waiter->pi_tree_entry, &task->pi_waiters); in rt_mutex_dequeue_pi() [all …]
|
D | rtmutex-debug.c | 58 void rt_mutex_debug_task_free(struct task_struct *task) in rt_mutex_debug_task_free() argument 60 DEBUG_LOCKS_WARN_ON(!RB_EMPTY_ROOT(&task->pi_waiters)); in rt_mutex_debug_task_free() 61 DEBUG_LOCKS_WARN_ON(task->pi_blocked_on); in rt_mutex_debug_task_free() 73 struct task_struct *task; in debug_rt_mutex_deadlock() local 78 task = rt_mutex_owner(act_waiter->lock); in debug_rt_mutex_deadlock() 79 if (task && task != current) { in debug_rt_mutex_deadlock() 80 act_waiter->deadlock_task_pid = get_pid(task_pid(task)); in debug_rt_mutex_deadlock() 87 struct task_struct *task; in debug_rt_mutex_print_deadlock() local 93 task = pid_task(waiter->deadlock_task_pid, PIDTYPE_PID); in debug_rt_mutex_print_deadlock() 94 if (!task) { in debug_rt_mutex_print_deadlock() [all …]
|
D | mutex-debug.c | 57 ti->task->blocked_on = waiter; in debug_mutex_add_waiter() 64 DEBUG_LOCKS_WARN_ON(waiter->task != ti->task); in mutex_remove_waiter() 65 DEBUG_LOCKS_WARN_ON(ti->task->blocked_on != waiter); in mutex_remove_waiter() 66 ti->task->blocked_on = NULL; in mutex_remove_waiter() 69 waiter->task = NULL; in mutex_remove_waiter()
|
D | semaphore.c | 195 struct task_struct *task; member 207 struct task_struct *task = current; in __down_common() local 211 waiter.task = task; in __down_common() 215 if (signal_pending_state(state, task)) in __down_common() 219 __set_task_state(task, state); in __down_common() 262 wake_up_process(waiter->task); in __up()
|
D | rwsem-spinlock.c | 19 struct task_struct *task; member 77 wake_up_process(waiter->task); in __rwsem_do_wake() 87 tsk = waiter->task; in __rwsem_do_wake() 96 waiter->task = NULL; in __rwsem_do_wake() 120 wake_up_process(waiter->task); in __rwsem_wake_one_writer() 147 waiter.task = tsk; in __down_read() 158 if (!waiter.task) in __down_read() 204 waiter.task = tsk; in __down_write_nested()
|
D | mutex.c | 189 wake_up_process(cur->task); in ww_mutex_set_context_fastpath() 215 wake_up_process(cur->task); in ww_mutex_set_context_slowpath() 309 struct task_struct *task = current; in mutex_optimistic_spin() local 371 if (!owner && (need_resched() || rt_task(task))) in mutex_optimistic_spin() 512 struct task_struct *task = current; in __mutex_lock_common() local 537 debug_mutex_add_waiter(lock, &waiter, task_thread_info(task)); in __mutex_lock_common() 541 waiter.task = task; in __mutex_lock_common() 564 if (unlikely(signal_pending_state(state, task))) { in __mutex_lock_common() 575 __set_task_state(task, state); in __mutex_lock_common() 582 __set_task_state(task, TASK_RUNNING); in __mutex_lock_common() [all …]
|
/linux-4.4.14/drivers/scsi/aic94xx/ |
D | aic94xx_task.c | 54 static int asd_map_scatterlist(struct sas_task *task, in asd_map_scatterlist() argument 58 struct asd_ascb *ascb = task->lldd_task; in asd_map_scatterlist() 63 if (task->data_dir == PCI_DMA_NONE) in asd_map_scatterlist() 66 if (task->num_scatter == 0) { in asd_map_scatterlist() 67 void *p = task->scatter; in asd_map_scatterlist() 69 task->total_xfer_len, in asd_map_scatterlist() 70 task->data_dir); in asd_map_scatterlist() 72 sg_arr[0].size = cpu_to_le32(task->total_xfer_len); in asd_map_scatterlist() 79 if (sas_protocol_ata(task->task_proto)) in asd_map_scatterlist() 80 num_sg = task->num_scatter; in asd_map_scatterlist() [all …]
|
D | aic94xx_tmf.c | 233 static int asd_clear_nexus_tag(struct sas_task *task) in asd_clear_nexus_tag() argument 235 struct asd_ha_struct *asd_ha = task->dev->port->ha->lldd_ha; in asd_clear_nexus_tag() 236 struct asd_ascb *tascb = task->lldd_task; in asd_clear_nexus_tag() 240 memcpy(scb->clear_nexus.ssp_task.lun, task->ssp_task.LUN, 8); in asd_clear_nexus_tag() 242 if (task->dev->tproto) in asd_clear_nexus_tag() 244 task->dev->lldd_dev); in asd_clear_nexus_tag() 248 static int asd_clear_nexus_index(struct sas_task *task) in asd_clear_nexus_index() argument 250 struct asd_ha_struct *asd_ha = task->dev->port->ha->lldd_ha; in asd_clear_nexus_index() 251 struct asd_ascb *tascb = task->lldd_task; in asd_clear_nexus_index() 255 if (task->dev->tproto) in asd_clear_nexus_index() [all …]
|
/linux-4.4.14/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 | pid.h | 86 extern struct pid *get_task_pid(struct task_struct *task, enum pid_type type); 91 extern void attach_pid(struct task_struct *task, enum pid_type); 92 extern void detach_pid(struct task_struct *task, enum pid_type); 93 extern void change_pid(struct task_struct *task, enum pid_type, 175 #define do_each_pid_task(pid, type, task) \ argument 178 hlist_for_each_entry_rcu((task), \ 185 #define while_each_pid_task(pid, type, task) \ argument 191 #define do_each_pid_thread(pid, type, task) \ argument 192 do_each_pid_task(pid, type, task) { \ 193 struct task_struct *tg___ = task; \ [all …]
|
D | cgroup.h | 93 char *task_cgroup_path(struct task_struct *task, char *buf, size_t buflen); 256 #define cgroup_taskset_for_each(task, dst_css, tset) \ argument 257 for ((task) = cgroup_taskset_first((tset), &(dst_css)); \ 258 (task); \ 259 (task) = cgroup_taskset_next((tset), &(dst_css))) 383 #define task_css_set_check(task, __c) \ argument 384 rcu_dereference_check((task)->cgroups, \ 387 ((task)->flags & PF_EXITING) || (__c)) 389 #define task_css_set_check(task, __c) \ argument 390 rcu_dereference((task)->cgroups) [all …]
|
D | ioprio.h | 53 static inline int task_nice_ioprio(struct task_struct *task) in task_nice_ioprio() argument 55 return (task_nice(task) + 20) / 5; in task_nice_ioprio() 62 static inline int task_nice_ioclass(struct task_struct *task) in task_nice_ioclass() argument 64 if (task->policy == SCHED_IDLE) in task_nice_ioclass() 66 else if (task->policy == SCHED_FIFO || task->policy == SCHED_RR) in task_nice_ioclass() 77 extern int set_task_ioprio(struct task_struct *task, int ioprio);
|
D | ptrace.h | 83 extern bool ptrace_may_access(struct task_struct *task, unsigned int mode); 112 static inline struct task_struct *ptrace_parent(struct task_struct *task) in ptrace_parent() argument 114 if (unlikely(task->ptrace)) in ptrace_parent() 115 return rcu_dereference(task->parent); in ptrace_parent() 128 static inline bool ptrace_event_enabled(struct task_struct *task, int event) in ptrace_event_enabled() argument 130 return task->ptrace & PT_EVENT_FLAG(event); in ptrace_event_enabled() 223 static inline void ptrace_release_task(struct task_struct *task) in ptrace_release_task() argument 225 BUG_ON(!list_empty(&task->ptraced)); in ptrace_release_task() 226 ptrace_unlink(task); in ptrace_release_task() 227 BUG_ON(!list_empty(&task->ptrace_entry)); in ptrace_release_task() [all …]
|
D | shm.h | 56 void exit_shm(struct task_struct *task); 57 #define shm_init_task(task) INIT_LIST_HEAD(&(task)->sysvshm.shm_clist) argument 73 static inline void exit_shm(struct task_struct *task) in exit_shm() argument 76 static inline void shm_init_task(struct task_struct *task) in shm_init_task() argument
|
D | latencytop.h | 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() argument 35 __account_scheduler_latency(task, usecs, inter); in account_scheduler_latency() 43 account_scheduler_latency(struct task_struct *task, int usecs, int inter) in account_scheduler_latency() argument
|
D | posix-timers.h | 24 struct task_struct *task; member 128 void run_posix_cpu_timers(struct task_struct *task); 129 void posix_cpu_timers_exit(struct task_struct *task); 130 void posix_cpu_timers_exit_group(struct task_struct *task); 134 void set_process_cpu_timer(struct task_struct *task, unsigned int clock_idx, 139 void update_rlimit_cpu(struct task_struct *task, unsigned long rlim_new);
|
D | cred.h | 304 #define __task_cred(task) \ argument 305 rcu_dereference((task)->real_cred) 347 #define task_cred_xxx(task, xxx) \ argument 351 ___val = __task_cred((task))->xxx; \ 356 #define task_uid(task) (task_cred_xxx((task), uid)) argument 357 #define task_euid(task) (task_cred_xxx((task), euid)) argument
|
D | rtc.h | 102 struct rtc_task task; member 186 struct rtc_task *task); 188 struct rtc_task *task); 190 struct rtc_task *task, int enabled); 192 struct rtc_task *task, int freq); 203 int rtc_register(rtc_task_t *task); 204 int rtc_unregister(rtc_task_t *task);
|
D | perf_event.h | 618 struct task_struct *task; member 700 perf_cgroup_from_task(struct task_struct *task, struct perf_event_context *ctx) in perf_cgroup_from_task() argument 702 return container_of(task_css_check(task, perf_event_cgrp_id, in perf_cgroup_from_task() 725 struct task_struct *task); 730 extern void perf_event_free_task(struct task_struct *task); 731 extern void perf_event_delayed_put(struct task_struct *task); 747 struct task_struct *task, 921 static inline void perf_event_task_migrate(struct task_struct *task) in perf_event_task_migrate() argument 924 task->sched_migrated = 1; in perf_event_task_migrate() 928 struct task_struct *task) in perf_event_task_sched_in() argument [all …]
|
D | oom.h | 90 struct task_struct *task, unsigned long totalpages); 105 static inline bool task_will_free_mem(struct task_struct *task) in task_will_free_mem() argument 112 return (task->flags & PF_EXITING) && in task_will_free_mem() 113 !(task->signal->flags & SIGNAL_GROUP_COREDUMP); in task_will_free_mem()
|
/linux-4.4.14/drivers/scsi/pm8001/ |
D | pm8001_sas.c | 49 static int pm8001_find_tag(struct sas_task *task, u32 *tag) in pm8001_find_tag() argument 51 if (task->lldd_task) { in pm8001_find_tag() 53 ccb = task->lldd_task; in pm8001_find_tag() 278 u32 pm8001_get_ncq_tag(struct sas_task *task, u32 *tag) in pm8001_get_ncq_tag() argument 280 struct ata_queued_cmd *qc = task->uldd_task; in pm8001_get_ncq_tag() 353 static int pm8001_task_exec(struct sas_task *task, in pm8001_task_exec() argument 356 struct domain_device *dev = task->dev; in pm8001_task_exec() 360 struct sas_task *t = task; in pm8001_task_exec() 373 pm8001_ha = pm8001_find_ha_by_dev(task->dev); in pm8001_task_exec() 421 ccb->task = t; in pm8001_task_exec() [all …]
|
D | pm80xx_hwi.c | 1386 struct sas_task *task = NULL; in pm80xx_send_abort_all() local 1397 task = sas_alloc_slow_task(GFP_ATOMIC); in pm80xx_send_abort_all() 1399 if (!task) { in pm80xx_send_abort_all() 1405 task->task_done = pm8001_task_done; in pm80xx_send_abort_all() 1409 sas_free_task(task); in pm80xx_send_abort_all() 1416 ccb->task = task; in pm80xx_send_abort_all() 1427 sas_free_task(task); in pm80xx_send_abort_all() 1439 struct sas_task *task = NULL; in pm80xx_send_read_log() local 1445 task = sas_alloc_slow_task(GFP_ATOMIC); in pm80xx_send_read_log() 1447 if (!task) { in pm80xx_send_read_log() [all …]
|
D | pm8001_hwi.c | 1540 if ((tag != 0xFFFFFFFF) && (ccb->task == t)) in pm8001_work_fn() 1621 if ((tag != 0xFFFFFFFF) && (ccb->task == t)) in pm8001_work_fn() 1716 struct sas_task *task = NULL; in pm8001_send_abort_all() local 1727 task = sas_alloc_slow_task(GFP_ATOMIC); in pm8001_send_abort_all() 1729 if (!task) { in pm8001_send_abort_all() 1735 task->task_done = pm8001_task_done; in pm8001_send_abort_all() 1744 ccb->task = task; in pm8001_send_abort_all() 1766 struct sas_task *task = NULL; in pm8001_send_read_log() local 1772 task = sas_alloc_slow_task(GFP_ATOMIC); in pm8001_send_read_log() 1774 if (!task) { in pm8001_send_read_log() [all …]
|
/linux-4.4.14/drivers/video/fbdev/ |
D | uvesafb.c | 71 struct uvesafb_ktask *task; in uvesafb_cn_callback() local 80 task = uvfb_tasks[msg->seq]; in uvesafb_cn_callback() 82 if (!task || msg->ack != task->ack) { in uvesafb_cn_callback() 90 if (task->t.buf_len < utask->buf_len || in uvesafb_cn_callback() 99 memcpy(&task->t, utask, sizeof(*utask)); in uvesafb_cn_callback() 101 if (task->t.buf_len && task->buf) in uvesafb_cn_callback() 102 memcpy(task->buf, utask + 1, task->t.buf_len); in uvesafb_cn_callback() 104 complete(task->done); in uvesafb_cn_callback() 140 static int uvesafb_exec(struct uvesafb_ktask *task) in uvesafb_exec() argument 145 int len = sizeof(task->t) + task->t.buf_len; in uvesafb_exec() [all …]
|
/linux-4.4.14/fs/proc/ |
D | base.c | 157 static int get_task_root(struct task_struct *task, struct path *root) in get_task_root() argument 161 task_lock(task); in get_task_root() 162 if (task->fs) { in get_task_root() 163 get_fs_root(task->fs, root); in get_task_root() 166 task_unlock(task); in get_task_root() 172 struct task_struct *task = get_proc_task(d_inode(dentry)); in proc_cwd_link() local 175 if (task) { in proc_cwd_link() 176 task_lock(task); in proc_cwd_link() 177 if (task->fs) { in proc_cwd_link() 178 get_fs_pwd(task->fs, path); in proc_cwd_link() [all …]
|
D | array.c | 346 static void task_cpus_allowed(struct seq_file *m, struct task_struct *task) in task_cpus_allowed() argument 349 cpumask_pr_args(&task->cpus_allowed)); in task_cpus_allowed() 351 cpumask_pr_args(&task->cpus_allowed)); in task_cpus_allowed() 355 struct pid *pid, struct task_struct *task) in proc_pid_status() argument 357 struct mm_struct *mm = get_task_mm(task); in proc_pid_status() 359 task_name(m, task); in proc_pid_status() 360 task_state(m, ns, pid, task); in proc_pid_status() 366 task_sig(m, task); in proc_pid_status() 367 task_cap(m, task); in proc_pid_status() 368 task_seccomp(m, task); in proc_pid_status() [all …]
|
D | namespaces.c | 37 struct task_struct *task; in proc_ns_follow_link() local 41 task = get_proc_task(inode); in proc_ns_follow_link() 42 if (!task) in proc_ns_follow_link() 45 if (ptrace_may_access(task, PTRACE_MODE_READ_FSCREDS)) { in proc_ns_follow_link() 46 error = ns_get_path(&ns_path, task, ns_ops); in proc_ns_follow_link() 50 put_task_struct(task); in proc_ns_follow_link() 58 struct task_struct *task; in proc_ns_readlink() local 62 task = get_proc_task(inode); in proc_ns_readlink() 63 if (!task) in proc_ns_readlink() 66 if (ptrace_may_access(task, PTRACE_MODE_READ_FSCREDS)) { in proc_ns_readlink() [all …]
|
D | fd.c | 24 struct task_struct *task; in seq_show() local 26 task = get_proc_task(m->private); in seq_show() 27 if (!task) in seq_show() 30 files = get_files_struct(task); in seq_show() 31 put_task_struct(task); in seq_show() 86 struct task_struct *task; in tid_fd_revalidate() local 95 task = get_proc_task(inode); in tid_fd_revalidate() 98 if (task) { in tid_fd_revalidate() 99 files = get_files_struct(task); in tid_fd_revalidate() 111 if (task_dumpable(task)) { in tid_fd_revalidate() [all …]
|
D | task_nommu.c | 130 struct task_struct *task; in pid_of_stack() local 134 task = pid_task(proc_pid(inode), PIDTYPE_PID); in pid_of_stack() 135 if (task) { in pid_of_stack() 136 task = task_of_stack(task, vma, is_pid); in pid_of_stack() 137 if (task) in pid_of_stack() 138 ret = task_pid_nr_ns(task, inode->i_sb->s_fs_info); in pid_of_stack() 234 priv->task = get_proc_task(priv->inode); in m_start() 235 if (!priv->task) in m_start() 261 if (priv->task) { in m_stop() 262 put_task_struct(priv->task); in m_stop() [all …]
|
D | proc_net.c | 109 struct task_struct *task; in get_proc_task_net() local 114 task = pid_task(proc_pid(dir), PIDTYPE_PID); in get_proc_task_net() 115 if (task != NULL) { in get_proc_task_net() 116 task_lock(task); in get_proc_task_net() 117 ns = task->nsproxy; in get_proc_task_net() 120 task_unlock(task); in get_proc_task_net()
|
D | internal.h | 58 struct task_struct *task); 100 static inline int task_dumpable(struct task_struct *task) in task_dumpable() argument 105 task_lock(task); in task_dumpable() 106 mm = task->mm; in task_dumpable() 109 task_unlock(task); in task_dumpable() 280 struct task_struct *task; member
|
/linux-4.4.14/drivers/scsi/isci/ |
D | task.c | 76 static void isci_task_refuse(struct isci_host *ihost, struct sas_task *task, in isci_task_refuse() argument 85 __func__, task, response, status); in isci_task_refuse() 87 spin_lock_irqsave(&task->task_state_lock, flags); in isci_task_refuse() 89 task->task_status.resp = response; in isci_task_refuse() 90 task->task_status.stat = status; in isci_task_refuse() 93 task->task_state_flags |= SAS_TASK_STATE_DONE; in isci_task_refuse() 94 task->task_state_flags &= ~(SAS_TASK_AT_INITIATOR | in isci_task_refuse() 96 task->lldd_task = NULL; in isci_task_refuse() 97 spin_unlock_irqrestore(&task->task_state_lock, flags); in isci_task_refuse() 99 task->task_done(task); in isci_task_refuse() [all …]
|
D | request.c | 116 struct sas_task *task = isci_request_access_task(ireq); in sci_request_build_sgl() local 123 if (task->num_scatter > 0) { in sci_request_build_sgl() 124 sg = task->scatter; in sci_request_build_sgl() 154 task->scatter, in sci_request_build_sgl() 155 task->total_xfer_len, in sci_request_build_sgl() 156 task->data_dir); in sci_request_build_sgl() 160 scu_sg->A.length = task->total_xfer_len; in sci_request_build_sgl() 174 struct sas_task *task = isci_request_access_task(ireq); in sci_io_request_build_ssp_command_iu() local 178 memcpy(cmd_iu->LUN, task->ssp_task.LUN, 8); in sci_io_request_build_ssp_command_iu() 183 cmd_iu->task_prio = task->ssp_task.task_prio; in sci_io_request_build_ssp_command_iu() [all …]
|
/linux-4.4.14/drivers/scsi/ |
D | libiscsi.c | 136 void iscsi_prep_data_out_pdu(struct iscsi_task *task, struct iscsi_r2t_info *r2t, in iscsi_prep_data_out_pdu() argument 139 struct iscsi_conn *conn = task->conn; in iscsi_prep_data_out_pdu() 142 task->hdr_len = sizeof(struct iscsi_data); in iscsi_prep_data_out_pdu() 149 hdr->lun = task->lun; in iscsi_prep_data_out_pdu() 150 hdr->itt = task->hdr_itt; in iscsi_prep_data_out_pdu() 166 static int iscsi_add_hdr(struct iscsi_task *task, unsigned len) in iscsi_add_hdr() argument 168 unsigned exp_len = task->hdr_len + len; in iscsi_add_hdr() 170 if (exp_len > task->hdr_max) { in iscsi_add_hdr() 176 task->hdr_len = exp_len; in iscsi_add_hdr() 183 static int iscsi_prep_ecdb_ahs(struct iscsi_task *task) in iscsi_prep_ecdb_ahs() argument [all …]
|
D | libiscsi_tcp.c | 451 void iscsi_tcp_cleanup_task(struct iscsi_task *task) in iscsi_tcp_cleanup_task() argument 453 struct iscsi_tcp_task *tcp_task = task->dd_data; in iscsi_tcp_cleanup_task() 457 if (!task->sc) in iscsi_tcp_cleanup_task() 465 ISCSI_DBG_TCP(task->conn, "pending r2t dropped\n"); in iscsi_tcp_cleanup_task() 483 static int iscsi_tcp_data_in(struct iscsi_conn *conn, struct iscsi_task *task) in iscsi_tcp_data_in() argument 486 struct iscsi_tcp_task *tcp_task = task->dd_data; in iscsi_tcp_data_in() 489 unsigned total_in_length = scsi_in(task->sc)->length; in iscsi_tcp_data_in() 526 static int iscsi_tcp_r2t_rsp(struct iscsi_conn *conn, struct iscsi_task *task) in iscsi_tcp_r2t_rsp() argument 529 struct iscsi_tcp_task *tcp_task = task->dd_data; in iscsi_tcp_r2t_rsp() 554 if (!task->sc || session->state != ISCSI_STATE_LOGGED_IN) { in iscsi_tcp_r2t_rsp() [all …]
|
/linux-4.4.14/drivers/scsi/libsas/ |
D | sas_scsi_host.c | 53 static void sas_end_task(struct scsi_cmnd *sc, struct sas_task *task) in sas_end_task() argument 55 struct task_status_struct *ts = &task->task_status; in sas_end_task() 97 task->dev->port->ha->sas_ha_name); in sas_end_task() 115 sas_free_task(task); in sas_end_task() 118 static void sas_scsi_task_done(struct sas_task *task) in sas_scsi_task_done() argument 120 struct scsi_cmnd *sc = task->uldd_task; in sas_scsi_task_done() 121 struct domain_device *dev = task->dev; in sas_scsi_task_done() 127 task = NULL; in sas_scsi_task_done() 132 if (unlikely(!task)) { in sas_scsi_task_done() 140 sas_free_task(task); in sas_scsi_task_done() [all …]
|
D | sas_ata.c | 95 static void sas_ata_task_done(struct sas_task *task) in sas_ata_task_done() argument 97 struct ata_queued_cmd *qc = task->uldd_task; in sas_ata_task_done() 98 struct domain_device *dev = task->dev; in sas_ata_task_done() 99 struct task_status_struct *stat = &task->task_status; in sas_ata_task_done() 109 task = NULL; in sas_ata_task_done() 115 if (unlikely(!task)) in sas_ata_task_done() 174 sas_free_task(task); in sas_ata_task_done() 180 struct sas_task *task; in sas_ata_qc_issue() local 200 task = sas_alloc_task(GFP_ATOMIC); in sas_ata_qc_issue() 201 if (!task) in sas_ata_qc_issue() [all …]
|
D | sas_init.c | 45 struct sas_task *task = kmem_cache_zalloc(sas_task_cache, flags); in sas_alloc_task() local 47 if (task) { in sas_alloc_task() 48 spin_lock_init(&task->task_state_lock); in sas_alloc_task() 49 task->task_state_flags = SAS_TASK_STATE_PENDING; in sas_alloc_task() 52 return task; in sas_alloc_task() 58 struct sas_task *task = sas_alloc_task(flags); in sas_alloc_slow_task() local 61 if (!task || !slow) { in sas_alloc_slow_task() 62 if (task) in sas_alloc_slow_task() 63 kmem_cache_free(sas_task_cache, task); in sas_alloc_slow_task() 68 task->slow_task = slow; in sas_alloc_slow_task() [all …]
|
D | sas_task.c | 7 void sas_ssp_task_response(struct device *dev, struct sas_task *task, in sas_ssp_task_response() argument 10 struct task_status_struct *tstat = &task->task_status; in sas_ssp_task_response() 29 SAS_ADDR(task->dev->sas_addr), in sas_ssp_task_response()
|
/linux-4.4.14/drivers/scsi/mvsas/ |
D | mv_sas.c | 28 static int mvs_find_tag(struct mvs_info *mvi, struct sas_task *task, u32 *tag) in mvs_find_tag() argument 30 if (task->lldd_task) { in mvs_find_tag() 32 slot = task->lldd_task; in mvs_find_tag() 320 struct sas_task *task = tei->task; in mvs_task_prep_smp() local 322 struct domain_device *dev = task->dev; in mvs_task_prep_smp() 338 sg_req = &task->smp_task.smp_req; in mvs_task_prep_smp() 344 sg_resp = &task->smp_task.smp_resp; in mvs_task_prep_smp() 413 MVS_CHIP_DISP->make_prd(task->scatter, tei->n_elem, buf_prd); in mvs_task_prep_smp() 418 dma_unmap_sg(mvi->dev, &tei->task->smp_task.smp_resp, 1, in mvs_task_prep_smp() 421 dma_unmap_sg(mvi->dev, &tei->task->smp_task.smp_req, 1, in mvs_task_prep_smp() [all …]
|
/linux-4.4.14/scripts/gdb/linux/ |
D | tasks.py | 43 for task in task_lists(): 44 if int(task['pid']) == pid: 45 return task 59 task = get_task_by_pid(pid) 60 if task: 61 return task.dereference() 76 for task in task_lists(): 78 address=task, 79 pid=task["pid"], 80 comm=task["comm"].string())) [all …]
|
/linux-4.4.14/drivers/gpu/drm/ |
D | drm_flip_work.c | 36 struct drm_flip_task *task; in drm_flip_work_allocate_task() local 38 task = kzalloc(sizeof(*task), flags); in drm_flip_work_allocate_task() 39 if (task) in drm_flip_work_allocate_task() 40 task->data = data; in drm_flip_work_allocate_task() 42 return task; in drm_flip_work_allocate_task() 55 struct drm_flip_task *task) in drm_flip_work_queue_task() argument 60 list_add_tail(&task->node, &work->queued); in drm_flip_work_queue_task() 75 struct drm_flip_task *task; in drm_flip_work_queue() local 77 task = drm_flip_work_allocate_task(val, in drm_flip_work_queue() 79 if (task) { in drm_flip_work_queue() [all …]
|
/linux-4.4.14/kernel/ |
D | task_work.c | 27 task_work_add(struct task_struct *task, struct callback_head *work, bool notify) in task_work_add() argument 32 head = ACCESS_ONCE(task->task_works); in task_work_add() 36 } while (cmpxchg(&task->task_works, head, work) != head); in task_work_add() 39 set_notify_resume(task); in task_work_add() 55 task_work_cancel(struct task_struct *task, task_work_func_t func) in task_work_cancel() argument 57 struct callback_head **pprev = &task->task_works; in task_work_cancel() 66 raw_spin_lock_irqsave(&task->pi_lock, flags); in task_work_cancel() 74 raw_spin_unlock_irqrestore(&task->pi_lock, flags); in task_work_cancel() 89 struct task_struct *task = current; in task_work_run() local 98 work = ACCESS_ONCE(task->task_works); in task_work_run() [all …]
|
D | cgroup_freezer.c | 55 static inline struct freezer *task_freezer(struct task_struct *task) in task_freezer() argument 57 return css_freezer(task_css(task, freezer_cgrp_id)); in task_freezer() 65 bool cgroup_freezing(struct task_struct *task) in cgroup_freezing() argument 70 ret = task_freezer(task)->state & CGROUP_FREEZING; in cgroup_freezing() 160 struct task_struct *task; in freezer_attach() local 175 cgroup_taskset_for_each(task, new_css, tset) { in freezer_attach() 179 __thaw_task(task); in freezer_attach() 181 freeze_task(task); in freezer_attach() 203 static void freezer_fork(struct task_struct *task, void *private) in freezer_fork() argument 214 if (task_css_is_root(task, freezer_cgrp_id)) in freezer_fork() [all …]
|
D | ptrace.c | 122 static bool ptrace_freeze_traced(struct task_struct *task) in ptrace_freeze_traced() argument 127 if (task->jobctl & JOBCTL_LISTENING) in ptrace_freeze_traced() 130 spin_lock_irq(&task->sighand->siglock); in ptrace_freeze_traced() 131 if (task_is_traced(task) && !__fatal_signal_pending(task)) { in ptrace_freeze_traced() 132 task->state = __TASK_TRACED; in ptrace_freeze_traced() 135 spin_unlock_irq(&task->sighand->siglock); in ptrace_freeze_traced() 140 static void ptrace_unfreeze_traced(struct task_struct *task) in ptrace_unfreeze_traced() argument 142 if (task->state != __TASK_TRACED) in ptrace_unfreeze_traced() 145 WARN_ON(!task->ptrace || task->parent != current); in ptrace_unfreeze_traced() 147 spin_lock_irq(&task->sighand->siglock); in ptrace_unfreeze_traced() [all …]
|
D | cgroup_pids.c | 167 struct task_struct *task; in pids_can_attach() local 170 cgroup_taskset_for_each(task, dst_css, tset) { in pids_can_attach() 180 old_css = task_css(task, pids_cgrp_id); in pids_can_attach() 192 struct task_struct *task; in pids_cancel_attach() local 195 cgroup_taskset_for_each(task, dst_css, tset) { in pids_cancel_attach() 200 old_css = task_css(task, pids_cgrp_id); in pids_cancel_attach() 212 static int pids_can_fork(struct task_struct *task, void **priv_p) in pids_can_fork() argument 222 static void pids_cancel_fork(struct task_struct *task, void *priv) in pids_cancel_fork() argument 232 static void pids_free(struct task_struct *task) in pids_free() argument 234 struct pids_cgroup *pids = css_pids(task_css(task, pids_cgrp_id)); in pids_free()
|
D | kthread.c | 135 void *kthread_data(struct task_struct *task) in kthread_data() argument 137 return to_kthread(task)->data; in kthread_data() 149 void *probe_kthread_data(struct task_struct *task) in probe_kthread_data() argument 151 struct kthread *kthread = to_kthread(task); in probe_kthread_data() 276 struct task_struct *task; in kthread_create_on_node() local 311 task = create->result; in kthread_create_on_node() 312 if (!IS_ERR(task)) { in kthread_create_on_node() 317 vsnprintf(task->comm, sizeof(task->comm), namefmt, args); in kthread_create_on_node() 323 sched_setscheduler_nocheck(task, SCHED_NORMAL, ¶m); in kthread_create_on_node() 324 set_cpus_allowed_ptr(task, cpu_all_mask); in kthread_create_on_node() [all …]
|
D | pid.c | 389 void attach_pid(struct task_struct *task, enum pid_type type) in attach_pid() argument 391 struct pid_link *link = &task->pids[type]; in attach_pid() 395 static void __change_pid(struct task_struct *task, enum pid_type type, in __change_pid() argument 402 link = &task->pids[type]; in __change_pid() 415 void detach_pid(struct task_struct *task, enum pid_type type) in detach_pid() argument 417 __change_pid(task, type, NULL); in detach_pid() 420 void change_pid(struct task_struct *task, enum pid_type type, in change_pid() argument 423 __change_pid(task, type, pid); in change_pid() 424 attach_pid(task, type); in change_pid() 464 struct pid *get_task_pid(struct task_struct *task, enum pid_type type) in get_task_pid() argument [all …]
|
D | seccomp.c | 72 struct task_struct *task = current; in populate_seccomp_data() local 73 struct pt_regs *regs = task_pt_regs(task); in populate_seccomp_data() 76 sd->nr = syscall_get_nr(task, regs); in populate_seccomp_data() 78 syscall_get_arguments(task, regs, 0, 6, args); in populate_seccomp_data() 85 sd->instruction_pointer = KSTK_EIP(task); in populate_seccomp_data() 217 static inline void seccomp_assign_mode(struct task_struct *task, in seccomp_assign_mode() argument 220 assert_spin_locked(&task->sighand->siglock); in seccomp_assign_mode() 222 task->seccomp.mode = seccomp_mode; in seccomp_assign_mode() 228 set_tsk_thread_flag(task, TIF_SECCOMP); in seccomp_assign_mode() 873 long seccomp_get_filter(struct task_struct *task, unsigned long filter_off, in seccomp_get_filter() argument [all …]
|
D | cred.c | 187 const struct cred *get_task_cred(struct task_struct *task) in get_task_cred() argument 194 cred = __task_cred((task)); in get_task_cred() 245 struct task_struct *task = current; in prepare_creds() local 257 old = task->cred; in prepare_creds() 424 struct task_struct *task = current; in commit_creds() local 425 const struct cred *old = task->real_cred; in commit_creds() 431 BUG_ON(task->cred != old); in commit_creds() 447 if (task->mm) in commit_creds() 448 set_dumpable(task->mm, suid_dumpable); in commit_creds() 449 task->pdeath_signal = 0; in commit_creds() [all …]
|
D | workqueue_internal.h | 37 struct task_struct *task; /* I: worker task */ member 71 void wq_worker_waking_up(struct task_struct *task, int cpu); 72 struct task_struct *wq_worker_sleeping(struct task_struct *task, int cpu);
|
D | kcmp.c | 57 get_file_raw_ptr(struct task_struct *task, unsigned int idx) in get_file_raw_ptr() argument 61 task_lock(task); in get_file_raw_ptr() 64 if (task->files) in get_file_raw_ptr() 65 file = fcheck_files(task->files, idx); in get_file_raw_ptr() 68 task_unlock(task); in get_file_raw_ptr()
|
/linux-4.4.14/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 …]
|
/linux-4.4.14/arch/microblaze/kernel/ |
D | unwind.c | 153 static void microblaze_unwind_inner(struct task_struct *task, 163 static inline void unwind_trap(struct task_struct *task, unsigned long pc, in unwind_trap() argument 169 static inline void unwind_trap(struct task_struct *task, unsigned long pc, in unwind_trap() argument 173 microblaze_unwind_inner(task, regs->pc, regs->r1, regs->r15, trace); in unwind_trap() 187 static void microblaze_unwind_inner(struct task_struct *task, in microblaze_unwind_inner() argument 218 microblaze_unwind_inner(task, regs->r17 - 4, in microblaze_unwind_inner() 231 unwind_trap(task, pc, fp, trace); in microblaze_unwind_inner() 249 if (unlikely(pc == task_pt_regs(task)->pc)) { in microblaze_unwind_inner() 252 (unsigned long) task->pid, in microblaze_unwind_inner() 253 task->comm); in microblaze_unwind_inner() [all …]
|
D | traps.c | 33 void show_stack(struct task_struct *task, unsigned long *sp) in show_stack() argument 39 if (task) { in show_stack() 41 (task->stack))->cpu_context.r1; in show_stack() 70 microblaze_unwind(task, NULL); in show_stack() 73 if (!task) in show_stack() 74 task = current; in show_stack() 76 debug_show_held_locks(task); in show_stack()
|
/linux-4.4.14/arch/microblaze/include/asm/ |
D | processor.h | 145 # define task_tos(task) ((unsigned long)(task) + KERNEL_STACK_SIZE) argument 146 # define task_regs(task) ((struct pt_regs *)task_tos(task) - 1) argument 151 # define task_sp(task) (task_regs(task)->r1) argument 152 # define task_pc(task) (task_regs(task)->pc) argument 154 # define KSTK_EIP(task) (task_pc(task)) argument 155 # define KSTK_ESP(task) (task_sp(task)) argument
|
D | syscall.h | 10 static inline long syscall_get_nr(struct task_struct *task, in syscall_get_nr() argument 16 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument 22 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument 28 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument 34 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument 82 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument 91 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
|
/linux-4.4.14/include/trace/events/ |
D | task.h | 2 #define TRACE_SYSTEM task 10 TP_PROTO(struct task_struct *task, unsigned long clone_flags), 12 TP_ARGS(task, clone_flags), 22 __entry->pid = task->pid; 23 memcpy(__entry->comm, task->comm, TASK_COMM_LEN); 25 __entry->oom_score_adj = task->signal->oom_score_adj; 35 TP_PROTO(struct task_struct *task, const char *comm), 37 TP_ARGS(task, comm), 47 __entry->pid = task->pid; 48 memcpy(entry->oldcomm, task->comm, TASK_COMM_LEN); [all …]
|
D | sunrpc.h | 18 TP_PROTO(struct rpc_task *task), 20 TP_ARGS(task), 29 __entry->task_id = task->tk_pid; 30 __entry->client_id = task->tk_client->cl_clid; 31 __entry->status = task->tk_status; 40 TP_PROTO(struct rpc_task *task), 42 TP_ARGS(task) 46 TP_PROTO(struct rpc_task *task), 48 TP_ARGS(task) 52 TP_PROTO(struct rpc_task *task, int status), [all …]
|
D | oom.h | 10 TP_PROTO(struct task_struct *task), 12 TP_ARGS(task), 21 __entry->pid = task->pid; 22 memcpy(__entry->comm, task->comm, TASK_COMM_LEN); 23 __entry->oom_score_adj = task->signal->oom_score_adj;
|
D | signal.h | 52 TP_PROTO(int sig, struct siginfo *info, struct task_struct *task, 55 TP_ARGS(sig, info, task, group, result), 70 memcpy(__entry->comm, task->comm, TASK_COMM_LEN); 71 __entry->pid = task->pid;
|
/linux-4.4.14/include/linux/sunrpc/ |
D | xprt.h | 123 int (*reserve_xprt)(struct rpc_xprt *xprt, struct rpc_task *task); 124 void (*release_xprt)(struct rpc_xprt *xprt, struct rpc_task *task); 125 void (*alloc_slot)(struct rpc_xprt *xprt, struct rpc_task *task); 126 void (*rpcbind)(struct rpc_task *task); 128 void (*connect)(struct rpc_xprt *xprt, struct rpc_task *task); 129 void * (*buf_alloc)(struct rpc_task *task, size_t size); 131 int (*send_request)(struct rpc_task *task); 132 void (*set_retrans_timeout)(struct rpc_task *task); 133 void (*timer)(struct rpc_xprt *xprt, struct rpc_task *task); 134 void (*release_request)(struct rpc_task *task); [all …]
|
/linux-4.4.14/arch/um/include/asm/ |
D | stacktrace.h | 18 get_frame_pointer(struct task_struct *task, struct pt_regs *segv_regs) in get_frame_pointer() argument 20 if (!task || task == current) in get_frame_pointer() 22 return KSTK_EBP(task); in get_frame_pointer() 26 get_frame_pointer(struct task_struct *task, struct pt_regs *segv_regs) in get_frame_pointer() argument 33 *get_stack_pointer(struct task_struct *task, struct pt_regs *segv_regs) in get_stack_pointer() argument 35 if (!task || task == current) in get_stack_pointer() 37 return (unsigned long *)KSTK_ESP(task); in get_stack_pointer()
|
/linux-4.4.14/arch/ia64/include/asm/ |
D | syscall.h | 20 static inline long syscall_get_nr(struct task_struct *task, in syscall_get_nr() argument 29 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument 35 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument 41 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument 47 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument 61 extern void ia64_syscall_get_set_arguments(struct task_struct *task, 64 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument 71 ia64_syscall_get_set_arguments(task, regs, i, n, args, 0); in syscall_get_arguments() 74 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument 81 ia64_syscall_get_set_arguments(task, regs, i, n, args, 1); in syscall_set_arguments()
|
D | perfmon.h | 24 extern void pfm_inherit(struct task_struct *task, struct pt_regs *regs); 69 int (*fmt_validate)(struct task_struct *task, unsigned int flags, int cpu, void *arg); 70 …int (*fmt_getsize)(struct task_struct *task, unsigned int flags, int cpu, void *arg, unsigned lon… 71 int (*fmt_init)(struct task_struct *task, void *buf, unsigned int flags, int cpu, void *arg); 72 …int (*fmt_handler)(struct task_struct *task, void *buf, pfm_ovfl_arg_t *arg, struct pt_regs *regs… 73 …int (*fmt_restart)(struct task_struct *task, pfm_ovfl_ctrl_t *ctrl, void *buf, struct pt_regs *re… 74 …int (*fmt_restart_active)(struct task_struct *task, pfm_ovfl_ctrl_t *ctrl, void *buf, struct pt_r… 75 int (*fmt_exit)(struct task_struct *task, void *buf, struct pt_regs *regs); 88 extern int pfm_mod_write_ibrs(struct task_struct *task, void *req, unsigned int nreq, struct pt_reg… 89 extern int pfm_mod_write_dbrs(struct task_struct *task, void *req, unsigned int nreq, struct pt_reg…
|
D | ptrace.h | 91 # define user_stack(task,regs) ((long) regs - (long) task == IA64_STK_OFFSET - sizeof(*regs)) argument 92 # define fsys_mode(task,regs) \ argument 94 struct task_struct *_task = (task); \
|
/linux-4.4.14/drivers/dma/bestcomm/ |
D | bestcomm.c | 139 bcom_load_image(int task, u32 *task_image) in bcom_load_image() argument 153 if ((task < 0) || (task >= BCOM_MAX_TASKS)) { in bcom_load_image() 155 ": Trying to load invalid task %d\n", task); in bcom_load_image() 160 tdt = &bcom_eng->tdt[task]; in bcom_load_image() 163 desc = bcom_task_desc(task); in bcom_load_image() 164 if (hdr->desc_size != bcom_task_num_descs(task)) { in bcom_load_image() 168 task, in bcom_load_image() 170 bcom_task_num_descs(task)); in bcom_load_image() 184 var = bcom_task_var(task); in bcom_load_image() 185 inc = bcom_task_inc(task); in bcom_load_image() [all …]
|
/linux-4.4.14/fs/nfs/filelayout/ |
D | filelayout.c | 90 struct rpc_task *task = &hdr->task; in filelayout_reset_write() local 95 hdr->task.tk_pid, in filelayout_reset_write() 101 task->tk_status = pnfs_write_done_resend_to_mds(hdr); in filelayout_reset_write() 107 struct rpc_task *task = &hdr->task; in filelayout_reset_read() local 112 hdr->task.tk_pid, in filelayout_reset_read() 118 task->tk_status = pnfs_read_done_resend_to_mds(hdr); in filelayout_reset_read() 122 static int filelayout_async_handle_error(struct rpc_task *task, in filelayout_async_handle_error() argument 134 if (task->tk_status >= 0) in filelayout_async_handle_error() 137 switch (task->tk_status) { in filelayout_async_handle_error() 164 "flags 0x%x\n", __func__, task->tk_status, in filelayout_async_handle_error() [all …]
|
/linux-4.4.14/drivers/staging/lustre/lustre/include/linux/ |
D | obd.h | 64 struct task_struct *task; member 76 LASSERT(lock->task == NULL); in __client_obd_list_lock() 77 lock->task = current; in __client_obd_list_lock() 86 struct task_struct *task = lock->task; in __client_obd_list_lock() local 88 if (task == NULL) in __client_obd_list_lock() 93 lock, task->comm, task->pid, in __client_obd_list_lock() 111 LASSERT(lock->task != NULL); in client_obd_list_unlock() 112 lock->task = NULL; in client_obd_list_unlock()
|
/linux-4.4.14/arch/tile/include/asm/ |
D | processor.h | 227 #define task_ksp0(task) \ argument 228 ((unsigned long)(task)->stack + THREAD_SIZE - STACK_TOP_DELTA) 231 #define task_pt_regs(task) \ argument 232 ((struct pt_regs *)(task_ksp0(task) - KSTK_PTREGS_GAP) - 1) 236 #define task_sp(task) (task_pt_regs(task)->sp) argument 237 #define task_pc(task) (task_pt_regs(task)->pc) argument 239 #define KSTK_EIP(task) task_pc(task) argument 240 #define KSTK_ESP(task) task_sp(task) argument 354 #define next_current_ksp0(task) ({ \ argument 355 unsigned long __ksp0 = task_ksp0(task) & ((1UL << CPU_SHIFT) - 1); \ [all …]
|
D | syscall.h | 43 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument 49 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument 56 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument 62 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument 77 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument 86 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
|
/linux-4.4.14/drivers/media/pci/saa7134/ |
D | saa7134-vbi.c | 53 int task) in task_init() argument 58 saa_writeb(SAA7134_VBI_H_START1(task), norm->h_start & 0xff); in task_init() 59 saa_writeb(SAA7134_VBI_H_START2(task), norm->h_start >> 8); in task_init() 60 saa_writeb(SAA7134_VBI_H_STOP1(task), norm->h_stop & 0xff); in task_init() 61 saa_writeb(SAA7134_VBI_H_STOP2(task), norm->h_stop >> 8); in task_init() 62 saa_writeb(SAA7134_VBI_V_START1(task), norm->vbi_v_start_0 & 0xff); in task_init() 63 saa_writeb(SAA7134_VBI_V_START2(task), norm->vbi_v_start_0 >> 8); in task_init() 64 saa_writeb(SAA7134_VBI_V_STOP1(task), norm->vbi_v_stop_0 & 0xff); in task_init() 65 saa_writeb(SAA7134_VBI_V_STOP2(task), norm->vbi_v_stop_0 >> 8); in task_init() 67 saa_writeb(SAA7134_VBI_H_SCALE_INC1(task), VBI_SCALE & 0xff); in task_init() [all …]
|
/linux-4.4.14/drivers/connector/ |
D | cn_proc.c | 67 void proc_fork_connector(struct task_struct *task) in proc_fork_connector() argument 84 parent = rcu_dereference(task->real_parent); in proc_fork_connector() 88 ev->event_data.fork.child_pid = task->pid; in proc_fork_connector() 89 ev->event_data.fork.child_tgid = task->tgid; in proc_fork_connector() 99 void proc_exec_connector(struct task_struct *task) in proc_exec_connector() argument 114 ev->event_data.exec.process_pid = task->pid; in proc_exec_connector() 115 ev->event_data.exec.process_tgid = task->tgid; in proc_exec_connector() 124 void proc_id_connector(struct task_struct *task, int which_id) in proc_id_connector() argument 138 ev->event_data.id.process_pid = task->pid; in proc_id_connector() 139 ev->event_data.id.process_tgid = task->tgid; in proc_id_connector() [all …]
|
/linux-4.4.14/drivers/infiniband/ulp/iser/ |
D | iscsi_iser.c | 161 iscsi_iser_pdu_alloc(struct iscsi_task *task, uint8_t opcode) in iscsi_iser_pdu_alloc() argument 163 struct iscsi_iser_task *iser_task = task->dd_data; in iscsi_iser_pdu_alloc() 165 task->hdr = (struct iscsi_hdr *)&iser_task->desc.iscsi_header; in iscsi_iser_pdu_alloc() 166 task->hdr_max = sizeof(iser_task->desc.iscsi_header); in iscsi_iser_pdu_alloc() 183 iser_initialize_task_headers(struct iscsi_task *task, in iser_initialize_task_headers() argument 186 struct iser_conn *iser_conn = task->conn->dd_data; in iser_initialize_task_headers() 188 struct iscsi_iser_task *iser_task = task->dd_data; in iser_initialize_task_headers() 190 const bool mgmt_task = !task->sc && !in_interrupt(); in iser_initialize_task_headers() 233 iscsi_iser_task_init(struct iscsi_task *task) in iscsi_iser_task_init() argument 235 struct iscsi_iser_task *iser_task = task->dd_data; in iscsi_iser_task_init() [all …]
|
D | iser_initiator.c | 48 static int iser_prepare_read_cmd(struct iscsi_task *task) in iser_prepare_read_cmd() argument 51 struct iscsi_iser_task *iser_task = task->dd_data; in iser_prepare_read_cmd() 87 task->itt, mem_reg->rkey, in iser_prepare_read_cmd() 99 iser_prepare_write_cmd(struct iscsi_task *task, in iser_prepare_write_cmd() argument 104 struct iscsi_iser_task *iser_task = task->dd_data; in iser_prepare_write_cmd() 144 task->itt, mem_reg->rkey, in iser_prepare_write_cmd() 150 task->itt, imm_sz); in iser_prepare_write_cmd() 370 struct iscsi_task *task) in iser_send_command() argument 373 struct iscsi_iser_task *iser_task = task->dd_data; in iser_send_command() 377 struct iscsi_scsi_req *hdr = (struct iscsi_scsi_req *)task->hdr; in iser_send_command() [all …]
|
D | iser_memory.c | 527 iser_reg_prot_sg(struct iscsi_iser_task *task, in iser_reg_prot_sg() argument 533 struct iser_device *device = task->iser_conn->ib_conn.device; in iser_reg_prot_sg() 538 return device->reg_ops->reg_mem(task, mem, &desc->pi_ctx->rsc, reg); in iser_reg_prot_sg() 542 iser_reg_data_sg(struct iscsi_iser_task *task, in iser_reg_data_sg() argument 548 struct iser_device *device = task->iser_conn->ib_conn.device; in iser_reg_data_sg() 553 return device->reg_ops->reg_mem(task, mem, &desc->rsc, reg); in iser_reg_data_sg() 556 int iser_reg_rdma_mem(struct iscsi_iser_task *task, in iser_reg_rdma_mem() argument 559 struct ib_conn *ib_conn = &task->iser_conn->ib_conn; in iser_reg_rdma_mem() 561 struct iser_data_buf *mem = &task->data[dir]; in iser_reg_rdma_mem() 562 struct iser_mem_reg *reg = &task->rdma_reg[dir]; in iser_reg_rdma_mem() [all …]
|
/linux-4.4.14/fs/nfs/flexfilelayout/ |
D | flexfilelayout.c | 667 nfs4_ff_layout_stat_io_end_read(struct rpc_task *task, in nfs4_ff_layout_stat_io_end_read() argument 675 ktime_get(), task->tk_start); in nfs4_ff_layout_stat_io_end_read() 696 nfs4_ff_layout_stat_io_end_write(struct rpc_task *task, in nfs4_ff_layout_stat_io_end_write() argument 707 requested, completed, ktime_get(), task->tk_start); in nfs4_ff_layout_stat_io_end_write() 902 struct rpc_task *task = &hdr->task; in ff_layout_reset_write() local 909 hdr->task.tk_pid, in ff_layout_reset_write() 933 hdr->task.tk_pid, in ff_layout_reset_write() 939 task->tk_status = pnfs_write_done_resend_to_mds(hdr); in ff_layout_reset_write() 945 struct rpc_task *task = &hdr->task; in ff_layout_reset_read() local 952 hdr->task.tk_pid, in ff_layout_reset_read() [all …]
|
/linux-4.4.14/arch/ia64/kernel/ |
D | perfmon.c | 388 typedef int (*pfm_reg_check_t)(struct task_struct *task, pfm_context_t *ctx, unsigned int cnum, uns… 579 pfm_put_task(struct task_struct *task) in pfm_put_task() argument 581 if (task != current) put_task_struct(task); in pfm_put_task() 921 pfm_mask_monitoring(struct task_struct *task) in pfm_mask_monitoring() argument 923 pfm_context_t *ctx = PFM_GET_CTX(task); in pfm_mask_monitoring() 927 DPRINT_ovfl(("masking monitoring for [%d]\n", task_pid_nr(task))); in pfm_mask_monitoring() 995 pfm_restore_monitoring(struct task_struct *task) in pfm_restore_monitoring() argument 997 pfm_context_t *ctx = PFM_GET_CTX(task); in pfm_restore_monitoring() 1005 if (task != current) { in pfm_restore_monitoring() 1006 …printk(KERN_ERR "perfmon.%d: invalid task[%d] current[%d]\n", __LINE__, task_pid_nr(task), task_pi… in pfm_restore_monitoring() [all …]
|
D | perfmon_default_smpl.c | 41 default_validate(struct task_struct *task, unsigned int flags, int cpu, void *data) in default_validate() argument 47 DPRINT(("[%d] no argument passed\n", task_pid_nr(task))); in default_validate() 51 DPRINT(("[%d] validate flags=0x%x CPU%d\n", task_pid_nr(task), flags, cpu)); in default_validate() 64 default_get_size(struct task_struct *task, unsigned int flags, int cpu, void *data, unsigned long *… in default_get_size() argument 77 default_init(struct task_struct *task, void *buf, unsigned int flags, int cpu, void *data) in default_init() argument 91 task_pid_nr(task), in default_init() 102 default_handler(struct task_struct *task, void *buf, pfm_ovfl_arg_t *arg, struct pt_regs *regs, uns… in default_handler() argument 112 if (unlikely(buf == NULL || arg == NULL|| regs == NULL || task == NULL)) { in default_handler() 113 DPRINT(("[%d] invalid arguments buf=%p arg=%p\n", task->pid, buf, arg)); in default_handler() 142 task->pid, in default_handler() [all …]
|
D | process.c | 86 show_stack (struct task_struct *task, unsigned long *sp) in show_stack() argument 88 if (!task) in show_stack() 93 unw_init_from_blocked_task(&info, task); in show_stack() 263 ia64_save_extra (struct task_struct *task) in ia64_save_extra() argument 269 if ((task->thread.flags & IA64_THREAD_DBG_VALID) != 0) in ia64_save_extra() 270 ia64_save_debug_regs(&task->thread.dbr[0]); in ia64_save_extra() 273 if ((task->thread.flags & IA64_THREAD_PM_VALID) != 0) in ia64_save_extra() 274 pfm_save_regs(task); in ia64_save_extra() 278 pfm_syst_wide_update_task(task, info, 0); in ia64_save_extra() 283 ia64_load_extra (struct task_struct *task) in ia64_load_extra() argument [all …]
|
D | init_task.c | 32 struct task_struct task; member 38 .task = INIT_TASK(init_task_mem.s.task), 39 .thread_info = INIT_THREAD_INFO(init_task_mem.s.task)
|
/linux-4.4.14/arch/x86/kernel/ |
D | ptrace.c | 204 static u16 get_segment_reg(struct task_struct *task, unsigned long offset) in get_segment_reg() argument 211 retval = *pt_regs_access(task_pt_regs(task), offset); in get_segment_reg() 213 if (task == current) in get_segment_reg() 214 retval = get_user_gs(task_pt_regs(task)); in get_segment_reg() 216 retval = task_user_gs(task); in get_segment_reg() 221 static int set_segment_reg(struct task_struct *task, in set_segment_reg() argument 246 *pt_regs_access(task_pt_regs(task), offset) = value; in set_segment_reg() 250 if (task == current) in set_segment_reg() 251 set_user_gs(task_pt_regs(task), value); in set_segment_reg() 253 task_user_gs(task) = value; in set_segment_reg() [all …]
|
D | dumpstack_32.c | 41 void dump_trace(struct task_struct *task, struct pt_regs *regs, in dump_trace() argument 49 if (!task) in dump_trace() 50 task = current; in dump_trace() 56 if (task != current) in dump_trace() 57 stack = (unsigned long *)task->thread.sp; in dump_trace() 61 bp = stack_frame(task, regs); in dump_trace() 71 context = task_thread_info(task); in dump_trace() 94 show_stack_log_lvl(struct task_struct *task, struct pt_regs *regs, in show_stack_log_lvl() argument 101 if (task) in show_stack_log_lvl() 102 sp = (unsigned long *)task->thread.sp; in show_stack_log_lvl() [all …]
|
D | process_64.c | 506 long do_arch_prctl(struct task_struct *task, int code, unsigned long addr) in do_arch_prctl() argument 509 int doit = task == current; in do_arch_prctl() 514 if (addr >= TASK_SIZE_OF(task)) in do_arch_prctl() 520 set_32bit_tls(task, GS_TLS, addr); in do_arch_prctl() 522 load_TLS(&task->thread, cpu); in do_arch_prctl() 525 task->thread.gsindex = GS_TLS_SEL; in do_arch_prctl() 526 task->thread.gs = 0; in do_arch_prctl() 528 task->thread.gsindex = 0; in do_arch_prctl() 529 task->thread.gs = addr; in do_arch_prctl() 540 if (addr >= TASK_SIZE_OF(task)) in do_arch_prctl() [all …]
|
D | dumpstack_64.c | 117 analyze_stack(int cpu, struct task_struct *task, unsigned long *stack, in analyze_stack() argument 124 if ((unsigned long)task_stack_page(task) == addr) in analyze_stack() 151 void dump_trace(struct task_struct *task, struct pt_regs *regs, in dump_trace() argument 163 if (!task) in dump_trace() 164 task = current; in dump_trace() 169 else if (task != current) in dump_trace() 170 stack = (unsigned long *)task->thread.sp; in dump_trace() 176 bp = stack_frame(task, regs); in dump_trace() 182 tinfo = task_thread_info(task); in dump_trace() 188 stype = analyze_stack(cpu, task, stack, &stack_end, in dump_trace() [all …]
|
D | dumpstack.c | 47 struct task_struct *task; in print_ftrace_graph_addr() local 54 task = tinfo->task; in print_ftrace_graph_addr() 55 index = task->curr_ret_stack; in print_ftrace_graph_addr() 57 if (!task->ret_stack || index < *graph) in print_ftrace_graph_addr() 61 ret_addr = task->ret_stack[index].ret; in print_ftrace_graph_addr() 170 show_trace_log_lvl(struct task_struct *task, struct pt_regs *regs, in show_trace_log_lvl() argument 174 dump_trace(task, regs, stack, bp, &print_trace_ops, log_lvl); in show_trace_log_lvl() 177 void show_trace(struct task_struct *task, struct pt_regs *regs, in show_trace() argument 180 show_trace_log_lvl(task, regs, stack, bp, ""); in show_trace() 183 void show_stack(struct task_struct *task, unsigned long *sp) in show_stack() argument [all …]
|
/linux-4.4.14/include/asm-generic/ |
D | syscall.h | 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,
|
/linux-4.4.14/arch/powerpc/kernel/ |
D | signal.h | 25 struct task_struct *task); 27 struct task_struct *task); 28 extern unsigned long copy_fpr_from_user(struct task_struct *task, 30 extern unsigned long copy_transact_fpr_from_user(struct task_struct *task, 34 struct task_struct *task); 36 struct task_struct *task); 37 extern unsigned long copy_vsx_from_user(struct task_struct *task, 39 extern unsigned long copy_transact_vsx_from_user(struct task_struct *task,
|
D | ptrace.c | 171 static unsigned long get_user_msr(struct task_struct *task) in get_user_msr() argument 173 return task->thread.regs->msr | task->thread.fpexc_mode; in get_user_msr() 176 static int set_user_msr(struct task_struct *task, unsigned long msr) in set_user_msr() argument 178 task->thread.regs->msr &= ~MSR_DEBUGCHANGE; in set_user_msr() 179 task->thread.regs->msr |= msr & MSR_DEBUGCHANGE; in set_user_msr() 184 static int get_user_dscr(struct task_struct *task, unsigned long *data) in get_user_dscr() argument 186 *data = task->thread.dscr; in get_user_dscr() 190 static int set_user_dscr(struct task_struct *task, unsigned long dscr) in set_user_dscr() argument 192 task->thread.dscr = dscr; in set_user_dscr() 193 task->thread.dscr_inherit = 1; in set_user_dscr() [all …]
|
D | signal_32.c | 265 struct task_struct *task) in copy_fpr_to_user() argument 272 buf[i] = task->thread.TS_FPR(i); in copy_fpr_to_user() 273 buf[i] = task->thread.fp_state.fpscr; in copy_fpr_to_user() 277 unsigned long copy_fpr_from_user(struct task_struct *task, in copy_fpr_from_user() argument 286 task->thread.TS_FPR(i) = buf[i]; in copy_fpr_from_user() 287 task->thread.fp_state.fpscr = buf[i]; in copy_fpr_from_user() 293 struct task_struct *task) in copy_vsx_to_user() argument 300 buf[i] = task->thread.fp_state.fpr[i][TS_VSRLOWOFFSET]; in copy_vsx_to_user() 304 unsigned long copy_vsx_from_user(struct task_struct *task, in copy_vsx_from_user() argument 313 task->thread.fp_state.fpr[i][TS_VSRLOWOFFSET] = buf[i]; in copy_vsx_from_user() [all …]
|
/linux-4.4.14/block/ |
D | blk-ioc.c | 200 void exit_io_context(struct task_struct *task) in exit_io_context() argument 204 task_lock(task); in exit_io_context() 205 ioc = task->io_context; in exit_io_context() 206 task->io_context = NULL; in exit_io_context() 207 task_unlock(task); in exit_io_context() 234 int create_task_io_context(struct task_struct *task, gfp_t gfp_flags, int node) in create_task_io_context() argument 260 task_lock(task); in create_task_io_context() 261 if (!task->io_context && in create_task_io_context() 262 (task == current || !(task->flags & PF_EXITING))) in create_task_io_context() 263 task->io_context = ioc; in create_task_io_context() [all …]
|
/linux-4.4.14/arch/x86/include/asm/ |
D | syscall.h | 43 static inline int syscall_get_nr(struct task_struct *task, struct pt_regs *regs) in syscall_get_nr() argument 48 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument 54 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument 63 if (task_thread_info(task)->status & TS_COMPAT) in syscall_get_error() 73 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument 79 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument 88 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument 97 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument 113 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument 119 if (task_thread_info(task)->status & TS_COMPAT) in syscall_get_arguments() [all …]
|
D | stacktrace.h | 60 stack_frame(struct task_struct *task, struct pt_regs *regs) in stack_frame() argument 67 if (task == current) { in stack_frame() 74 return *(unsigned long *)task->thread.sp; in stack_frame() 78 stack_frame(struct task_struct *task, struct pt_regs *regs) in stack_frame() argument 85 show_trace_log_lvl(struct task_struct *task, struct pt_regs *regs, 89 show_stack_log_lvl(struct task_struct *task, struct pt_regs *regs,
|
/linux-4.4.14/arch/s390/include/asm/ |
D | syscall.h | 28 static inline long syscall_get_nr(struct task_struct *task, in syscall_get_nr() argument 35 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument 41 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument 47 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument 53 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument 60 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument 69 if (test_tsk_thread_flag(task, TIF_31BIT)) in syscall_get_arguments() 79 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
|
/linux-4.4.14/fs/nfs/ |
D | unlink.c | 78 static void nfs_async_unlink_done(struct rpc_task *task, void *calldata) in nfs_async_unlink_done() argument 83 trace_nfs_sillyrename_unlink(data, task->tk_status); in nfs_async_unlink_done() 84 if (!NFS_PROTO(dir)->unlink_done(task, dir)) in nfs_async_unlink_done() 85 rpc_restart_call_prepare(task); in nfs_async_unlink_done() 105 static void nfs_unlink_prepare(struct rpc_task *task, void *calldata) in nfs_unlink_prepare() argument 108 NFS_PROTO(data->dir)->unlink_rpc_prepare(task, data); in nfs_unlink_prepare() 131 struct rpc_task *task; in nfs_do_call_unlink() local 177 task = rpc_run_task(&task_setup_data); in nfs_do_call_unlink() 178 if (!IS_ERR(task)) in nfs_do_call_unlink() 179 rpc_put_task_async(task); in nfs_do_call_unlink() [all …]
|
D | nfs4proc.c | 470 nfs4_async_handle_exception(struct rpc_task *task, struct nfs_server *server, in nfs4_async_handle_exception() argument 478 rpc_delay(task, nfs4_update_delay(&exception->timeout)); in nfs4_async_handle_exception() 482 rpc_sleep_on(&clp->cl_rpcwaitq, task, NULL); in nfs4_async_handle_exception() 484 rpc_wake_up_queued_task(&clp->cl_rpcwaitq, task); in nfs4_async_handle_exception() 497 nfs4_async_handle_error(struct rpc_task *task, struct nfs_server *server, in nfs4_async_handle_error() argument 504 if (task->tk_status >= 0) in nfs4_async_handle_error() 508 task->tk_status = nfs4_async_handle_exception(task, server, in nfs4_async_handle_error() 509 task->tk_status, in nfs4_async_handle_error() 573 struct rpc_task *task) in nfs40_setup_sequence() argument 588 task->tk_timeout = HZ >> 2; in nfs40_setup_sequence() [all …]
|
D | callback.c | 35 struct task_struct *task; member 199 if (cb_info->task) in nfs_callback_start_svc() 220 cb_info->task = kthread_create(callback_svc, cb_info->rqst, in nfs_callback_start_svc() 222 if (IS_ERR(cb_info->task)) { in nfs_callback_start_svc() 223 ret = PTR_ERR(cb_info->task); in nfs_callback_start_svc() 226 cb_info->task = NULL; in nfs_callback_start_svc() 229 rqstp->rq_task = cb_info->task; in nfs_callback_start_svc() 230 wake_up_process(cb_info->task); in nfs_callback_start_svc() 295 if (cb_info->task) { in nfs_callback_create_svc() 380 if (cb_info->users == 0 && cb_info->task != NULL) { in nfs_callback_down() [all …]
|
D | nfs3proc.c | 47 nfs3_async_handle_jukebox(struct rpc_task *task, struct inode *inode) in nfs3_async_handle_jukebox() argument 49 if (task->tk_status != -EJUKEBOX) in nfs3_async_handle_jukebox() 51 if (task->tk_status == -EJUKEBOX) in nfs3_async_handle_jukebox() 53 task->tk_status = 0; in nfs3_async_handle_jukebox() 54 rpc_restart_call(task); in nfs3_async_handle_jukebox() 55 rpc_delay(task, NFS_JUKEBOX_RETRY_TIME); in nfs3_async_handle_jukebox() 440 static void nfs3_proc_unlink_rpc_prepare(struct rpc_task *task, struct nfs_unlinkdata *data) in nfs3_proc_unlink_rpc_prepare() argument 442 rpc_call_start(task); in nfs3_proc_unlink_rpc_prepare() 446 nfs3_proc_unlink_done(struct rpc_task *task, struct inode *dir) in nfs3_proc_unlink_done() argument 449 if (nfs3_async_handle_jukebox(task, dir)) in nfs3_proc_unlink_done() [all …]
|
D | nfs42proc.c | 194 nfs42_layoutstat_prepare(struct rpc_task *task, void *calldata) in nfs42_layoutstat_prepare() argument 200 &data->res.seq_res, task); in nfs42_layoutstat_prepare() 204 nfs42_layoutstat_done(struct rpc_task *task, void *calldata) in nfs42_layoutstat_done() argument 208 if (!nfs4_sequence_done(task, &data->res.seq_res)) in nfs42_layoutstat_done() 211 switch (task->tk_status) { in nfs42_layoutstat_done() 218 dprintk("%s server returns %d\n", __func__, task->tk_status); in nfs42_layoutstat_done() 261 struct rpc_task *task; in nfs42_proc_layoutstats_generic() local 269 task = rpc_run_task(&task_setup); in nfs42_proc_layoutstats_generic() 270 if (IS_ERR(task)) in nfs42_proc_layoutstats_generic() 271 return PTR_ERR(task); in nfs42_proc_layoutstats_generic()
|
/linux-4.4.14/arch/mips/include/asm/ |
D | syscall.h | 29 static inline long syscall_get_nr(struct task_struct *task, in syscall_get_nr() argument 36 struct task_struct *task, struct pt_regs *regs, unsigned int n) in mips_get_syscall_arg() argument 70 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument 76 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument 82 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument 95 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument 103 test_tsk_thread_flag(task, TIF_32BIT_REGS)) && in syscall_get_arguments() 108 ret |= mips_get_syscall_arg(args++, task, regs, i++); in syscall_get_arguments()
|
D | watch.h | 21 #define __restore_watch(task) do { \ argument 23 &task_thread_info(task)->flags))) { \ 24 mips_install_watch_registers(task); \ 29 #define __restore_watch(task) do {} while (0) argument
|
D | processor.h | 398 extern int mips_get_process_fp_mode(struct task_struct *task); 399 extern int mips_set_process_fp_mode(struct task_struct *task, 402 #define GET_FP_MODE(task) mips_get_process_fp_mode(task) argument 403 #define SET_FP_MODE(task,value) mips_set_process_fp_mode(task, value) argument
|
/linux-4.4.14/arch/h8300/kernel/ |
D | ptrace.c | 39 long h8300_get_reg(struct task_struct *task, int regno) in h8300_get_reg() argument 43 return task->thread.usp + sizeof(long)*2; in h8300_get_reg() 46 return *(unsigned short *)(task->thread.esp0 + in h8300_get_reg() 49 return *(unsigned long *)(task->thread.esp0 + in h8300_get_reg() 54 int h8300_put_reg(struct task_struct *task, int regno, unsigned long data) in h8300_put_reg() argument 61 task->thread.usp = data - sizeof(long)*2; in h8300_put_reg() 63 oldccr = *(unsigned short *)(task->thread.esp0 + in h8300_put_reg() 68 *(unsigned short *)(task->thread.esp0 + in h8300_put_reg() 72 oldexr = *(unsigned short *)(task->thread.esp0 + in h8300_put_reg() 77 *(unsigned short *)(task->thread.esp0 + in h8300_put_reg() [all …]
|
/linux-4.4.14/arch/openrisc/include/asm/ |
D | syscall.h | 27 syscall_get_nr(struct task_struct *task, struct pt_regs *regs) in syscall_get_nr() argument 33 syscall_rollback(struct task_struct *task, struct pt_regs *regs) in syscall_rollback() argument 39 syscall_get_error(struct task_struct *task, struct pt_regs *regs) in syscall_get_error() argument 45 syscall_get_return_value(struct task_struct *task, struct pt_regs *regs) in syscall_get_return_value() argument 51 syscall_set_return_value(struct task_struct *task, struct pt_regs *regs, in syscall_set_return_value() argument 58 syscall_get_arguments(struct task_struct *task, struct pt_regs *regs, in syscall_get_arguments() argument 67 syscall_set_arguments(struct task_struct *task, struct pt_regs *regs, in syscall_set_arguments() argument
|
D | thread_info.h | 50 struct task_struct *task; /* main task structure */ member 74 .task = &tsk, \ 88 #define get_thread_info(ti) get_task_struct((ti)->task) 89 #define put_thread_info(ti) put_task_struct((ti)->task)
|
/linux-4.4.14/arch/blackfin/include/asm/ |
D | syscall.h | 26 syscall_get_nr(struct task_struct *task, struct pt_regs *regs) in syscall_get_nr() argument 32 syscall_rollback(struct task_struct *task, struct pt_regs *regs) in syscall_rollback() argument 38 syscall_get_error(struct task_struct *task, struct pt_regs *regs) in syscall_get_error() argument 44 syscall_get_return_value(struct task_struct *task, struct pt_regs *regs) in syscall_get_return_value() argument 50 syscall_set_return_value(struct task_struct *task, struct pt_regs *regs, in syscall_set_return_value() argument 67 syscall_get_arguments(struct task_struct *task, struct pt_regs *regs, in syscall_get_arguments() argument 85 syscall_set_arguments(struct task_struct *task, struct pt_regs *regs, in syscall_set_arguments() argument
|
/linux-4.4.14/arch/arm/include/asm/ |
D | syscall.h | 21 static inline int syscall_get_nr(struct task_struct *task, in syscall_get_nr() argument 24 return task_thread_info(task)->syscall; in syscall_get_nr() 27 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument 33 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument 40 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument 46 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument 55 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument 82 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
|
/linux-4.4.14/arch/sh/include/asm/ |
D | syscall_64.h | 10 static inline long syscall_get_nr(struct task_struct *task, in syscall_get_nr() argument 16 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument 25 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument 31 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument 37 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument 47 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument 56 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
|
D | syscall_32.h | 11 static inline long syscall_get_nr(struct task_struct *task, in syscall_get_nr() argument 17 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument 26 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument 32 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument 38 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument 48 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument 76 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
|
/linux-4.4.14/arch/s390/kernel/ |
D | dumpstack.c | 67 static void show_trace(struct task_struct *task, unsigned long *stack) in show_trace() argument 76 sp = task ? task->thread.ksp : __r15; in show_trace() 86 if (task) in show_trace() 87 __show_trace(sp, (unsigned long) task_stack_page(task), in show_trace() 88 (unsigned long) task_stack_page(task) + THREAD_SIZE); in show_trace() 92 if (!task) in show_trace() 93 task = current; in show_trace() 94 debug_show_held_locks(task); in show_trace() 97 void show_stack(struct task_struct *task, unsigned long *sp) in show_stack() argument 104 stack = task ? (unsigned long *) task->thread.ksp : __r15; in show_stack() [all …]
|
D | runtime_instr.c | 48 struct task_struct *task = current; in exit_thread_runtime_instr() local 50 if (!task->thread.ri_cb) in exit_thread_runtime_instr() 53 kfree(task->thread.ri_cb); in exit_thread_runtime_instr() 54 task->thread.ri_cb = NULL; in exit_thread_runtime_instr()
|
D | ptrace.c | 41 void update_cr_regs(struct task_struct *task) in update_cr_regs() argument 43 struct pt_regs *regs = task_pt_regs(task); in update_cr_regs() 44 struct thread_struct *thread = &task->thread; in update_cr_regs() 54 if (task->thread.per_flags & PER_FLAG_NO_TE) in update_cr_regs() 61 if (task->thread.per_flags & PER_FLAG_TE_ABORT_RAND) { in update_cr_regs() 62 if (task->thread.per_flags & PER_FLAG_TE_ABORT_RAND_TEND) in update_cr_regs() 76 if (test_tsk_thread_flag(task, TIF_SINGLE_STEP) || in update_cr_regs() 77 test_tsk_thread_flag(task, TIF_UPROBE_SINGLESTEP)) { in update_cr_regs() 78 if (test_tsk_thread_flag(task, TIF_BLOCK_STEP)) in update_cr_regs() 84 if (test_tsk_thread_flag(task, TIF_UPROBE_SINGLESTEP)) in update_cr_regs() [all …]
|
/linux-4.4.14/arch/mips/kernel/ |
D | process.c | 507 unsigned long unwind_stack(struct task_struct *task, unsigned long *sp, in unwind_stack() argument 510 unsigned long stack_page = (unsigned long)task_stack_page(task); in unwind_stack() 518 unsigned long get_wchan(struct task_struct *task) in get_wchan() argument 526 if (!task || task == current || task->state == TASK_RUNNING) in get_wchan() 528 if (!task_stack_page(task)) in get_wchan() 531 pc = thread_saved_pc(task); in get_wchan() 534 sp = task->thread.reg29 + schedule_mfi.frame_size; in get_wchan() 537 pc = unwind_stack(task, &sp, pc, &ra); in get_wchan() 573 int mips_get_process_fp_mode(struct task_struct *task) in mips_get_process_fp_mode() argument 577 if (!test_tsk_thread_flag(task, TIF_32BIT_FPREGS)) in mips_get_process_fp_mode() [all …]
|
/linux-4.4.14/Documentation/accounting/ |
D | taskstats-struct.txt | 11 delivery at do_exit() of a task. 25 4) Per-task and per-thread context switch count statistics 44 /* The exit code of a task. */ 47 /* The accounting flags of a task as defined in <linux/acct.h> 52 /* The value of task_nice() of a task. */ 55 /* The name of the command that started this task. */ 58 /* The scheduling discipline as set in task->policy field. */ 67 /* The time when a task begins, in [secs] since 1970. */ 70 /* The elapsed time of a task, in [usec]. */ 73 /* The user CPU time of a task, in [usec]. */ [all …]
|
D | taskstats.txt | 1 Per-task statistics interface 5 Taskstats is a netlink-based interface for sending per-task and 10 - efficiently provide statistics during lifetime of a task and on its exit 17 "pid", "tid" and "task" are used interchangeably and refer to the standard 18 Linux task defined by struct task_struct. per-pid stats are the same as 19 per-task stats. 23 use of tgid, there is no special treatment for the task that is thread group 24 leader - a process is deemed alive as long as it has any task belonging to it. 29 To get statistics during a task's lifetime, userspace opens a unicast netlink 31 The response contains statistics for a task (if pid is specified) or the sum of [all …]
|
D | delay-accounting.txt | 6 runnable task may wait for a free CPU to run on. 8 The per-task delay accounting functionality measures 9 the delays experienced by a task while 12 b) completion of synchronous block I/O initiated by the task 19 Such delays provide feedback for setting a task's cpu priority, 30 statistics of a task are available both during its lifetime as well as on its 48 counter (say cpu_delay_total) for a task will give the delay 49 experienced by the task waiting for the corresponding resource 52 When a task exits, records containing the per-task statistics 54 task of a thread group, the per-tgid statistics are also sent. More details [all …]
|
/linux-4.4.14/arch/frv/include/asm/ |
D | syscall.h | 21 static inline long syscall_get_nr(struct task_struct *task, in syscall_get_nr() argument 31 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument 41 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument 50 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument 59 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument 72 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument 102 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
|
/linux-4.4.14/arch/sparc/include/asm/ |
D | syscall.h | 18 static inline long syscall_get_nr(struct task_struct *task, in syscall_get_nr() argument 26 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument 66 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument 74 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument 82 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument 95 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument 104 if (test_tsk_thread_flag(task, TIF_32BIT)) in syscall_get_arguments() 118 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
|
/linux-4.4.14/arch/alpha/kernel/ |
D | ptrace.c | 107 get_reg_addr(struct task_struct * task, unsigned long regno) in get_reg_addr() argument 112 addr = &task_thread_info(task)->pcb.usp; in get_reg_addr() 114 addr = &task_thread_info(task)->pcb.unique; in get_reg_addr() 119 addr = task_stack_page(task) + regoff[regno]; in get_reg_addr() 128 get_reg(struct task_struct * task, unsigned long regno) in get_reg() argument 132 unsigned long fpcr = *get_reg_addr(task, regno); in get_reg() 134 = task_thread_info(task)->ieee_state & IEEE_SW_MASK; in get_reg() 138 return *get_reg_addr(task, regno); in get_reg() 145 put_reg(struct task_struct *task, unsigned long regno, unsigned long data) in put_reg() argument 148 task_thread_info(task)->ieee_state in put_reg() [all …]
|
/linux-4.4.14/arch/powerpc/include/asm/ |
D | syscall.h | 25 static inline int syscall_get_nr(struct task_struct *task, struct pt_regs *regs) in syscall_get_nr() argument 36 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument 42 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument 48 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument 67 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument 77 if (test_tsk_thread_flag(task, TIF_32BIT)) in syscall_get_arguments() 90 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
|
D | current.h | 20 struct task_struct *task; in get_current() local 23 : "=r" (task) in get_current() 26 return task; in get_current()
|
/linux-4.4.14/arch/mn10300/include/asm/ |
D | syscall.h | 22 static inline int syscall_get_nr(struct task_struct *task, struct pt_regs *regs) in syscall_get_nr() argument 27 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument 33 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument 40 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument 46 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument 53 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument 85 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
|
D | processor.h | 144 #define task_pt_regs(task) ((task)->thread.uregs) argument 145 #define KSTK_EIP(task) (task_pt_regs(task)->pc) argument 146 #define KSTK_ESP(task) (task_pt_regs(task)->sp) argument
|
D | thread_info.h | 42 struct task_struct *task; /* main task structure */ member 75 .task = &tsk, \ 120 #define get_thread_info(ti) get_task_struct((ti)->task) 121 #define put_thread_info(ti) put_task_struct((ti)->task)
|
/linux-4.4.14/arch/c6x/include/asm/ |
D | syscall.h | 17 static inline int syscall_get_nr(struct task_struct *task, in syscall_get_nr() argument 23 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument 29 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument 35 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument 41 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument 48 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument 85 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
|
D | processor.h | 77 #define task_pt_regs(task) \ argument 78 ((struct pt_regs *)(THREAD_START_SP + task_stack_page(task)) - 1) 120 #define KSTK_EIP(task) (task_pt_regs(task)->pc) argument 121 #define KSTK_ESP(task) (task_pt_regs(task)->sp) argument
|
D | thread_info.h | 42 struct task_struct *task; /* main task structure */ member 56 .task = &tsk, \ 77 #define get_thread_info(ti) get_task_struct((ti)->task) 78 #define put_thread_info(ti) put_task_struct((ti)->task)
|
/linux-4.4.14/arch/arc/include/asm/ |
D | syscall.h | 18 syscall_get_nr(struct task_struct *task, struct pt_regs *regs) in syscall_get_nr() argument 27 syscall_rollback(struct task_struct *task, struct pt_regs *regs) in syscall_rollback() argument 33 syscall_get_error(struct task_struct *task, struct pt_regs *regs) in syscall_get_error() argument 40 syscall_get_return_value(struct task_struct *task, struct pt_regs *regs) in syscall_get_return_value() argument 46 syscall_set_return_value(struct task_struct *task, struct pt_regs *regs, in syscall_set_return_value() argument 57 syscall_get_arguments(struct task_struct *task, struct pt_regs *regs, in syscall_get_arguments() argument
|
/linux-4.4.14/drivers/scsi/bnx2fc/ |
D | bnx2fc_hwi.c | 635 struct fcoe_task_ctx_entry *task, *task_page; in bnx2fc_process_unsol_compl() local 715 task = &(task_page[index]); in bnx2fc_process_unsol_compl() 843 task = &(task_page[index]); in bnx2fc_process_unsol_compl() 874 struct fcoe_task_ctx_entry *task; in bnx2fc_process_cq_compl() local 896 task = &(task_page[index]); in bnx2fc_process_cq_compl() 898 num_rq = ((task->rxwr_txrd.var_ctx.rx_flags & in bnx2fc_process_cq_compl() 913 rx_state = ((task->rxwr_txrd.var_ctx.rx_flags & in bnx2fc_process_cq_compl() 921 bnx2fc_process_scsi_cmd_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl() 927 bnx2fc_process_abts_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl() 930 bnx2fc_process_cleanup_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl() [all …]
|
/linux-4.4.14/kernel/bpf/ |
D | helpers.c | 127 struct task_struct *task = current; in bpf_get_current_pid_tgid() local 129 if (!task) in bpf_get_current_pid_tgid() 132 return (u64) task->tgid << 32 | task->pid; in bpf_get_current_pid_tgid() 143 struct task_struct *task = current; in bpf_get_current_uid_gid() local 147 if (!task) in bpf_get_current_uid_gid() 163 struct task_struct *task = current; in bpf_get_current_comm() local 166 if (!task) in bpf_get_current_comm() 169 strlcpy(buf, task->comm, min_t(size_t, size, sizeof(task->comm))); in bpf_get_current_comm()
|
/linux-4.4.14/mm/ |
D | oom_kill.c | 267 struct task_struct *task, unsigned long totalpages) in oom_scan_process_thread() argument 269 if (oom_unkillable_task(task, NULL, oc->nodemask)) in oom_scan_process_thread() 276 if (test_tsk_thread_flag(task, TIF_MEMDIE)) { in oom_scan_process_thread() 280 if (!task->mm) in oom_scan_process_thread() 287 if (oom_task_origin(task)) in oom_scan_process_thread() 290 if (task_will_free_mem(task) && !is_sysrq_oom(oc)) in oom_scan_process_thread() 356 struct task_struct *task; in dump_tasks() local 364 task = find_lock_task_mm(p); in dump_tasks() 365 if (!task) { in dump_tasks() 375 task->pid, from_kuid(&init_user_ns, task_uid(task)), in dump_tasks() [all …]
|
D | process_vm_access.c | 82 struct task_struct *task, in process_vm_rw_single_vec() argument 102 pages = get_user_pages_unlocked(task, mm, pa, pages, in process_vm_rw_single_vec() 146 struct task_struct *task; in process_vm_rw_core() local 188 task = find_task_by_vpid(pid); in process_vm_rw_core() 189 if (task) in process_vm_rw_core() 190 get_task_struct(task); in process_vm_rw_core() 192 if (!task) { in process_vm_rw_core() 197 mm = mm_access(task, PTRACE_MODE_ATTACH_REALCREDS); in process_vm_rw_core() 212 iter, process_pages, mm, task, vm_write); in process_vm_rw_core() 226 put_task_struct(task); in process_vm_rw_core()
|
/linux-4.4.14/drivers/staging/iio/trigger/ |
D | iio-trig-periodic-rtc.c | 28 struct rtc_task task; member 41 ret = rtc_irq_set_state(trig_info->rtc, &trig_info->task, state); in iio_trig_periodic_rtc_set_state() 73 ret = rtc_irq_set_freq(trig_info->rtc, &trig_info->task, val); in iio_trig_periodic_write_freq() 76 &trig_info->task, 1); in iio_trig_periodic_write_freq() 78 ret = rtc_irq_set_state(trig_info->rtc, &trig_info->task, 0); in iio_trig_periodic_write_freq() 150 trig_info->task.func = iio_prtc_trigger_poll; in iio_trig_periodic_rtc_probe() 151 trig_info->task.private_data = trig; in iio_trig_periodic_rtc_probe() 152 ret = rtc_irq_register(trig_info->rtc, &trig_info->task); in iio_trig_periodic_rtc_probe() 162 rtc_irq_unregister(trig_info->rtc, &trig_info->task); in iio_trig_periodic_rtc_probe() 176 rtc_irq_unregister(trig_info->rtc, &trig_info->task); in iio_trig_periodic_rtc_probe() [all …]
|
/linux-4.4.14/arch/metag/include/asm/ |
D | syscall.h | 22 static inline long syscall_get_nr(struct task_struct *task, in syscall_get_nr() argument 41 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument 47 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument 54 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument 60 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument 67 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument 83 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
|
/linux-4.4.14/arch/arm64/include/asm/ |
D | syscall.h | 25 static inline int syscall_get_nr(struct task_struct *task, in syscall_get_nr() argument 31 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument 38 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument 45 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument 51 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument 60 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument 86 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
|
/linux-4.4.14/arch/nios2/include/asm/ |
D | syscall.h | 23 static inline int syscall_get_nr(struct task_struct *task, struct pt_regs *regs) in syscall_get_nr() argument 28 static inline void syscall_rollback(struct task_struct *task, in syscall_rollback() argument 35 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument 41 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument 47 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument 60 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument 99 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
|
/linux-4.4.14/drivers/misc/cxl/ |
D | fault.c | 175 struct task_struct *task = NULL; in cxl_handle_fault() local 198 if (!(task = get_pid_task(ctx->pid, PIDTYPE_PID))) { in cxl_handle_fault() 204 if (!(mm = get_task_mm(task))) { in cxl_handle_fault() 222 if (task) in cxl_handle_fault() 223 put_task_struct(task); in cxl_handle_fault() 229 struct task_struct *task; in cxl_prefault_one() local 232 if (!(task = get_pid_task(ctx->pid, PIDTYPE_PID))) { in cxl_prefault_one() 237 if (!(mm = get_task_mm(task))) { in cxl_prefault_one() 240 put_task_struct(task); in cxl_prefault_one() 247 put_task_struct(task); in cxl_prefault_one() [all …]
|
/linux-4.4.14/arch/sh/kernel/ |
D | ptrace_64.c | 58 static inline int get_stack_long(struct task_struct *task, int offset) in get_stack_long() argument 62 stack = (unsigned char *)(task->thread.uregs); in get_stack_long() 68 get_fpu_long(struct task_struct *task, unsigned long addr) in get_fpu_long() argument 72 regs = (struct pt_regs*)((unsigned char *)task + THREAD_SIZE) - 1; in get_fpu_long() 74 if (!tsk_used_math(task)) { in get_fpu_long() 83 if (last_task_used_math == task) { in get_fpu_long() 85 save_fpu(task); in get_fpu_long() 91 tmp = ((long *)task->thread.xstate)[addr / sizeof(unsigned long)]; in get_fpu_long() 98 static inline int put_stack_long(struct task_struct *task, int offset, in put_stack_long() argument 103 stack = (unsigned char *)(task->thread.uregs); in put_stack_long() [all …]
|
D | dumpstack.c | 59 struct task_struct *task = tinfo->task; in print_ftrace_graph_addr() local 61 int index = task->curr_ret_stack; in print_ftrace_graph_addr() 66 if (!task->ret_stack || index < *graph) in print_ftrace_graph_addr() 70 ret_addr = task->ret_stack[index].ret; in print_ftrace_graph_addr() 85 stack_reader_dump(struct task_struct *task, struct pt_regs *regs, in stack_reader_dump() argument
|
D | irq.c | 87 irqctx->tinfo.task = curctx->tinfo.task; in handle_one_irq() 126 irqctx->tinfo.task = NULL; in irq_ctx_init() 134 irqctx->tinfo.task = NULL; in irq_ctx_init() 158 irqctx->tinfo.task = curctx->task; in do_softirq_own_stack()
|
/linux-4.4.14/Documentation/scheduler/ |
D | sched-design-CFS.txt | 17 power and which can run each task at precise equal speed, in parallel, each at 21 On real hardware, we can run only a single task at once, so we have to 22 introduce the concept of "virtual runtime." The virtual runtime of a task 24 multi-tasking CPU described above. In practice, the virtual runtime of a task 31 In CFS the virtual runtime is expressed and tracked via the per-task 33 timestamp and measure the "expected CPU time" a task should have gotten. 36 p->se.vruntime value --- i.e., tasks would execute simultaneously and no task 39 CFS's task picking logic is based on this p->se.vruntime value and it is thus 40 very simple: it always tries to run the task with the smallest p->se.vruntime 41 value (i.e., the task which executed least so far). CFS always tries to split [all …]
|
D | sched-deadline.txt | 47 "deadline", to schedule tasks. A SCHED_DEADLINE task should receive 51 every time the task wakes up, the scheduler computes a "scheduling deadline" 53 scheduled using EDF[1] on these scheduling deadlines (the task with the 55 task actually receives "runtime" time units within "deadline" if a proper 60 that each task runs for at most its runtime every period, avoiding any 62 algorithm selects the task with the earliest scheduling deadline as the one 64 with the "traditional" real-time task model (see Section 3) can effectively 70 - Each SCHED_DEADLINE task is characterized by the "runtime", 73 - The state of the task is described by a "scheduling deadline", and 76 - When a SCHED_DEADLINE task wakes up (becomes ready for execution), [all …]
|
/linux-4.4.14/arch/alpha/include/asm/ |
D | thread_info.h | 17 struct task_struct *task; /* main task structure */ member 36 .task = &tsk, \ 117 #define SET_UNALIGN_CTL(task,value) ({ \ argument 118 __u32 status = task_thread_info(task)->status & ~UAC_BITMASK; \ 125 task_thread_info(task)->status = status; \ 128 #define GET_UNALIGN_CTL(task,value) ({ \ argument 129 __u32 status = task_thread_info(task)->status & ~UAC_BITMASK; \
|
/linux-4.4.14/arch/arm/common/ |
D | bL_switcher.c | 262 struct task_struct *task; member 311 struct task_struct *task; in bL_switcher_thread_create() local 313 task = kthread_create_on_node(bL_switcher_thread, arg, in bL_switcher_thread_create() 315 if (!IS_ERR(task)) { in bL_switcher_thread_create() 316 kthread_bind(task, cpu); in bL_switcher_thread_create() 317 wake_up_process(task); in bL_switcher_thread_create() 320 return task; in bL_switcher_thread_create() 358 if (IS_ERR(t->task)) in bL_switch_request_cb() 359 return PTR_ERR(t->task); in bL_switch_request_cb() 360 if (!t->task) in bL_switch_request_cb() [all …]
|
/linux-4.4.14/arch/score/kernel/ |
D | process.c | 109 unsigned long get_wchan(struct task_struct *task) in get_wchan() argument 111 if (!task || task == current || task->state == TASK_RUNNING) in get_wchan() 114 if (!task_stack_page(task)) in get_wchan() 117 return task_pt_regs(task)->cp0_epc; in get_wchan()
|
/linux-4.4.14/arch/tile/kernel/ |
D | stack.c | 46 ulong kstack_base = (ulong) kbt->task->stack; in in_kernel_stack() 126 return kbt->task->mm && in is_sigreturn() 127 (kbt->it.pc == ((ulong)kbt->task->mm->context.vdso_base + in is_sigreturn() 230 kbt->task = t; in KBacktraceIterator_init() 328 vma = find_vma(kbt->task->mm, address); in describe_addr() 397 if (kbt->task == current && address < PAGE_OFFSET && in tile_show_stack() 398 !have_mmap_sem && kbt->task->mm && !in_interrupt()) { in tile_show_stack() 400 down_read_trylock(&kbt->task->mm->mmap_sem); in tile_show_stack() 417 up_read(&kbt->task->mm->mmap_sem); in tile_show_stack() 457 void show_stack(struct task_struct *task, unsigned long *esp) in show_stack() argument [all …]
|
D | hardwall.c | 627 struct task_struct *task) in _hardwall_deactivate() argument 629 struct thread_struct *ts = &task->thread; in _hardwall_deactivate() 631 if (cpumask_weight(&task->cpus_allowed) != 1) { in _hardwall_deactivate() 633 task->pid, task->comm, hwt->name, in _hardwall_deactivate() 634 cpumask_weight(&task->cpus_allowed)); in _hardwall_deactivate() 641 if (task == current) in _hardwall_deactivate() 647 struct task_struct *task) in hardwall_deactivate() argument 653 activated = (task->thread.hardwall[hwt->index].info != NULL); in hardwall_deactivate() 655 _hardwall_deactivate(hwt, task); in hardwall_deactivate() 662 task->pid, task->comm, hwt->name, raw_smp_processor_id()); in hardwall_deactivate() [all …]
|
/linux-4.4.14/Documentation/vm/ |
D | numa_memory_policy.txt | 16 both cpusets and policies are applied to a task, the restrictions of the cpuset 35 Task/Process Policy: this is an optional, per-task policy. When defined 36 for a specific task, this policy controls all page allocations made by or 37 on behalf of the task that aren't controlled by a more specific scope. 38 If a task does not define a task policy, then all page allocations that 39 would have been controlled by the task policy "fall back" to the System 42 The task policy applies to the entire address space of a task. Thus, 44 [clone() w/o the CLONE_VM flag] and exec*(). This allows a parent task 45 to establish the task policy for a child task exec()'d from an 48 that a task may use to set/change its task/process policy. [all …]
|
D | soft-dirty.txt | 3 The soft-dirty is a bit on a PTE which helps to track which pages a task 6 1. Clear soft-dirty bits from the task's PTEs. 9 task in question. 21 when the soft-dirty bit is cleared. So, after this, when the task tries to 25 Note, that although all the task's address space is marked as r/o after the 32 there is still a scenario when we can lose soft dirty bits -- a task
|
/linux-4.4.14/tools/perf/ |
D | builtin-sched.c | 242 get_new_event(struct task_desc *task, u64 timestamp) in get_new_event() argument 245 unsigned long idx = task->nr_events; in get_new_event() 251 task->nr_events++; in get_new_event() 252 size = sizeof(struct sched_atom *) * task->nr_events; in get_new_event() 253 task->atoms = realloc(task->atoms, size); in get_new_event() 254 BUG_ON(!task->atoms); in get_new_event() 256 task->atoms[idx] = event; in get_new_event() 261 static struct sched_atom *last_event(struct task_desc *task) in last_event() argument 263 if (!task->nr_events) in last_event() 266 return task->atoms[task->nr_events - 1]; in last_event() [all …]
|
/linux-4.4.14/include/scsi/ |
D | libiscsi.h | 147 static inline int iscsi_task_has_unsol_data(struct iscsi_task *task) in iscsi_task_has_unsol_data() argument 149 return task->unsol_r2t.data_length > task->unsol_r2t.sent; in iscsi_task_has_unsol_data() 152 static inline void* iscsi_next_hdr(struct iscsi_task *task) in iscsi_next_hdr() argument 154 return (void*)task->hdr + task->hdr_len; in iscsi_next_hdr() 196 struct iscsi_task *task; /* xmit task in progress */ member 451 extern void iscsi_prep_data_out_pdu(struct iscsi_task *task, 463 extern void iscsi_requeue_task(struct iscsi_task *task); 464 extern void iscsi_put_task(struct iscsi_task *task); 465 extern void __iscsi_put_task(struct iscsi_task *task); 466 extern void __iscsi_get_task(struct iscsi_task *task); [all …]
|
/linux-4.4.14/drivers/md/persistent-data/ |
D | dm-block-manager.c | 51 struct task_struct *task; member 56 struct task_struct *task) in __find_holder() argument 61 if (lock->holders[i] == task) in __find_holder() 69 static void __add_holder(struct block_lock *lock, struct task_struct *task) in __add_holder() argument 76 get_task_struct(task); in __add_holder() 77 lock->holders[h] = task; in __add_holder() 90 static void __del_holder(struct block_lock *lock, struct task_struct *task) in __del_holder() argument 92 unsigned h = __find_holder(lock, task); in __del_holder() 94 put_task_struct(task); in __del_holder() 132 if (!w->task) in __wait() [all …]
|
/linux-4.4.14/arch/arm64/kernel/ |
D | debug-monitors.c | 385 void user_rewind_single_step(struct task_struct *task) in user_rewind_single_step() argument 391 if (test_ti_thread_flag(task_thread_info(task), TIF_SINGLESTEP)) in user_rewind_single_step() 392 set_regs_spsr_ss(task_pt_regs(task)); in user_rewind_single_step() 395 void user_fastforward_single_step(struct task_struct *task) in user_fastforward_single_step() argument 397 if (test_ti_thread_flag(task_thread_info(task), TIF_SINGLESTEP)) in user_fastforward_single_step() 398 clear_regs_spsr_ss(task_pt_regs(task)); in user_fastforward_single_step() 424 void user_enable_single_step(struct task_struct *task) in user_enable_single_step() argument 426 set_ti_thread_flag(task_thread_info(task), TIF_SINGLESTEP); in user_enable_single_step() 427 set_regs_spsr_ss(task_pt_regs(task)); in user_enable_single_step() 430 void user_disable_single_step(struct task_struct *task) in user_disable_single_step() argument [all …]
|
/linux-4.4.14/arch/x86/um/ |
D | tls_32.c | 63 static int get_free_idx(struct task_struct* task) in get_free_idx() argument 65 struct thread_struct *t = &task->thread; in get_free_idx() 132 static inline int needs_TLS_update(struct task_struct *task) in needs_TLS_update() argument 139 &task->thread.arch.tls_array[i - GDT_ENTRY_TLS_MIN]; in needs_TLS_update() 157 void clear_flushed_tls(struct task_struct *task) in clear_flushed_tls() argument 163 &task->thread.arch.tls_array[i - GDT_ENTRY_TLS_MIN]; in clear_flushed_tls() 203 static int set_tls_entry(struct task_struct* task, struct user_desc *info, in set_tls_entry() argument 206 struct thread_struct *t = &task->thread; in set_tls_entry() 240 static int get_tls_entry(struct task_struct *task, struct user_desc *info, in get_tls_entry() argument 243 struct thread_struct *t = &task->thread; in get_tls_entry() [all …]
|
/linux-4.4.14/arch/cris/arch-v32/kernel/ |
D | ptrace.c | 39 long get_reg(struct task_struct *task, unsigned int regno) in get_reg() argument 47 ret = ((unsigned long *)task_pt_regs(task))[regno]; in get_reg() 49 ret = task->thread.usp; in get_reg() 51 ret = get_pseudo_pc(task); in get_reg() 53 ret = get_debugreg(task->pid, regno); in get_reg() 63 int put_reg(struct task_struct *task, unsigned int regno, unsigned long data) in put_reg() argument 66 ((unsigned long *)task_pt_regs(task))[regno] = data; in put_reg() 68 task->thread.usp = data; in put_reg() 71 if (data != get_pseudo_pc(task)) in put_reg() 72 task_pt_regs(task)->erp = data; in put_reg() [all …]
|
/linux-4.4.14/Documentation/locking/ |
D | rt-mutex-design.txt | 99 structure holds a pointer to the task, as well as the mutex that 100 the task is blocked on. It also has the plist node structures to 101 place the task in the waiter_list of a mutex as well as the 102 pi_list of a mutex owner task (described below). 104 waiter is sometimes used in reference to the task that is waiting 105 on a mutex. This is the same as waiter->task. 114 Note: task and process are used interchangeably in this document, mostly to 222 The top of the task's PI list is always the highest priority task that 223 is waiting on a mutex that is owned by the task. So if the task has 224 inherited a priority, it will always be the priority of the task that is [all …]
|
/linux-4.4.14/fs/lockd/ |
D | clntproc.c | 357 struct rpc_task *task; in nlm_do_async_call() local 359 task = __nlm_async_call(req, proc, msg, tk_ops); in nlm_do_async_call() 360 if (IS_ERR(task)) in nlm_do_async_call() 361 return PTR_ERR(task); in nlm_do_async_call() 362 rpc_put_task(task); in nlm_do_async_call() 401 struct rpc_task *task; in nlmclnt_async_call() local 404 task = __nlm_async_call(req, proc, &msg, tk_ops); in nlmclnt_async_call() 405 if (IS_ERR(task)) in nlmclnt_async_call() 406 return PTR_ERR(task); in nlmclnt_async_call() 407 err = rpc_wait_for_completion_task(task); in nlmclnt_async_call() [all …]
|
/linux-4.4.14/arch/hexagon/kernel/ |
D | traps.c | 92 static void do_show_stack(struct task_struct *task, unsigned long *fp, in do_show_stack() argument 104 if (task == NULL) in do_show_stack() 105 task = current; in do_show_stack() 108 raw_smp_processor_id(), task->comm, in do_show_stack() 109 task_pid_nr(task)); in do_show_stack() 112 if (task == current) { in do_show_stack() 117 task->thread.switch_sp)->fp; in do_show_stack() 131 low = (unsigned long)task_stack_page(task); in do_show_stack() 192 void show_stack(struct task_struct *task, unsigned long *fp) in show_stack() argument 195 do_show_stack(task, fp, 0); in show_stack()
|
/linux-4.4.14/arch/cris/arch-v10/kernel/ |
D | ptrace.c | 29 inline long get_reg(struct task_struct *task, unsigned int regno) in get_reg() argument 36 return task->thread.usp; in get_reg() 38 return ((unsigned long *)task_pt_regs(task))[regno]; in get_reg() 46 inline int put_reg(struct task_struct *task, unsigned int regno, in put_reg() argument 50 task->thread.usp = data; in put_reg() 52 ((unsigned long *)task_pt_regs(task))[regno] = data; in put_reg()
|
/linux-4.4.14/lib/ |
D | is_single_threaded.c | 20 struct task_struct *task = current; in current_is_single_threaded() local 21 struct mm_struct *mm = task->mm; in current_is_single_threaded() 25 if (atomic_read(&task->signal->live) != 1) in current_is_single_threaded() 36 if (unlikely(p == task->group_leader)) in current_is_single_threaded()
|
/linux-4.4.14/arch/xtensa/include/asm/ |
D | stacktrace.h | 20 static __always_inline unsigned long *stack_pointer(struct task_struct *task) in stack_pointer() argument 24 if (!task || task == current) in stack_pointer() 27 sp = (unsigned long *)task->thread.sp; in stack_pointer()
|
/linux-4.4.14/arch/h8300/include/asm/ |
D | ptrace.h | 28 #define task_pt_regs(task) \ argument 29 ((struct pt_regs *) (task_stack_page(task) + THREAD_SIZE) - 1) 31 extern long h8300_get_reg(struct task_struct *task, int regno); 32 extern int h8300_put_reg(struct task_struct *task, int regno,
|
/linux-4.4.14/tools/testing/fault-injection/ |
D | failcmd.sh | 33 --oom-kill-allocating-task=value 41 --interval=value, --space=value, --verbose=value, --task-filter=value, 86 LONGOPTS=probability:,interval:,times:,space:,verbose:,task-filter: 88 LONGOPTS=$LONGOPTS,reject-start:,reject-end:,oom-kill-allocating-task:,help 107 echo N > $FAULTATTR/task-filter 153 --task-filter) 177 --oom-kill-allocating-task) 212 echo $task_filter > $FAULTATTR/task-filter
|
/linux-4.4.14/include/linux/sched/ |
D | rt.h | 21 extern int rt_mutex_get_effective_prio(struct task_struct *task, int newprio); 22 extern struct task_struct *rt_mutex_get_top_task(struct task_struct *task); 34 static inline int rt_mutex_get_effective_prio(struct task_struct *task, in rt_mutex_get_effective_prio() argument 40 static inline struct task_struct *rt_mutex_get_top_task(struct task_struct *task) in rt_mutex_get_top_task() argument
|
/linux-4.4.14/samples/bpf/ |
D | tracex2_user.c | 24 struct task { struct 31 struct task t; argument 35 #define SIZE sizeof(struct task) 37 static void print_hist_for_pid(int fd, void *task) in print_hist_for_pid() argument 48 if (memcmp(&next_key, task, SIZE)) { in print_hist_for_pid() 75 static struct task tasks[1024]; in print_hist()
|
/linux-4.4.14/fs/ |
D | proc_namespace.c | 237 struct task_struct *task = get_proc_task(inode); in mounts_open_common() local 245 if (!task) in mounts_open_common() 248 task_lock(task); in mounts_open_common() 249 nsp = task->nsproxy; in mounts_open_common() 251 task_unlock(task); in mounts_open_common() 252 put_task_struct(task); in mounts_open_common() 257 if (!task->fs) { in mounts_open_common() 258 task_unlock(task); in mounts_open_common() 259 put_task_struct(task); in mounts_open_common() 263 get_fs_root(task->fs, &root); in mounts_open_common() [all …]
|
/linux-4.4.14/drivers/oprofile/ |
D | cpu_buffer.c | 183 int is_kernel, struct task_struct *task) in op_add_code() argument 205 if (cpu_buf->last_task != task) { in op_add_code() 206 cpu_buf->last_task = task; in op_add_code() 227 op_cpu_buffer_add_data(&entry, (unsigned long)task); in op_add_code() 262 struct task_struct *task) in log_sample() argument 264 struct task_struct *tsk = task ? task : current; in log_sample() 298 struct task_struct *task) in __oprofile_add_ext_sample() argument 307 if (!log_sample(cpu_buf, pc, backtrace, is_kernel, event, task)) in __oprofile_add_ext_sample() 321 struct task_struct *task) in oprofile_add_ext_hw_sample() argument 323 __oprofile_add_ext_sample(pc, regs, event, is_kernel, task); in oprofile_add_ext_hw_sample()
|
/linux-4.4.14/security/apparmor/include/ |
D | context.h | 86 struct aa_profile *aa_get_task_profile(struct task_struct *task); 112 static inline struct aa_profile *__aa_task_profile(struct task_struct *task) in __aa_task_profile() argument 114 return aa_cred_profile(__task_cred(task)); in __aa_task_profile() 123 static inline bool __aa_task_is_confined(struct task_struct *task) in __aa_task_is_confined() argument 125 return !unconfined(__aa_task_profile(task)); in __aa_task_is_confined()
|
/linux-4.4.14/fs/nfsd/ |
D | nfs4callback.c | 805 static void nfsd4_cb_probe_done(struct rpc_task *task, void *calldata) in nfsd4_cb_probe_done() argument 809 if (task->tk_status) in nfsd4_cb_probe_done() 810 nfsd4_mark_cb_down(clp, task->tk_status); in nfsd4_cb_probe_done() 853 static bool nfsd41_cb_get_slot(struct nfs4_client *clp, struct rpc_task *task) in nfsd41_cb_get_slot() argument 856 rpc_sleep_on(&clp->cl_cb_waitq, task, NULL); in nfsd41_cb_get_slot() 862 rpc_wake_up_queued_task(&clp->cl_cb_waitq, task); in nfsd41_cb_get_slot() 871 static void nfsd4_cb_prepare(struct rpc_task *task, void *calldata) in nfsd4_cb_prepare() argument 885 if (!nfsd41_cb_get_slot(clp, task)) in nfsd4_cb_prepare() 888 rpc_call_start(task); in nfsd4_cb_prepare() 891 static bool nfsd4_cb_sequence_done(struct rpc_task *task, struct nfsd4_callback *cb) in nfsd4_cb_sequence_done() argument [all …]
|
/linux-4.4.14/kernel/events/ |
D | core.c | 318 struct task_struct *task); 447 perf_cgroup_set_timestamp(struct task_struct *task, in perf_cgroup_set_timestamp() argument 458 if (!task || !ctx->nr_cgroups) in perf_cgroup_set_timestamp() 461 cgrp = perf_cgroup_from_task(task, ctx); in perf_cgroup_set_timestamp() 475 static void perf_cgroup_switch(struct task_struct *task, int mode) in perf_cgroup_switch() argument 527 cpuctx->cgrp = perf_cgroup_from_task(task, &cpuctx->ctx); in perf_cgroup_switch() 528 cpu_ctx_sched_in(cpuctx, EVENT_ALL, task); in perf_cgroup_switch() 538 static inline void perf_cgroup_sched_out(struct task_struct *task, in perf_cgroup_sched_out() argument 550 cgrp1 = perf_cgroup_from_task(task, NULL); in perf_cgroup_sched_out() 565 perf_cgroup_switch(task, PERF_CGROUP_SWOUT); in perf_cgroup_sched_out() [all …]
|
/linux-4.4.14/drivers/scsi/bnx2i/ |
D | bnx2i_iscsi.c | 84 static void bnx2i_setup_write_cmd_bd_info(struct iscsi_task *task) in bnx2i_setup_write_cmd_bd_info() argument 86 struct bnx2i_cmd *cmd = task->dd_data; in bnx2i_setup_write_cmd_bd_info() 95 if (!iscsi_task_has_unsol_data(task) && !task->imm_count) in bnx2i_setup_write_cmd_bd_info() 99 buffer_offset += task->imm_count; in bnx2i_setup_write_cmd_bd_info() 100 if (task->imm_count == cmd_len) in bnx2i_setup_write_cmd_bd_info() 103 if (iscsi_task_has_unsol_data(task)) { in bnx2i_setup_write_cmd_bd_info() 108 buffer_offset += task->unsol_r2t.data_length; in bnx2i_setup_write_cmd_bd_info() 114 if ((start_bd_offset > task->conn->session->first_burst) || in bnx2i_setup_write_cmd_bd_info() 118 iscsi_conn_printk(KERN_ALERT, task->conn, in bnx2i_setup_write_cmd_bd_info() 124 iscsi_conn_printk(KERN_ALERT, task->conn, in bnx2i_setup_write_cmd_bd_info() [all …]
|
/linux-4.4.14/drivers/net/xen-netback/ |
D | interface.c | 169 if (queue->task == NULL || in xenvif_start_xmit() 534 struct task_struct *task; in xenvif_connect() local 538 BUG_ON(queue->task); in xenvif_connect() 586 task = kthread_create(xenvif_kthread_guest_rx, in xenvif_connect() 588 if (IS_ERR(task)) { in xenvif_connect() 590 err = PTR_ERR(task); in xenvif_connect() 593 queue->task = task; in xenvif_connect() 594 get_task_struct(task); in xenvif_connect() 596 task = kthread_create(xenvif_dealloc_kthread, in xenvif_connect() 598 if (IS_ERR(task)) { in xenvif_connect() [all …]
|
/linux-4.4.14/arch/blackfin/kernel/ |
D | ptrace.c | 40 get_reg(struct task_struct *task, unsigned long regno, in get_reg() argument 44 struct pt_regs *regs = task_pt_regs(task); in get_reg() 51 tmp = task->mm->start_code; in get_reg() 54 tmp = task->mm->end_code; in get_reg() 57 tmp = task->mm->start_data; in get_reg() 60 tmp = task->thread.usp; in get_reg() 77 put_reg(struct task_struct *task, unsigned long regno, unsigned long data) in put_reg() argument 79 struct pt_regs *regs = task_pt_regs(task); in put_reg() 97 task->thread.usp = data; in put_reg() 226 const struct user_regset_view *task_user_regset_view(struct task_struct *task) in task_user_regset_view() argument
|
/linux-4.4.14/arch/arm/kernel/ |
D | iwmmxt.S | 89 add r0, r10, #TI_IWMMXT_STATE @ get task Concan save area 90 ldr r2, [sp, #60] @ current task pc value 92 str r0, [r3] @ this task now owns Concan regs 204 add r2, r0, #TI_IWMMXT_STATE @ get task Concan save area 256 add r2, r0, #TI_IWMMXT_STATE @ get task Concan save area 258 teq r2, r3 @ does this task own it... 261 @ current Concan values are in the task save area 268 1: @ this task owns Concan regs -- grab a copy from there 294 add r2, r0, #TI_IWMMXT_STATE @ get task Concan save area 297 teq r2, r3 @ does this task own it... [all …]
|
/linux-4.4.14/Documentation/cgroups/ |
D | cpusets.txt | 45 the resources within a task's current cpuset. They form a nested 53 Requests by a task, using the sched_setaffinity(2) system call to 56 policy, are both filtered through that task's cpuset, filtering out any 58 schedule a task on a CPU that is not allowed in its cpus_allowed 60 node that is not allowed in the requesting task's mems_allowed vector. 65 specify and query to which cpuset a task is assigned, and list the 66 task pids assigned to a cpuset. 114 CPUs a task may be scheduled (sched_setaffinity) and on which Memory 121 - Each task in the system is attached to a cpuset, via a pointer 122 in the task structure to a reference counted cgroup structure. [all …]
|
/linux-4.4.14/arch/avr32/include/asm/ |
D | thread_info.h | 22 struct task_struct *task; /* main task structure */ member 36 .task = &tsk, \ 57 #define get_thread_info(ti) get_task_struct((ti)->task) 58 #define put_thread_info(ti) put_task_struct((ti)->task)
|
/linux-4.4.14/arch/m68k/kernel/ |
D | ptrace.c | 74 static inline long get_reg(struct task_struct *task, int regno) in get_reg() argument 79 addr = &task->thread.usp; in get_reg() 81 addr = (unsigned long *)(task->thread.esp0 + regoff[regno]); in get_reg() 86 long stkadj = *(long *)(task->thread.esp0 + PT_REG(stkadj)); in get_reg() 98 static inline int put_reg(struct task_struct *task, int regno, in put_reg() argument 104 addr = &task->thread.usp; in put_reg() 106 addr = (unsigned long *)(task->thread.esp0 + regoff[regno]); in put_reg() 111 long stkadj = *(long *)(task->thread.esp0 + PT_REG(stkadj)); in put_reg()
|
/linux-4.4.14/Documentation/security/ |
D | credentials.txt | 18 - Accessing task credentials. 19 - Accessing another task's credentials. 55 accounting and limitation (disk quotas and task rlimits for example). 79 For instance an open file may send SIGIO to a task using the UID and EUID 80 given to it by a task that called fcntl(F_SETOWN) upon it. In this case, 90 A Linux task, for example, has the FSUID, FSGID and the supplementary 93 task. 175 granted piecemeal to a task that an ordinary task wouldn't otherwise have. 184 The effective capabilities are the ones that a task is actually allowed to 224 operations that a task may do. Currently Linux supports several LSM [all …]
|
/linux-4.4.14/arch/parisc/include/asm/ |
D | psw.h | 96 #define pa_psw(task) ((struct pa_psw *) ((char *) (task) + TASK_PT_PSW + 4)) argument 98 #define pa_psw(task) ((struct pa_psw *) ((char *) (task) + TASK_PT_PSW)) argument
|
D | processor.h | 143 #define SET_UNALIGN_CTL(task,value) \ argument 145 (task)->thread.flags = (((task)->thread.flags & ~PARISC_UAC_MASK) \ 151 #define GET_UNALIGN_CTL(task,addr) \ argument 153 put_user(((task)->thread.flags & PARISC_UAC_MASK) \ 176 void show_trace(struct task_struct *task, unsigned long *stack);
|
/linux-4.4.14/drivers/net/wireless/rsi/ |
D | rsi_common.h | 66 thread->task = kthread_run(func_ptr, common, "%s", name); in rsi_create_kthread() 67 if (IS_ERR(thread->task)) in rsi_create_kthread() 68 return (int)PTR_ERR(thread->task); in rsi_create_kthread() 79 return kthread_stop(handle->task); in rsi_kill_thread()
|
/linux-4.4.14/arch/c6x/kernel/ |
D | ptrace.c | 33 static inline long get_reg(struct task_struct *task, int regno) in get_reg() argument 35 long *addr = (long *)task_pt_regs(task); in get_reg() 46 static inline int put_reg(struct task_struct *task, in put_reg() argument 50 unsigned long *addr = (unsigned long *)task_pt_regs(task); in put_reg() 134 const struct user_regset_view *task_user_regset_view(struct task_struct *task) in task_user_regset_view() argument
|
/linux-4.4.14/arch/metag/kernel/ |
D | irq.c | 81 irqctx->tinfo.task = curctx->tinfo.task; in do_IRQ() 132 irqctx->tinfo.task = NULL; in irq_ctx_init() 140 irqctx->tinfo.task = NULL; in irq_ctx_init() 166 irqctx->tinfo.task = curctx->task; in do_softirq_own_stack()
|
/linux-4.4.14/Documentation/ia64/ |
D | mca.txt | 46 preformatted with just enough task state to let the relevant handlers 49 * Unlike most other architectures, the ia64 struct task is embedded in 51 we switch to a new task as well. Because various bits of the kernel 52 assume that current points into the struct task, switching to a new 63 * The starting point for the unwind depends on whether a task is 65 monarch has to determine whether or not a task is on a cpu before it 74 set_curr_task(), so the monarch can tell that the _original_ task is 76 getting a valid backtrace of the _original_ task. 80 failed, not on the task that was originally running. Again this 83 trace of the failing handler's "task". [all …]
|
/linux-4.4.14/drivers/tty/ |
D | tty_ldsem.c | 74 struct task_struct *task; member 139 tsk = waiter->task; in __ldsem_wake_readers() 141 waiter->task = NULL; in __ldsem_wake_readers() 168 wake_up_process(waiter->task); in __ldsem_wake_writer() 224 waiter.task = tsk; in down_read_failed() 237 if (!waiter.task) in down_read_failed() 251 if (waiter.task) { in down_read_failed() 255 put_task_struct(waiter.task); in down_read_failed() 292 waiter.task = tsk; in down_write_failed()
|
/linux-4.4.14/arch/arm/mach-ep93xx/ |
D | crunch-bits.S | 82 add r0, r10, #TI_CRUNCH_STATE @ get task crunch save area 83 ldr r2, [sp, #60] @ current task pc value 85 str r0, [r3] @ this task now owns crunch 219 add r2, r0, #TI_CRUNCH_STATE @ get task crunch save area 263 add r2, r0, #TI_CRUNCH_STATE @ get task crunch save area 265 teq r2, r3 @ does this task own it... 268 @ current crunch values are in the task save area 275 1: @ this task owns crunch regs -- grab a copy from there 296 add r2, r0, #TI_CRUNCH_STATE @ get task crunch save area 298 teq r2, r3 @ does this task own it... [all …]
|
/linux-4.4.14/arch/unicore32/kernel/ |
D | ptrace.c | 25 static inline long get_user_reg(struct task_struct *task, int offset) in get_user_reg() argument 27 return task_pt_regs(task)->uregs[offset]; in get_user_reg() 37 put_user_reg(struct task_struct *task, int offset, long data) in put_user_reg() argument 39 struct pt_regs newregs, *regs = task_pt_regs(task); in put_user_reg()
|
/linux-4.4.14/drivers/rtc/ |
D | interface.c | 611 int rtc_irq_register(struct rtc_device *rtc, struct rtc_task *task) in rtc_irq_register() argument 615 if (task == NULL || task->func == NULL) in rtc_irq_register() 624 rtc->irq_task = task; in rtc_irq_register() 635 void rtc_irq_unregister(struct rtc_device *rtc, struct rtc_task *task) in rtc_irq_unregister() argument 638 if (rtc->irq_task == task) in rtc_irq_unregister() 677 int rtc_irq_set_state(struct rtc_device *rtc, struct rtc_task *task, int enabled) in rtc_irq_set_state() argument 684 if (rtc->irq_task != NULL && task == NULL) in rtc_irq_set_state() 686 else if (rtc->irq_task != task) in rtc_irq_set_state() 711 int rtc_irq_set_freq(struct rtc_device *rtc, struct rtc_task *task, int freq) in rtc_irq_set_freq() argument 720 if (rtc->irq_task != NULL && task == NULL) in rtc_irq_set_freq() [all …]
|