Home
last modified time | relevance | path

Searched refs:task (Results 1 – 200 of 915) sorted by relevance

12345

/linux-4.1.27/net/sunrpc/
Dsched.c46 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 …]
Dclnt.c60 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 …]
Dxprt.c69 static void xprt_connect_status(struct rpc_task *task);
181 int xprt_reserve_xprt(struct rpc_xprt *xprt, struct rpc_task *task) in xprt_reserve_xprt() argument
183 struct rpc_rqst *req = task->tk_rqstp; in xprt_reserve_xprt()
187 if (task == xprt->snd_task) in xprt_reserve_xprt()
191 xprt->snd_task = task; in xprt_reserve_xprt()
199 task->tk_pid, xprt); in xprt_reserve_xprt()
200 task->tk_timeout = 0; in xprt_reserve_xprt()
201 task->tk_status = -EAGAIN; in xprt_reserve_xprt()
208 rpc_sleep_on_priority(&xprt->sending, task, NULL, priority); in xprt_reserve_xprt()
232 int xprt_reserve_xprt_cong(struct rpc_xprt *xprt, struct rpc_task *task) in xprt_reserve_xprt_cong() argument
[all …]
Dbc_svc.c48 struct rpc_task *task; in bc_send() local
52 task = rpc_run_bc_task(req, &nfs41_callback_ops); in bc_send()
53 if (IS_ERR(task)) in bc_send()
54 ret = PTR_ERR(task); in bc_send()
56 WARN_ON_ONCE(atomic_read(&task->tk_count) != 1); in bc_send()
57 ret = task->tk_status; in bc_send()
58 rpc_put_task(task); in bc_send()
Dauth.c657 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 …]
Ddebugfs.c25 struct rpc_task *task = v; in tasks_show() local
26 struct rpc_clnt *clnt = task->tk_client; in tasks_show()
29 if (RPC_IS_QUEUED(task)) in tasks_show()
30 rpc_waitq = rpc_qname(task->tk_waitqueue); in tasks_show()
32 if (task->tk_rqstp) in tasks_show()
33 xid = be32_to_cpu(task->tk_rqstp->rq_xid); in tasks_show()
36 task->tk_pid, task->tk_flags, task->tk_status, in tasks_show()
37 clnt->cl_clid, xid, task->tk_timeout, task->tk_ops, in tasks_show()
38 clnt->cl_program->name, clnt->cl_vers, rpc_proc_name(task), in tasks_show()
39 task->tk_action, rpc_waitq); in tasks_show()
[all …]
Dauth_unix.c144 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()
Dsunrpc.h40 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()
Dstats.c147 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()
Dauth_null.c64 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.1.27/arch/parisc/kernel/
Dptrace.c38 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 …]
Dstacktrace.c15 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.1.27/net/irda/
Dirda_device.c55 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.1.27/kernel/locking/
Drtmutex.c161 return (left->task->dl.deadline < right->task->dl.deadline); in rt_mutex_waiter_less()
206 rt_mutex_enqueue_pi(struct task_struct *task, struct rt_mutex_waiter *waiter) in rt_mutex_enqueue_pi() argument
208 struct rb_node **link = &task->pi_waiters.rb_node; in rt_mutex_enqueue_pi()
225 task->pi_waiters_leftmost = &waiter->pi_tree_entry; in rt_mutex_enqueue_pi()
228 rb_insert_color(&waiter->pi_tree_entry, &task->pi_waiters); in rt_mutex_enqueue_pi()
232 rt_mutex_dequeue_pi(struct task_struct *task, struct rt_mutex_waiter *waiter) in rt_mutex_dequeue_pi() argument
237 if (task->pi_waiters_leftmost == &waiter->pi_tree_entry) in rt_mutex_dequeue_pi()
238 task->pi_waiters_leftmost = rb_next(&waiter->pi_tree_entry); in rt_mutex_dequeue_pi()
240 rb_erase(&waiter->pi_tree_entry, &task->pi_waiters); in rt_mutex_dequeue_pi()
250 int rt_mutex_getprio(struct task_struct *task) in rt_mutex_getprio() argument
[all …]
Drtmutex-debug.c58 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 …]
Dmutex-debug.c57 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()
Dsemaphore.c195 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()
Drwsem-spinlock.c19 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()
Dmutex.c189 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()
509 struct task_struct *task = current; in __mutex_lock_common() local
539 debug_mutex_add_waiter(lock, &waiter, task_thread_info(task)); in __mutex_lock_common()
543 waiter.task = task; in __mutex_lock_common()
566 if (unlikely(signal_pending_state(state, task))) { in __mutex_lock_common()
577 __set_task_state(task, state); in __mutex_lock_common()
584 __set_task_state(task, TASK_RUNNING); in __mutex_lock_common()
[all …]
/linux-4.1.27/drivers/scsi/aic94xx/
Daic94xx_task.c54 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 …]
Daic94xx_tmf.c233 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.1.27/include/linux/
Dcn_proc.h23 void proc_fork_connector(struct task_struct *task);
24 void proc_exec_connector(struct task_struct *task);
25 void proc_id_connector(struct task_struct *task, int which_id);
26 void proc_sid_connector(struct task_struct *task);
27 void proc_ptrace_connector(struct task_struct *task, int which_id);
28 void proc_comm_connector(struct task_struct *task);
29 void proc_coredump_connector(struct task_struct *task);
30 void proc_exit_connector(struct task_struct *task);
32 static inline void proc_fork_connector(struct task_struct *task) in proc_fork_connector() argument
35 static inline void proc_exec_connector(struct task_struct *task) in proc_exec_connector() argument
[all …]
Dpid.h86 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 …]
Dcgroup.h239 char *task_cgroup_path(struct task_struct *task, char *buf, size_t buflen);
255 #define cgroup_taskset_for_each(task, tset) \ argument
256 for ((task) = cgroup_taskset_first((tset)); (task); \
257 (task) = cgroup_taskset_next((tset)))
279 #define task_css_set_check(task, __c) \ argument
280 rcu_dereference_check((task)->cgroups, \
283 ((task)->flags & PF_EXITING) || (__c))
285 #define task_css_set_check(task, __c) \ argument
286 rcu_dereference((task)->cgroups)
298 #define task_css_check(task, subsys_id, __c) \ argument
[all …]
Dioprio.h53 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);
Dptrace.h82 extern bool ptrace_may_access(struct task_struct *task, unsigned int mode);
111 static inline struct task_struct *ptrace_parent(struct task_struct *task) in ptrace_parent() argument
113 if (unlikely(task->ptrace)) in ptrace_parent()
114 return rcu_dereference(task->parent); in ptrace_parent()
127 static inline bool ptrace_event_enabled(struct task_struct *task, int event) in ptrace_event_enabled() argument
129 return task->ptrace & PT_EVENT_FLAG(event); in ptrace_event_enabled()
222 static inline void ptrace_release_task(struct task_struct *task) in ptrace_release_task() argument
224 BUG_ON(!list_empty(&task->ptraced)); in ptrace_release_task()
225 ptrace_unlink(task); in ptrace_release_task()
226 BUG_ON(!list_empty(&task->ptrace_entry)); in ptrace_release_task()
[all …]
Dshm.h56 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
Dlatencytop.h30 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
Dposix-timers.h24 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);
Dcred.h296 #define __task_cred(task) \ argument
297 rcu_dereference((task)->real_cred)
339 #define task_cred_xxx(task, xxx) \ argument
343 ___val = __task_cred((task))->xxx; \
348 #define task_uid(task) (task_cred_xxx((task), uid)) argument
349 #define task_euid(task) (task_cred_xxx((task), euid)) argument
Drtc.h94 struct rtc_task task; member
180 struct rtc_task *task);
182 struct rtc_task *task);
184 struct rtc_task *task, int enabled);
186 struct rtc_task *task, int freq);
197 int rtc_register(rtc_task_t *task);
198 int rtc_unregister(rtc_task_t *task);
Doom.h72 extern enum oom_scan_t oom_scan_process_thread(struct task_struct *task,
87 static inline bool task_will_free_mem(struct task_struct *task) in task_will_free_mem() argument
94 return (task->flags & PF_EXITING) && in task_will_free_mem()
95 !(task->signal->flags & SIGNAL_GROUP_COREDUMP); in task_will_free_mem()
Dtracehook.h160 static inline void set_notify_resume(struct task_struct *task) in set_notify_resume() argument
163 if (!test_and_set_tsk_thread_flag(task, TIF_NOTIFY_RESUME)) in set_notify_resume()
164 kick_process(task); in set_notify_resume()
/linux-4.1.27/fs/proc/
Dbase.c157 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 …]
Darray.c335 static void task_cpus_allowed(struct seq_file *m, struct task_struct *task) in task_cpus_allowed() argument
338 cpumask_pr_args(&task->cpus_allowed)); in task_cpus_allowed()
340 cpumask_pr_args(&task->cpus_allowed)); in task_cpus_allowed()
344 struct pid *pid, struct task_struct *task) in proc_pid_status() argument
346 struct mm_struct *mm = get_task_mm(task); in proc_pid_status()
348 task_name(m, task); in proc_pid_status()
349 task_state(m, ns, pid, task); in proc_pid_status()
355 task_sig(m, task); in proc_pid_status()
356 task_cap(m, task); in proc_pid_status()
357 task_seccomp(m, task); in proc_pid_status()
[all …]
Dnamespaces.c37 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 …]
Dfd.c24 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 …]
Dtask_nommu.c130 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 …]
Dinternal.h58 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
Dproc_net.c109 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()
/linux-4.1.27/drivers/scsi/pm8001/
Dpm8001_sas.c49 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 …]
Dpm80xx_hwi.c1368 struct sas_task *task = NULL; in pm80xx_send_abort_all() local
1379 task = sas_alloc_slow_task(GFP_ATOMIC); in pm80xx_send_abort_all()
1381 if (!task) { in pm80xx_send_abort_all()
1387 task->task_done = pm8001_task_done; in pm80xx_send_abort_all()
1391 sas_free_task(task); in pm80xx_send_abort_all()
1398 ccb->task = task; in pm80xx_send_abort_all()
1409 sas_free_task(task); in pm80xx_send_abort_all()
1421 struct sas_task *task = NULL; in pm80xx_send_read_log() local
1427 task = sas_alloc_slow_task(GFP_ATOMIC); in pm80xx_send_read_log()
1429 if (!task) { in pm80xx_send_read_log()
[all …]
Dpm8001_hwi.c1540 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.1.27/drivers/video/fbdev/
Duvesafb.c71 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.1.27/drivers/scsi/isci/
Dtask.c76 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 …]
Drequest.c116 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.1.27/drivers/scsi/
Dlibiscsi.c136 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 …]
Dlibiscsi_tcp.c451 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.1.27/drivers/scsi/libsas/
Dsas_scsi_host.c53 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 …]
Dsas_ata.c95 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 …]
Dsas_init.c45 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 …]
Dsas_task.c7 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()
Dsas_expander.c46 struct sas_task *task = (void *) _task; in smp_task_timedout() local
49 spin_lock_irqsave(&task->task_state_lock, flags); in smp_task_timedout()
50 if (!(task->task_state_flags & SAS_TASK_STATE_DONE)) in smp_task_timedout()
51 task->task_state_flags |= SAS_TASK_STATE_ABORTED; in smp_task_timedout()
52 spin_unlock_irqrestore(&task->task_state_lock, flags); in smp_task_timedout()
54 complete(&task->slow_task->completion); in smp_task_timedout()
57 static void smp_task_done(struct sas_task *task) in smp_task_done() argument
59 if (!del_timer(&task->slow_task->timer)) in smp_task_done()
61 complete(&task->slow_task->completion); in smp_task_done()
71 struct sas_task *task = NULL; in smp_execute_task() local
[all …]
/linux-4.1.27/drivers/scsi/mvsas/
Dmv_sas.c28 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.1.27/drivers/gpu/drm/
Ddrm_flip_work.c36 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.1.27/include/linux/fsl/bestcomm/
Dbestcomm_priv.h238 extern int bcom_load_image(int task, u32 *task_image);
239 extern void bcom_set_initiator(int task, int initiator);
261 bcom_enable_task(int task) in bcom_enable_task() argument
264 reg = in_be16(&bcom_eng->regs->tcr[task]); in bcom_enable_task()
265 out_be16(&bcom_eng->regs->tcr[task], reg | TASK_ENABLE); in bcom_enable_task()
269 bcom_disable_task(int task) in bcom_disable_task() argument
271 u16 reg = in_be16(&bcom_eng->regs->tcr[task]); in bcom_disable_task()
272 out_be16(&bcom_eng->regs->tcr[task], reg & ~TASK_ENABLE); in bcom_disable_task()
277 bcom_task_desc(int task) in bcom_task_desc() argument
279 return bcom_sram_pa2va(bcom_eng->tdt[task].start); in bcom_task_desc()
[all …]
/linux-4.1.27/kernel/
Dtask_work.c25 task_work_add(struct task_struct *task, struct callback_head *work, bool notify) in task_work_add() argument
30 head = ACCESS_ONCE(task->task_works); in task_work_add()
34 } while (cmpxchg(&task->task_works, head, work) != head); in task_work_add()
37 set_notify_resume(task); in task_work_add()
53 task_work_cancel(struct task_struct *task, task_work_func_t func) in task_work_cancel() argument
55 struct callback_head **pprev = &task->task_works; in task_work_cancel()
64 raw_spin_lock_irqsave(&task->pi_lock, flags); in task_work_cancel()
72 raw_spin_unlock_irqrestore(&task->pi_lock, flags); in task_work_cancel()
87 struct task_struct *task = current; in task_work_run() local
96 work = ACCESS_ONCE(task->task_works); in task_work_run()
[all …]
Dcgroup_freezer.c55 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()
162 struct task_struct *task; in freezer_attach() local
177 cgroup_taskset_for_each(task, tset) { in freezer_attach()
179 __thaw_task(task); in freezer_attach()
181 freeze_task(task); in freezer_attach()
206 static void freezer_fork(struct task_struct *task) in freezer_fork() argument
217 if (task_css_is_root(task, freezer_cgrp_id)) in freezer_fork()
[all …]
Dptrace.c122 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 …]
Dkthread.c134 void *kthread_data(struct task_struct *task) in kthread_data() argument
136 return to_kthread(task)->data; in kthread_data()
148 void *probe_kthread_data(struct task_struct *task) in probe_kthread_data() argument
150 struct kthread *kthread = to_kthread(task); in probe_kthread_data()
273 struct task_struct *task; in kthread_create_on_node() local
308 task = create->result; in kthread_create_on_node()
309 if (!IS_ERR(task)) { in kthread_create_on_node()
314 vsnprintf(task->comm, sizeof(task->comm), namefmt, args); in kthread_create_on_node()
320 sched_setscheduler_nocheck(task, SCHED_NORMAL, &param); in kthread_create_on_node()
321 set_cpus_allowed_ptr(task, cpu_all_mask); in kthread_create_on_node()
[all …]
Dpid.c389 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()
465 struct pid *get_task_pid(struct task_struct *task, enum pid_type type) in get_task_pid() argument
[all …]
Dcred.c182 const struct cred *get_task_cred(struct task_struct *task) in get_task_cred() argument
189 cred = __task_cred((task)); in get_task_cred()
240 struct task_struct *task = current; in prepare_creds() local
252 old = task->cred; in prepare_creds()
419 struct task_struct *task = current; in commit_creds() local
420 const struct cred *old = task->real_cred; in commit_creds()
426 BUG_ON(task->cred != old); in commit_creds()
442 if (task->mm) in commit_creds()
443 set_dumpable(task->mm, suid_dumpable); in commit_creds()
444 task->pdeath_signal = 0; in commit_creds()
[all …]
Dworkqueue_internal.h37 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);
Dkcmp.c57 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()
Dutsname.c98 static struct ns_common *utsns_get(struct task_struct *task) in utsns_get() argument
103 task_lock(task); in utsns_get()
104 nsproxy = task->nsproxy; in utsns_get()
109 task_unlock(task); in utsns_get()
/linux-4.1.27/include/linux/sunrpc/
Dxprt.h121 int (*reserve_xprt)(struct rpc_xprt *xprt, struct rpc_task *task);
122 void (*release_xprt)(struct rpc_xprt *xprt, struct rpc_task *task);
123 void (*alloc_slot)(struct rpc_xprt *xprt, struct rpc_task *task);
124 void (*rpcbind)(struct rpc_task *task);
126 void (*connect)(struct rpc_xprt *xprt, struct rpc_task *task);
127 void * (*buf_alloc)(struct rpc_task *task, size_t size);
129 int (*send_request)(struct rpc_task *task);
130 void (*set_retrans_timeout)(struct rpc_task *task);
131 void (*timer)(struct rpc_xprt *xprt, struct rpc_task *task);
132 void (*release_request)(struct rpc_task *task);
[all …]
/linux-4.1.27/arch/microblaze/include/asm/
Dprocessor.h145 # 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
Dsyscall.h10 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.1.27/arch/microblaze/kernel/
Dunwind.c153 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 …]
Dtraps.c33 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.1.27/include/trace/events/
Dtask.h2 #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 …]
Dsunrpc.h18 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 …]
Doom.h10 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;
Dsignal.h52 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.1.27/arch/um/include/asm/
Dstacktrace.h18 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.1.27/fs/nfs/flexfilelayout/
Dflexfilelayout.c611 struct rpc_task *task = &hdr->task; in ff_layout_reset_write() local
618 hdr->task.tk_pid, in ff_layout_reset_write()
642 hdr->task.tk_pid, in ff_layout_reset_write()
648 task->tk_status = pnfs_write_done_resend_to_mds(hdr); in ff_layout_reset_write()
654 struct rpc_task *task = &hdr->task; in ff_layout_reset_read() local
661 hdr->task.tk_pid, in ff_layout_reset_read()
667 task->tk_status = pnfs_read_done_resend_to_mds(hdr); in ff_layout_reset_read()
671 static int ff_layout_async_handle_error_v4(struct rpc_task *task, in ff_layout_async_handle_error_v4() argument
685 if (task->tk_status >= 0) in ff_layout_async_handle_error_v4()
688 switch (task->tk_status) { in ff_layout_async_handle_error_v4()
[all …]
/linux-4.1.27/scripts/gdb/linux/
Dtasks.py42 for task in task_lists():
43 if int(task['pid']) == pid:
44 return task
58 task = get_task_by_pid(pid)
59 if task:
60 return task.dereference()
73 def get_thread_info(task): argument
80 thread_info_addr = task.address + ia64_task_size
83 thread_info = task['stack'].cast(thread_info_ptr_type)
96 def invoke(self, task): argument
[all …]
/linux-4.1.27/arch/ia64/include/asm/
Dsyscall.h20 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()
Dperfmon.h24 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…
Dptrace.h91 # 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.1.27/drivers/dma/bestcomm/
Dbestcomm.c139 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.1.27/fs/nfs/filelayout/
Dfilelayout.c89 struct rpc_task *task = &hdr->task; in filelayout_reset_write() local
94 hdr->task.tk_pid, in filelayout_reset_write()
100 task->tk_status = pnfs_write_done_resend_to_mds(hdr); in filelayout_reset_write()
106 struct rpc_task *task = &hdr->task; in filelayout_reset_read() local
111 hdr->task.tk_pid, in filelayout_reset_read()
117 task->tk_status = pnfs_read_done_resend_to_mds(hdr); in filelayout_reset_read()
121 static int filelayout_async_handle_error(struct rpc_task *task, in filelayout_async_handle_error() argument
133 if (task->tk_status >= 0) in filelayout_async_handle_error()
136 switch (task->tk_status) { in filelayout_async_handle_error()
163 "flags 0x%x\n", __func__, task->tk_status, in filelayout_async_handle_error()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/include/linux/
Dobd.h64 struct task_struct *task; member
75 LASSERT(lock->task == NULL); in __client_obd_list_lock()
76 lock->task = current; in __client_obd_list_lock()
85 struct task_struct *task = lock->task; in __client_obd_list_lock() local
87 if (task == NULL) in __client_obd_list_lock()
92 lock, task->comm, task->pid, in __client_obd_list_lock()
110 LASSERT(lock->task != NULL); in client_obd_list_unlock()
111 lock->task = NULL; in client_obd_list_unlock()
/linux-4.1.27/drivers/media/pci/saa7134/
Dsaa7134-vbi.c51 int task) in task_init() argument
56 saa_writeb(SAA7134_VBI_H_START1(task), norm->h_start & 0xff); in task_init()
57 saa_writeb(SAA7134_VBI_H_START2(task), norm->h_start >> 8); in task_init()
58 saa_writeb(SAA7134_VBI_H_STOP1(task), norm->h_stop & 0xff); in task_init()
59 saa_writeb(SAA7134_VBI_H_STOP2(task), norm->h_stop >> 8); in task_init()
60 saa_writeb(SAA7134_VBI_V_START1(task), norm->vbi_v_start_0 & 0xff); in task_init()
61 saa_writeb(SAA7134_VBI_V_START2(task), norm->vbi_v_start_0 >> 8); in task_init()
62 saa_writeb(SAA7134_VBI_V_STOP1(task), norm->vbi_v_stop_0 & 0xff); in task_init()
63 saa_writeb(SAA7134_VBI_V_STOP2(task), norm->vbi_v_stop_0 >> 8); in task_init()
65 saa_writeb(SAA7134_VBI_H_SCALE_INC1(task), VBI_SCALE & 0xff); in task_init()
[all …]
/linux-4.1.27/drivers/connector/
Dcn_proc.c67 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.1.27/drivers/infiniband/ulp/iser/
Discsi_iser.c157 iscsi_iser_pdu_alloc(struct iscsi_task *task, uint8_t opcode) in iscsi_iser_pdu_alloc() argument
159 struct iscsi_iser_task *iser_task = task->dd_data; in iscsi_iser_pdu_alloc()
161 task->hdr = (struct iscsi_hdr *)&iser_task->desc.iscsi_header; in iscsi_iser_pdu_alloc()
162 task->hdr_max = sizeof(iser_task->desc.iscsi_header); in iscsi_iser_pdu_alloc()
179 iser_initialize_task_headers(struct iscsi_task *task, in iser_initialize_task_headers() argument
182 struct iser_conn *iser_conn = task->conn->dd_data; in iser_initialize_task_headers()
184 struct iscsi_iser_task *iser_task = task->dd_data; in iser_initialize_task_headers()
186 const bool mgmt_task = !task->sc && !in_interrupt(); in iser_initialize_task_headers()
228 iscsi_iser_task_init(struct iscsi_task *task) in iscsi_iser_task_init() argument
230 struct iscsi_iser_task *iser_task = task->dd_data; in iscsi_iser_task_init()
[all …]
Diser_initiator.c48 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()
88 task->itt, mem_reg->rkey, in iser_prepare_read_cmd()
100 iser_prepare_write_cmd(struct iscsi_task *task, in iser_prepare_write_cmd() argument
105 struct iscsi_iser_task *iser_task = task->dd_data; in iser_prepare_write_cmd()
146 task->itt, mem_reg->rkey, in iser_prepare_write_cmd()
152 task->itt, imm_sz); in iser_prepare_write_cmd()
377 struct iscsi_task *task) in iser_send_command() argument
380 struct iscsi_iser_task *iser_task = task->dd_data; in iser_send_command()
384 struct iscsi_scsi_req *hdr = (struct iscsi_scsi_req *)task->hdr; in iser_send_command()
[all …]
Discsi_iser.h563 struct iscsi_task *task);
566 struct iscsi_task *task);
569 struct iscsi_task *task,
592 void iser_task_rdma_init(struct iscsi_iser_task *task);
594 void iser_task_rdma_finalize(struct iscsi_iser_task *task);
602 int iser_reg_rdma_mem_fmr(struct iscsi_iser_task *task,
604 int iser_reg_rdma_mem_fastreg(struct iscsi_iser_task *task,
631 int iser_initialize_task_headers(struct iscsi_task *task,
/linux-4.1.27/arch/tile/include/asm/
Dprocessor.h229 #define task_ksp0(task) \ argument
230 ((unsigned long)(task)->stack + THREAD_SIZE - STACK_TOP_DELTA)
233 #define task_pt_regs(task) \ argument
234 ((struct pt_regs *)(task_ksp0(task) - KSTK_PTREGS_GAP) - 1)
238 #define task_sp(task) (task_pt_regs(task)->sp) argument
239 #define task_pc(task) (task_pt_regs(task)->pc) argument
241 #define KSTK_EIP(task) task_pc(task) argument
242 #define KSTK_ESP(task) task_sp(task) argument
356 #define next_current_ksp0(task) ({ \ argument
357 unsigned long __ksp0 = task_ksp0(task) & ((1UL << CPU_SHIFT) - 1); \
[all …]
Dsyscall.h41 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
76 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
/linux-4.1.27/arch/ia64/kernel/
Dperfmon.c388 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 …]
Dperfmon_default_smpl.c41 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 …]
Dprocess.c86 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 …]
Dinit_task.c32 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.1.27/arch/x86/kernel/
Dptrace.c206 static u16 get_segment_reg(struct task_struct *task, unsigned long offset) in get_segment_reg() argument
213 retval = *pt_regs_access(task_pt_regs(task), offset); in get_segment_reg()
215 if (task == current) in get_segment_reg()
216 retval = get_user_gs(task_pt_regs(task)); in get_segment_reg()
218 retval = task_user_gs(task); in get_segment_reg()
223 static int set_segment_reg(struct task_struct *task, in set_segment_reg() argument
248 *pt_regs_access(task_pt_regs(task), offset) = value; in set_segment_reg()
252 if (task == current) in set_segment_reg()
253 set_user_gs(task_pt_regs(task), value); in set_segment_reg()
255 task_user_gs(task) = value; in set_segment_reg()
[all …]
Ddumpstack_32.c41 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 …]
Ddumpstack_64.c117 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 …]
Dprocess_64.c570 long do_arch_prctl(struct task_struct *task, int code, unsigned long addr) in do_arch_prctl() argument
573 int doit = task == current; in do_arch_prctl()
578 if (addr >= TASK_SIZE_OF(task)) in do_arch_prctl()
584 set_32bit_tls(task, GS_TLS, addr); in do_arch_prctl()
586 load_TLS(&task->thread, cpu); in do_arch_prctl()
589 task->thread.gsindex = GS_TLS_SEL; in do_arch_prctl()
590 task->thread.gs = 0; in do_arch_prctl()
592 task->thread.gsindex = 0; in do_arch_prctl()
593 task->thread.gs = addr; in do_arch_prctl()
604 if (addr >= TASK_SIZE_OF(task)) in do_arch_prctl()
[all …]
Ddumpstack.c47 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.1.27/include/asm-generic/
Dsyscall.h41 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.1.27/arch/powerpc/kernel/
Dsignal.h25 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,
Dptrace.c171 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 …]
Dsignal_32.c265 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.1.27/arch/x86/include/asm/
Dsyscall.h31 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_error(struct task_struct *task, in syscall_get_error() argument
51 if (task_thread_info(task)->status & TS_COMPAT) in syscall_get_error()
61 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument
67 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument
76 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
101 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument
107 if (task_thread_info(task)->status & TS_COMPAT) in syscall_get_arguments()
[all …]
Dstacktrace.h60 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.1.27/block/
Dblk-ioc.c200 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.1.27/arch/s390/include/asm/
Dsyscall.h28 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
Dswitch_to.h14 extern void update_cr_regs(struct task_struct *task);
128 static inline void save_fp_vx_regs(struct task_struct *task) in save_fp_vx_regs() argument
130 if (task->thread.vxrs) in save_fp_vx_regs()
131 save_vx_regs(task->thread.vxrs); in save_fp_vx_regs()
133 save_fp_regs(task->thread.fp_regs.fprs); in save_fp_vx_regs()
136 static inline void restore_fp_vx_regs(struct task_struct *task) in restore_fp_vx_regs() argument
138 if (task->thread.vxrs) in restore_fp_vx_regs()
139 restore_vx_regs(task->thread.vxrs); in restore_fp_vx_regs()
141 restore_fp_regs(task->thread.fp_regs.fprs); in restore_fp_vx_regs()
/linux-4.1.27/arch/powerpc/include/asm/
Dsyscall.h25 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
37 static inline long syscall_get_error(struct task_struct *task, in syscall_get_error() argument
43 static inline long syscall_get_return_value(struct task_struct *task, in syscall_get_return_value() argument
49 static inline void syscall_set_return_value(struct task_struct *task, in syscall_set_return_value() argument
62 static inline void syscall_get_arguments(struct task_struct *task, in syscall_get_arguments() argument
69 if (test_tsk_thread_flag(task, TIF_32BIT)) { in syscall_get_arguments()
82 static inline void syscall_set_arguments(struct task_struct *task, in syscall_set_arguments() argument
Dcurrent.h20 struct task_struct *task; in get_current() local
23 : "=r" (task) in get_current()
26 return task; in get_current()
/linux-4.1.27/fs/nfs/
Dunlink.c78 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 …]
Dnfs4proc.c503 struct rpc_task *task) in nfs40_setup_sequence() argument
518 task->tk_timeout = HZ >> 2; in nfs40_setup_sequence()
527 rpc_call_start(task); in nfs40_setup_sequence()
532 rpc_sleep_on_priority(&tbl->slot_tbl_waitq, task, in nfs40_setup_sequence()
535 rpc_sleep_on(&tbl->slot_tbl_waitq, task, NULL); in nfs40_setup_sequence()
541 static int nfs40_sequence_done(struct rpc_task *task, in nfs40_sequence_done() argument
595 int nfs41_sequence_done(struct rpc_task *task, struct nfs4_sequence_res *res) in nfs41_sequence_done() argument
606 if (!RPC_WAS_SENT(task)) in nfs41_sequence_done()
686 if (rpc_restart_call_prepare(task)) { in nfs41_sequence_done()
687 task->tk_status = 0; in nfs41_sequence_done()
[all …]
Dcallback.c35 struct task_struct *task; member
219 if (cb_info->task) in nfs_callback_start_svc()
240 cb_info->task = kthread_create(callback_svc, cb_info->rqst, in nfs_callback_start_svc()
242 if (IS_ERR(cb_info->task)) { in nfs_callback_start_svc()
243 ret = PTR_ERR(cb_info->task); in nfs_callback_start_svc()
246 cb_info->task = NULL; in nfs_callback_start_svc()
249 rqstp->rq_task = cb_info->task; in nfs_callback_start_svc()
250 wake_up_process(cb_info->task); in nfs_callback_start_svc()
319 if (cb_info->task) { in nfs_callback_create_svc()
404 if (cb_info->users == 0 && cb_info->task != NULL) { in nfs_callback_down()
[all …]
Dnfs3proc.c47 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 …]
/linux-4.1.27/arch/mips/include/asm/
Dsyscall.h29 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()
Dprocessor.h402 extern int mips_get_process_fp_mode(struct task_struct *task);
403 extern int mips_set_process_fp_mode(struct task_struct *task,
406 #define GET_FP_MODE(task) mips_get_process_fp_mode(task) argument
407 #define SET_FP_MODE(task,value) mips_set_process_fp_mode(task, value) argument
/linux-4.1.27/arch/blackfin/include/asm/
Dsyscall.h26 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.1.27/arch/openrisc/include/asm/
Dsyscall.h27 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
Dthread_info.h50 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.1.27/arch/arm/include/asm/
Dsyscall.h21 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.1.27/arch/sh/include/asm/
Dsyscall_64.h10 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
Dsyscall_32.h11 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.1.27/arch/s390/kernel/
Ddumpstack.c67 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 …]
Druntime_instr.c54 struct task_struct *task = current; in exit_thread_runtime_instr() local
56 if (!task->thread.ri_cb) in exit_thread_runtime_instr()
59 kfree(task->thread.ri_cb); in exit_thread_runtime_instr()
60 task->thread.ri_signum = 0; in exit_thread_runtime_instr()
61 task->thread.ri_cb = NULL; in exit_thread_runtime_instr()
Dptrace.c41 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()
56 if (task->thread.per_flags & PER_FLAG_NO_TE) in update_cr_regs()
62 if (task->thread.vxrs) in update_cr_regs()
71 if (task->thread.per_flags & PER_FLAG_TE_ABORT_RAND) { in update_cr_regs()
72 if (task->thread.per_flags & in update_cr_regs()
88 if (test_tsk_thread_flag(task, TIF_SINGLE_STEP) || in update_cr_regs()
89 test_tsk_thread_flag(task, TIF_UPROBE_SINGLESTEP)) { in update_cr_regs()
90 if (test_tsk_thread_flag(task, TIF_BLOCK_STEP)) in update_cr_regs()
[all …]
/linux-4.1.27/Documentation/accounting/
Dtaskstats-struct.txt11 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 …]
Dtaskstats.txt1 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 …]
Ddelay-accounting.txt6 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.1.27/arch/mips/kernel/
Dprocess.c507 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.1.27/arch/frv/include/asm/
Dsyscall.h21 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.1.27/arch/sparc/include/asm/
Dsyscall.h18 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.1.27/arch/alpha/kernel/
Dptrace.c107 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.1.27/arch/mn10300/include/asm/
Dsyscall.h22 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
Dprocessor.h144 #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
Dthread_info.h42 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.1.27/arch/c6x/include/asm/
Dsyscall.h17 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
Dprocessor.h77 #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
Dthread_info.h42 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.1.27/arch/arc/include/asm/
Dsyscall.h18 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.1.27/drivers/scsi/bnx2fc/
Dbnx2fc_hwi.c635 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 …]
Dbnx2fc.h438 struct fcoe_task_ctx_entry *task; member
527 struct fcoe_task_ctx_entry *task,
530 struct fcoe_task_ctx_entry *task,
534 struct fcoe_task_ctx_entry *task);
536 struct fcoe_task_ctx_entry *task);
547 struct fcoe_task_ctx_entry *task,
550 struct fcoe_task_ctx_entry *task,
553 struct fcoe_task_ctx_entry *task,
556 struct fcoe_task_ctx_entry *task,
559 struct fcoe_task_ctx_entry *task,
[all …]
/linux-4.1.27/drivers/staging/iio/trigger/
Diio-trig-periodic-rtc.c28 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()
149 trig_info->task.func = iio_prtc_trigger_poll; in iio_trig_periodic_rtc_probe()
150 trig_info->task.private_data = trig; in iio_trig_periodic_rtc_probe()
151 ret = rtc_irq_register(trig_info->rtc, &trig_info->task); in iio_trig_periodic_rtc_probe()
161 rtc_irq_unregister(trig_info->rtc, &trig_info->task); in iio_trig_periodic_rtc_probe()
175 rtc_irq_unregister(trig_info->rtc, &trig_info->task); in iio_trig_periodic_rtc_probe()
[all …]
/linux-4.1.27/arch/metag/include/asm/
Dsyscall.h22 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.1.27/arch/arm64/include/asm/
Dsyscall.h25 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.1.27/arch/nios2/include/asm/
Dsyscall.h23 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.1.27/arch/sh/kernel/
Dptrace_64.c58 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 …]
Ddumpstack.c59 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
Dirq.c87 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.1.27/Documentation/scheduler/
Dsched-design-CFS.txt17 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 …]
Dsched-deadline.txt43 "deadline", to schedule tasks. A SCHED_DEADLINE task should receive
47 every time the task wakes up, the scheduler computes a "scheduling deadline"
49 scheduled using EDF[1] on these scheduling deadlines (the task with the
51 task actually receives "runtime" time units within "deadline" if a proper
56 that each task runs for at most its runtime every period, avoiding any
58 algorithm selects the task with the earliest scheduling deadline as the one
60 with the "traditional" real-time task model (see Section 3) can effectively
66 - Each SCHED_DEADLINE task is characterised by the "runtime",
69 - The state of the task is described by a "scheduling deadline", and
72 - When a SCHED_DEADLINE task wakes up (becomes ready for execution),
[all …]
/linux-4.1.27/tools/perf/
Dbuiltin-sched.c240 get_new_event(struct task_desc *task, u64 timestamp) in get_new_event() argument
243 unsigned long idx = task->nr_events; in get_new_event()
249 task->nr_events++; in get_new_event()
250 size = sizeof(struct sched_atom *) * task->nr_events; in get_new_event()
251 task->atoms = realloc(task->atoms, size); in get_new_event()
252 BUG_ON(!task->atoms); in get_new_event()
254 task->atoms[idx] = event; in get_new_event()
259 static struct sched_atom *last_event(struct task_desc *task) in last_event() argument
261 if (!task->nr_events) in last_event()
264 return task->atoms[task->nr_events - 1]; in last_event()
[all …]
/linux-4.1.27/arch/alpha/include/asm/
Dthread_info.h17 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.1.27/arch/arm/common/
DbL_switcher.c262 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.1.27/drivers/misc/cxl/
Dfault.c175 struct task_struct *task; in cxl_handle_fault() local
197 if (!(task = get_pid_task(ctx->pid, PIDTYPE_PID))) { in cxl_handle_fault()
203 if (!(mm = get_task_mm(task))) { in cxl_handle_fault()
219 put_task_struct(task); in cxl_handle_fault()
225 struct task_struct *task; in cxl_prefault_one() local
228 if (!(task = get_pid_task(ctx->pid, PIDTYPE_PID))) { in cxl_prefault_one()
233 if (!(mm = get_task_mm(task))) { in cxl_prefault_one()
236 put_task_struct(task); in cxl_prefault_one()
243 put_task_struct(task); in cxl_prefault_one()
262 struct task_struct *task; in cxl_prefault_vma() local
[all …]
/linux-4.1.27/arch/score/kernel/
Dprocess.c109 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.1.27/mm/
Doom_kill.c257 enum oom_scan_t oom_scan_process_thread(struct task_struct *task, in oom_scan_process_thread() argument
261 if (oom_unkillable_task(task, NULL, nodemask)) in oom_scan_process_thread()
268 if (test_tsk_thread_flag(task, TIF_MEMDIE)) { in oom_scan_process_thread()
272 if (!task->mm) in oom_scan_process_thread()
279 if (oom_task_origin(task)) in oom_scan_process_thread()
282 if (task_will_free_mem(task) && !force_kill) in oom_scan_process_thread()
352 struct task_struct *task; in dump_tasks() local
360 task = find_lock_task_mm(p); in dump_tasks()
361 if (!task) { in dump_tasks()
371 task->pid, from_kuid(&init_user_ns, task_uid(task)), in dump_tasks()
[all …]
Dprocess_vm_access.c82 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.1.27/Documentation/vm/
Dnuma_memory_policy.txt16 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 …]
Dsoft-dirty.txt3 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.1.27/include/scsi/
Dlibiscsi.h147 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.1.27/drivers/md/persistent-data/
Ddm-block-manager.c51 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.1.27/arch/xtensa/include/asm/
Dstacktrace.h20 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.1.27/arch/arm64/kernel/
Ddebug-monitors.c383 void user_rewind_single_step(struct task_struct *task) in user_rewind_single_step() argument
389 if (test_ti_thread_flag(task_thread_info(task), TIF_SINGLESTEP)) in user_rewind_single_step()
390 set_regs_spsr_ss(task_pt_regs(task)); in user_rewind_single_step()
393 void user_fastforward_single_step(struct task_struct *task) in user_fastforward_single_step() argument
395 if (test_ti_thread_flag(task_thread_info(task), TIF_SINGLESTEP)) in user_fastforward_single_step()
396 clear_regs_spsr_ss(task_pt_regs(task)); in user_fastforward_single_step()
422 void user_enable_single_step(struct task_struct *task) in user_enable_single_step() argument
424 set_ti_thread_flag(task_thread_info(task), TIF_SINGLESTEP); in user_enable_single_step()
425 set_regs_spsr_ss(task_pt_regs(task)); in user_enable_single_step()
428 void user_disable_single_step(struct task_struct *task) in user_disable_single_step() argument
[all …]
/linux-4.1.27/arch/cris/arch-v32/kernel/
Dptrace.c39 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.1.27/arch/x86/um/
Dtls_32.c62 static int get_free_idx(struct task_struct* task) in get_free_idx() argument
64 struct thread_struct *t = &task->thread; in get_free_idx()
131 static inline int needs_TLS_update(struct task_struct *task) in needs_TLS_update() argument
138 &task->thread.arch.tls_array[i - GDT_ENTRY_TLS_MIN]; in needs_TLS_update()
156 void clear_flushed_tls(struct task_struct *task) in clear_flushed_tls() argument
162 &task->thread.arch.tls_array[i - GDT_ENTRY_TLS_MIN]; in clear_flushed_tls()
202 static int set_tls_entry(struct task_struct* task, struct user_desc *info, in set_tls_entry() argument
205 struct thread_struct *t = &task->thread; in set_tls_entry()
239 static int get_tls_entry(struct task_struct *task, struct user_desc *info, in get_tls_entry() argument
242 struct thread_struct *t = &task->thread; in get_tls_entry()
[all …]
/linux-4.1.27/arch/tile/kernel/
Dstack.c45 ulong kstack_base = (ulong) kbt->task->stack; in in_kernel_stack()
232 kbt->task = t; in KBacktraceIterator_init()
330 vma = find_vma(kbt->task->mm, address); in describe_addr()
392 kbt->task->pid, kbt->task->tgid, kbt->task->comm, in tile_show_stack()
402 if (address < PAGE_OFFSET && !have_mmap_sem && kbt->task->mm) in tile_show_stack()
404 down_read_trylock(&kbt->task->mm->mmap_sem); in tile_show_stack()
422 up_read(&kbt->task->mm->mmap_sem); in tile_show_stack()
465 void show_stack(struct task_struct *task, unsigned long *esp) in show_stack() argument
468 if (task == NULL || task == current) in show_stack()
471 KBacktraceIterator_init(&kbt, task, NULL); in show_stack()
[all …]
Dhardwall.c627 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.1.27/Documentation/locking/
Drt-mutex-design.txt99 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.1.27/fs/lockd/
Dclntproc.c357 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.1.27/arch/hexagon/kernel/
Dtraps.c92 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.1.27/arch/cris/arch-v10/kernel/
Dptrace.c29 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.1.27/lib/
Dis_single_threaded.c20 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.1.27/drivers/staging/unisys/uislib/
Duisthread.c43 thrinfo->task = kthread_run(threadfn, thrcontext, name); in uisthread_start()
44 if (IS_ERR(thrinfo->task)) { in uisthread_start()
48 thrinfo->id = thrinfo->task->pid; in uisthread_start()
61 kthread_stop(thrinfo->task); in uisthread_stop()
/linux-4.1.27/tools/testing/fault-injection/
Dfailcmd.sh33 --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.1.27/include/linux/sched/
Drt.h21 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.1.27/kernel/events/
Dcore.c315 struct task_struct *task);
444 perf_cgroup_set_timestamp(struct task_struct *task, in perf_cgroup_set_timestamp() argument
455 if (!task || !ctx->nr_cgroups) in perf_cgroup_set_timestamp()
458 cgrp = perf_cgroup_from_task(task); in perf_cgroup_set_timestamp()
472 void perf_cgroup_switch(struct task_struct *task, int mode) in perf_cgroup_switch() argument
523 cpuctx->cgrp = perf_cgroup_from_task(task); in perf_cgroup_switch()
524 cpu_ctx_sched_in(cpuctx, EVENT_ALL, task); in perf_cgroup_switch()
536 static inline void perf_cgroup_sched_out(struct task_struct *task, in perf_cgroup_sched_out() argument
545 cgrp1 = perf_cgroup_from_task(task); in perf_cgroup_sched_out()
560 perf_cgroup_switch(task, PERF_CGROUP_SWOUT); in perf_cgroup_sched_out()
[all …]
/linux-4.1.27/fs/
Dproc_namespace.c236 struct task_struct *task = get_proc_task(inode); in mounts_open_common() local
243 if (!task) in mounts_open_common()
246 task_lock(task); in mounts_open_common()
247 nsp = task->nsproxy; in mounts_open_common()
249 task_unlock(task); in mounts_open_common()
250 put_task_struct(task); in mounts_open_common()
255 if (!task->fs) { in mounts_open_common()
256 task_unlock(task); in mounts_open_common()
257 put_task_struct(task); in mounts_open_common()
261 get_fs_root(task->fs, &root); in mounts_open_common()
[all …]
/linux-4.1.27/drivers/oprofile/
Dcpu_buffer.c183 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()
Dbuffer_sync.c58 struct task_struct *task = data; in task_free_notify() local
60 list_add(&task->tasks, &dying_tasks); in task_free_notify()
302 add_user_ctx_switch(struct task_struct const *task, unsigned long cookie) in add_user_ctx_switch() argument
306 add_event_entry(task->pid); in add_user_ctx_switch()
311 add_event_entry(task->tgid); in add_user_ctx_switch()
437 struct task_struct *task; in process_task_mortuary() local
447 list_for_each_entry_safe(task, ttask, &local_dead_tasks, tasks) { in process_task_mortuary()
448 list_del(&task->tasks); in process_task_mortuary()
449 free_task(task); in process_task_mortuary()
/linux-4.1.27/security/apparmor/include/
Dcontext.h86 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.1.27/drivers/scsi/bnx2i/
Dbnx2i_iscsi.c84 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.1.27/drivers/net/xen-netback/
Dinterface.c163 if (queue->task == NULL || in xenvif_start_xmit()
520 struct task_struct *task; in xenvif_connect() local
524 BUG_ON(queue->task); in xenvif_connect()
572 task = kthread_create(xenvif_kthread_guest_rx, in xenvif_connect()
574 if (IS_ERR(task)) { in xenvif_connect()
576 err = PTR_ERR(task); in xenvif_connect()
579 queue->task = task; in xenvif_connect()
580 get_task_struct(task); in xenvif_connect()
582 task = kthread_create(xenvif_dealloc_kthread, in xenvif_connect()
584 if (IS_ERR(task)) { in xenvif_connect()
[all …]
/linux-4.1.27/arch/blackfin/kernel/
Dptrace.c40 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.1.27/arch/arm/kernel/
Diwmmxt.S89 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.1.27/Documentation/cgroups/
Dcpusets.txt45 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.1.27/arch/avr32/include/asm/
Dthread_info.h22 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.1.27/arch/m68k/kernel/
Dptrace.c74 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.1.27/Documentation/security/
Dcredentials.txt18 - 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.1.27/arch/parisc/include/asm/
Dpsw.h96 #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
Dprocessor.h143 #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.1.27/drivers/net/wireless/rsi/
Drsi_common.h66 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.1.27/arch/c6x/kernel/
Dptrace.c33 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.1.27/arch/metag/kernel/
Dirq.c81 irqctx->tinfo.task = curctx->tinfo.task; in do_IRQ()
134 irqctx->tinfo.task = NULL; in irq_ctx_init()
142 irqctx->tinfo.task = NULL; in irq_ctx_init()
168 irqctx->tinfo.task = curctx->task; in do_softirq_own_stack()
/linux-4.1.27/Documentation/ia64/
Dmca.txt46 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.1.27/drivers/tty/
Dtty_ldsem.c74 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.1.27/arch/arm/mach-ep93xx/
Dcrunch-bits.S82 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.1.27/arch/unicore32/kernel/
Dptrace.c25 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.1.27/fs/nfsd/
Dnfs4callback.c805 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
879 if (!nfsd41_cb_get_slot(clp, task)) in nfsd4_cb_prepare()
882 rpc_call_start(task); in nfsd4_cb_prepare()
885 static void nfsd4_cb_done(struct rpc_task *task, void *calldata) in nfsd4_cb_done() argument
[all …]
/linux-4.1.27/fs/nfs/objlayout/
Dobjlayout.c231 struct rpc_task *task; in _rpc_read_complete() local
235 task = container_of(work, struct rpc_task, u.tk_work); in _rpc_read_complete()
236 hdr = container_of(task, struct nfs_pgio_header, task); in _rpc_read_complete()
246 oir->status = hdr->task.tk_status = status; in objlayout_read_done()
260 INIT_WORK(&hdr->task.u.tk_work, _rpc_read_complete); in objlayout_read_done()
261 schedule_work(&hdr->task.u.tk_work); in objlayout_read_done()
313 struct rpc_task *task; in _rpc_write_complete() local
317 task = container_of(work, struct rpc_task, u.tk_work); in _rpc_write_complete()
318 hdr = container_of(task, struct nfs_pgio_header, task); in _rpc_write_complete()
328 oir->status = hdr->task.tk_status = status; in objlayout_write_done()
[all …]
/linux-4.1.27/net/sunrpc/auth_gss/
Dauth_gss.c419 gss_upcall_callback(struct rpc_task *task) in gss_upcall_callback() argument
421 struct gss_cred *gss_cred = container_of(task->tk_rqstp->rq_cred, in gss_upcall_callback()
429 task->tk_status = gss_msg->msg.errno; in gss_upcall_callback()
558 gss_refresh_upcall(struct rpc_task *task) in gss_refresh_upcall() argument
560 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in gss_refresh_upcall()
570 task->tk_pid, __func__, from_kuid(&init_user_ns, cred->cr_uid)); in gss_refresh_upcall()
576 task->tk_timeout = 15*HZ; in gss_refresh_upcall()
577 rpc_sleep_on(&pipe_version_rpc_waitqueue, task, NULL); in gss_refresh_upcall()
587 rpc_sleep_on(&gss_cred->gc_upcall->rpc_waitqueue, task, NULL); in gss_refresh_upcall()
589 task->tk_timeout = 0; in gss_refresh_upcall()
[all …]

12345