/linux-2.4.37.9/net/sunrpc/ |
D | sched.c | 36 static void __rpc_default_timer(struct rpc_task *task); 106 __rpc_disable_timer(struct rpc_task *task) in __rpc_disable_timer() argument 108 dprintk("RPC: %4d disabling timer\n", task->tk_pid); in __rpc_disable_timer() 109 task->tk_timeout_fn = NULL; in __rpc_disable_timer() 110 task->tk_timeout = 0; in __rpc_disable_timer() 121 rpc_run_timer(struct rpc_task *task) in rpc_run_timer() argument 126 callback = task->tk_timeout_fn; in rpc_run_timer() 127 task->tk_timeout_fn = NULL; in rpc_run_timer() 130 dprintk("RPC: %4d running timer\n", task->tk_pid); in rpc_run_timer() 131 callback(task); in rpc_run_timer() [all …]
|
D | clnt.c | 46 static void call_start(struct rpc_task *task); 47 static void call_reserve(struct rpc_task *task); 48 static void call_reserveresult(struct rpc_task *task); 49 static void call_allocate(struct rpc_task *task); 50 static void call_encode(struct rpc_task *task); 51 static void call_decode(struct rpc_task *task); 52 static void call_bind(struct rpc_task *task); 53 static void call_transmit(struct rpc_task *task); 54 static void call_status(struct rpc_task *task); 55 static void call_refresh(struct rpc_task *task); [all …]
|
D | auth.c | 261 rpcauth_bindcred(struct rpc_task *task) in rpcauth_bindcred() argument 263 struct rpc_auth *auth = task->tk_auth; in rpcauth_bindcred() 266 task->tk_pid, task->tk_auth->au_ops->au_name); in rpcauth_bindcred() 267 task->tk_msg.rpc_cred = rpcauth_lookup_credcache(auth, task->tk_flags); in rpcauth_bindcred() 268 if (task->tk_msg.rpc_cred == 0) in rpcauth_bindcred() 269 task->tk_status = -ENOMEM; in rpcauth_bindcred() 270 return task->tk_msg.rpc_cred; in rpcauth_bindcred() 282 rpcauth_holdcred(struct rpc_task *task) in rpcauth_holdcred() argument 285 task->tk_pid, task->tk_auth->au_ops->au_name, task->tk_msg.rpc_cred); in rpcauth_holdcred() 286 if (task->tk_msg.rpc_cred) in rpcauth_holdcred() [all …]
|
D | xprt.c | 88 static void xprt_connect_status(struct rpc_task *task); 139 __xprt_lock_write(struct rpc_xprt *xprt, struct rpc_task *task) in __xprt_lock_write() argument 141 struct rpc_rqst *req = task->tk_rqstp; in __xprt_lock_write() 143 if (xprt->nocong || __xprt_get_cong(xprt, task)) { in __xprt_lock_write() 144 xprt->snd_task = task; in __xprt_lock_write() 151 if (xprt->snd_task != task) { in __xprt_lock_write() 152 dprintk("RPC: %4d TCP write queue full\n", task->tk_pid); in __xprt_lock_write() 153 task->tk_timeout = 0; in __xprt_lock_write() 154 task->tk_status = -EAGAIN; in __xprt_lock_write() 156 rpc_sleep_on(&xprt->resend, task, NULL, NULL); in __xprt_lock_write() [all …]
|
D | pmap_clnt.c | 41 rpc_getport(struct rpc_task *task, struct rpc_clnt *clnt) in rpc_getport() argument 50 task->tk_pid, clnt->cl_server, in rpc_getport() 55 rpc_sleep_on(&clnt->cl_bindwait, task, NULL, 0); in rpc_getport() 62 task->tk_status = -EACCES; /* why set this? returns -EIO below */ in rpc_getport() 65 task->tk_status = 0; in rpc_getport() 70 if (!(child = rpc_new_child(pmap_clnt, task))) in rpc_getport() 77 rpc_run_child(task, child, pmap_getport_done); in rpc_getport() 85 task->tk_status = -EIO; in rpc_getport() 86 task->tk_action = NULL; in rpc_getport() 118 pmap_getport_done(struct rpc_task *task) in pmap_getport_done() argument [all …]
|
/linux-2.4.37.9/fs/nfs/ |
D | flushd.c | 65 struct rpc_task *task; in nfs_reqlist_init() local 73 if (!(task = rpc_new_task(server->client, NULL, RPC_TASK_ASYNC))) in nfs_reqlist_init() 79 if (cache->task) in nfs_reqlist_init() 82 task->tk_calldata = server; in nfs_reqlist_init() 84 cache->task = task; in nfs_reqlist_init() 90 task->tk_action = nfs_flushd; in nfs_reqlist_init() 91 task->tk_exit = nfs_flushd_exit; in nfs_reqlist_init() 93 rpc_execute(task); in nfs_reqlist_init() 97 if (task) in nfs_reqlist_init() 98 rpc_release_task(task); in nfs_reqlist_init() [all …]
|
D | unlink.c | 21 struct rpc_task task; member 92 nfs_async_unlink_init(struct rpc_task *task) in nfs_async_unlink_init() argument 94 struct nfs_unlinkdata *data = (struct nfs_unlinkdata *)task->tk_calldata; in nfs_async_unlink_init() 107 rpc_call_setup(task, &msg, 0); in nfs_async_unlink_init() 110 rpc_exit(task, status); in nfs_async_unlink_init() 120 nfs_async_unlink_done(struct rpc_task *task) in nfs_async_unlink_done() argument 122 struct nfs_unlinkdata *data = (struct nfs_unlinkdata *)task->tk_calldata; in nfs_async_unlink_done() 126 if (nfs_async_handle_jukebox(task)) in nfs_async_unlink_done() 132 NFS_PROTO(dir_i)->unlink_done(dir, &task->tk_msg); in nfs_async_unlink_done() 146 nfs_async_unlink_release(struct rpc_task *task) in nfs_async_unlink_release() argument [all …]
|
/linux-2.4.37.9/net/irda/ |
D | irda_device.c | 73 static void __irda_task_delete(struct irda_task *task); 280 void irda_task_next_state(struct irda_task *task, IRDA_TASK_STATE state) in irda_task_next_state() argument 284 task->state = state; in irda_task_next_state() 287 static void __irda_task_delete(struct irda_task *task) in __irda_task_delete() argument 289 del_timer(&task->timer); in __irda_task_delete() 291 kfree(task); in __irda_task_delete() 294 void irda_task_delete(struct irda_task *task) in irda_task_delete() argument 297 hashbin_remove(tasks, (int) task, NULL); in irda_task_delete() 299 __irda_task_delete(task); in irda_task_delete() 310 int irda_task_kick(struct irda_task *task) in irda_task_kick() argument [all …]
|
/linux-2.4.37.9/fs/proc/ |
D | array.c | 280 int proc_pid_status(struct task_struct *task, char * buffer) in proc_pid_status() argument 285 buffer = task_name(task, buffer); in proc_pid_status() 286 buffer = task_state(task, buffer); in proc_pid_status() 287 task_lock(task); in proc_pid_status() 288 mm = task->mm; in proc_pid_status() 291 task_unlock(task); in proc_pid_status() 296 buffer = task_sig(task, buffer); in proc_pid_status() 297 buffer = task_cap(task, buffer); in proc_pid_status() 299 buffer = task_show_regs(task, buffer); in proc_pid_status() 304 int proc_pid_stat(struct task_struct *task, char * buffer) in proc_pid_stat() argument [all …]
|
D | base.c | 59 struct task_struct *task = inode->u.proc_i.task; in proc_exe_link() local 61 task_lock(task); in proc_exe_link() 62 mm = task->mm; in proc_exe_link() 65 task_unlock(task); in proc_exe_link() 90 task_lock(inode->u.proc_i.task); in proc_cwd_link() 91 fs = inode->u.proc_i.task->fs; in proc_cwd_link() 94 task_unlock(inode->u.proc_i.task); in proc_cwd_link() 110 task_lock(inode->u.proc_i.task); in proc_root_link() 111 fs = inode->u.proc_i.task->fs; in proc_root_link() 114 task_unlock(inode->u.proc_i.task); in proc_root_link() [all …]
|
/linux-2.4.37.9/drivers/net/irda/ |
D | tekram.c | 38 static int tekram_change_speed(struct irda_task *task); 39 static int tekram_reset(struct irda_task *task); 110 static int tekram_change_speed(struct irda_task *task) in tekram_change_speed() argument 112 dongle_t *self = (dongle_t *) task->instance; in tekram_change_speed() 113 __u32 speed = (__u32) task->param; in tekram_change_speed() 119 ASSERT(task != NULL, return -1;); in tekram_change_speed() 121 if (self->speed_task && self->speed_task != task) { in tekram_change_speed() 125 self->speed_task = task; in tekram_change_speed() 146 switch (task->state) { in tekram_change_speed() 153 if (irda_task_execute(self, tekram_reset, NULL, task, in tekram_change_speed() [all …]
|
D | ma600.c | 65 static int ma600_change_speed(struct irda_task *task); 66 static int ma600_reset(struct irda_task *task); 179 static int ma600_change_speed(struct irda_task *task) in ma600_change_speed() argument 181 dongle_t *self = (dongle_t *) task->instance; in ma600_change_speed() 182 __u32 speed = (__u32) task->param; in ma600_change_speed() 189 ASSERT(task != NULL, return -1;); in ma600_change_speed() 191 if (self->speed_task && self->speed_task != task) { in ma600_change_speed() 195 self->speed_task = task; in ma600_change_speed() 198 switch (task->state) { in ma600_change_speed() 205 if (irda_task_execute(self, ma600_reset, NULL, task, in ma600_change_speed() [all …]
|
D | mcp2120.c | 32 static int mcp2120_reset(struct irda_task *task); 35 static int mcp2120_change_speed(struct irda_task *task); 88 static int mcp2120_change_speed(struct irda_task *task) in mcp2120_change_speed() argument 90 dongle_t *self = (dongle_t *) task->instance; in mcp2120_change_speed() 91 __u32 speed = (__u32) task->param; in mcp2120_change_speed() 95 self->speed_task = task; in mcp2120_change_speed() 97 switch (task->state) { in mcp2120_change_speed() 102 if (irda_task_execute(self, mcp2120_reset, NULL, task, in mcp2120_change_speed() 106 irda_task_next_state(task, IRDA_TASK_CHILD_WAIT); in mcp2120_change_speed() 149 irda_task_next_state(task, IRDA_TASK_WAIT); in mcp2120_change_speed() [all …]
|
D | girbil.c | 36 static int girbil_reset(struct irda_task *task); 39 static int girbil_change_speed(struct irda_task *task); 109 static int girbil_change_speed(struct irda_task *task) in girbil_change_speed() argument 111 dongle_t *self = (dongle_t *) task->instance; in girbil_change_speed() 112 __u32 speed = (__u32) task->param; in girbil_change_speed() 116 self->speed_task = task; in girbil_change_speed() 118 switch (task->state) { in girbil_change_speed() 122 if (irda_task_execute(self, girbil_reset, NULL, task, in girbil_change_speed() 126 irda_task_next_state(task, IRDA_TASK_CHILD_WAIT); in girbil_change_speed() 162 irda_task_next_state(task, IRDA_TASK_WAIT); in girbil_change_speed() [all …]
|
D | act200l.c | 31 static int act200l_reset(struct irda_task *task); 34 static int act200l_change_speed(struct irda_task *task); 137 static int act200l_change_speed(struct irda_task *task) in act200l_change_speed() argument 139 dongle_t *self = (dongle_t *) task->instance; in act200l_change_speed() 140 __u32 speed = (__u32) task->param; in act200l_change_speed() 146 self->speed_task = task; in act200l_change_speed() 148 switch (task->state) { in act200l_change_speed() 150 if (irda_task_execute(self, act200l_reset, NULL, task, in act200l_change_speed() 154 irda_task_next_state(task, IRDA_TASK_CHILD_WAIT); in act200l_change_speed() 195 irda_task_next_state(task, IRDA_TASK_WAIT); in act200l_change_speed() [all …]
|
D | actisys.c | 58 static int actisys_change_speed(struct irda_task *task); 59 static int actisys_reset(struct irda_task *task); 162 static int actisys_change_speed(struct irda_task *task) in actisys_change_speed() argument 164 dongle_t *self = (dongle_t *) task->instance; in actisys_change_speed() 165 __u32 speed = (__u32) task->param; /* Target speed */ in actisys_change_speed() 206 irda_task_next_state(task, IRDA_TASK_DONE); in actisys_change_speed() 231 static int actisys_reset(struct irda_task *task) in actisys_reset() argument 233 dongle_t *self = (dongle_t *) task->instance; in actisys_reset() 236 ASSERT(task != NULL, return -1;); in actisys_reset() 238 self->reset_task = task; in actisys_reset() [all …]
|
D | esi.c | 46 static int esi_change_speed(struct irda_task *task); 47 static int esi_reset(struct irda_task *task); 90 static int esi_change_speed(struct irda_task *task) in esi_change_speed() argument 92 dongle_t *self = (dongle_t *) task->instance; in esi_change_speed() 93 __u32 speed = (__u32) task->param; in esi_change_speed() 115 irda_task_next_state(task, IRDA_TASK_DONE); in esi_change_speed() 126 static int esi_reset(struct irda_task *task) in esi_reset() argument 128 dongle_t *self = (dongle_t *) task->instance; in esi_reset() 131 irda_task_next_state(task, IRDA_TASK_DONE); in esi_reset()
|
D | litelink.c | 46 static int litelink_change_speed(struct irda_task *task); 47 static int litelink_reset(struct irda_task *task); 93 static int litelink_change_speed(struct irda_task *task) in litelink_change_speed() argument 95 dongle_t *self = (dongle_t *) task->instance; in litelink_change_speed() 96 __u32 speed = (__u32) task->param; in litelink_change_speed() 125 irda_task_next_state(task, IRDA_TASK_DONE); in litelink_change_speed() 136 static int litelink_reset(struct irda_task *task) in litelink_reset() argument 138 dongle_t *self = (dongle_t *) task->instance; in litelink_reset() 161 irda_task_next_state(task, IRDA_TASK_DONE); in litelink_reset()
|
D | old_belkin.c | 73 static int old_belkin_change_speed(struct irda_task *task); 74 static int old_belkin_reset(struct irda_task *task); 121 static int old_belkin_change_speed(struct irda_task *task) in old_belkin_change_speed() argument 123 irda_task_next_state(task, IRDA_TASK_DONE); in old_belkin_change_speed() 134 static int old_belkin_reset(struct irda_task *task) in old_belkin_reset() argument 136 dongle_t *self = (dongle_t *) task->instance; in old_belkin_reset() 147 irda_task_next_state(task, IRDA_TASK_DONE); in old_belkin_reset()
|
/linux-2.4.37.9/arch/ia64/kernel/ |
D | perfmon.c | 328 …int (*read_check)(struct task_struct *task, unsigned int cnum, unsigned long *val, struct pt_reg… 329 …int (*write_check)(struct task_struct *task, unsigned int cnum, unsigned long *val, struct pt_re… 362 …int (*cmd_func)(struct task_struct *task, pfm_context_t *ctx, void *arg, int count, struct pt_reg… 731 pfm_remove_smpl_mapping(struct task_struct *task) in pfm_remove_smpl_mapping() argument 733 pfm_context_t *ctx = task->thread.pfm_context; in pfm_remove_smpl_mapping() 740 if (ctx == NULL || task->mm == NULL || ctx->ctx_smpl_vaddr == 0 || ctx->ctx_psb == NULL) { in pfm_remove_smpl_mapping() 741 printk(KERN_DEBUG "perfmon: invalid context mm=%p\n", task->mm); in pfm_remove_smpl_mapping() 746 down_write(&task->mm->mmap_sem); in pfm_remove_smpl_mapping() 748 r = do_munmap(task->mm, ctx->ctx_smpl_vaddr, psb->psb_size); in pfm_remove_smpl_mapping() 750 up_write(&task->mm->mmap_sem); in pfm_remove_smpl_mapping() [all …]
|
D | process.c | 61 show_stack (struct task_struct *task) in show_stack() argument 63 if (!task) in show_stack() 68 unw_init_from_blocked_task(&info, task); in show_stack() 74 show_trace_task (struct task_struct *task) in show_trace_task() argument 76 show_stack(task); in show_trace_task() 185 ia64_save_extra (struct task_struct *task) in ia64_save_extra() argument 191 if ((task->thread.flags & IA64_THREAD_DBG_VALID) != 0) in ia64_save_extra() 192 ia64_save_debug_regs(&task->thread.dbr[0]); in ia64_save_extra() 195 if ((task->thread.flags & IA64_THREAD_PM_VALID) != 0) in ia64_save_extra() 196 pfm_save_regs(task); in ia64_save_extra() [all …]
|
/linux-2.4.37.9/kernel/ |
D | ptrace.c | 56 int ptrace_attach(struct task_struct *task) in ptrace_attach() argument 58 task_lock(task); in ptrace_attach() 59 if (task->pid <= 1) in ptrace_attach() 61 if (task->tgid == current->tgid) in ptrace_attach() 63 if (!task->mm) in ptrace_attach() 65 if(((current->uid != task->euid) || in ptrace_attach() 66 (current->uid != task->suid) || in ptrace_attach() 67 (current->uid != task->uid) || in ptrace_attach() 68 (current->gid != task->egid) || in ptrace_attach() 69 (current->gid != task->sgid) || in ptrace_attach() [all …]
|
/linux-2.4.37.9/arch/ppc/kernel/ |
D | ptrace.c | 50 static inline unsigned long get_reg(struct task_struct *task, int regno) in get_reg() argument 53 && task->thread.regs != NULL) in get_reg() 54 return ((unsigned long *)task->thread.regs)[regno]; in get_reg() 61 static inline int put_reg(struct task_struct *task, int regno, in put_reg() argument 64 if (regno <= PT_MQ && task->thread.regs != NULL) { in put_reg() 67 | (task->thread.regs->msr & ~MSR_DEBUGCHANGE); in put_reg() 68 ((unsigned long *)task->thread.regs)[regno] = data; in put_reg() 78 static inline int get_vrregs(unsigned long *data, struct task_struct *task) in get_vrregs() argument 88 if (__put_user(task->thread.vr[i].u[j], data)) in get_vrregs() 93 if (__put_user(task->thread.vscr.u[i], data)) in get_vrregs() [all …]
|
/linux-2.4.37.9/arch/sh64/kernel/ |
D | ptrace.c | 48 static inline int get_stack_long(struct task_struct *task, int offset) in get_stack_long() argument 52 stack = (unsigned char *)(task->thread.kregs); in get_stack_long() 58 get_fpu_long(struct task_struct *task, unsigned long addr) in get_fpu_long() argument 62 regs = (struct pt_regs*)((unsigned char *)task + THREAD_SIZE) - 1; in get_fpu_long() 64 if (!task->used_math) { in get_fpu_long() 73 if (last_task_used_math == task) { in get_fpu_long() 75 fpsave(&task->thread.fpu.hard); in get_fpu_long() 81 tmp = ((long *)&task->thread.fpu)[addr / sizeof(unsigned long)]; in get_fpu_long() 88 static inline int put_stack_long(struct task_struct *task, int offset, in put_stack_long() argument 93 stack = (unsigned char *)(task->thread.kregs); in put_stack_long() [all …]
|
/linux-2.4.37.9/include/asm-sh64/ |
D | smplock.h | 21 #define release_kernel_lock(task, cpu, depth) ((depth) = 1) argument 22 #define reacquire_kernel_lock(task, cpu, depth) do { } while(0) argument 58 #define release_kernel_lock(task, cpu) \ argument 60 if (task->lock_depth >= 0) \ 69 #define reacquire_kernel_lock(task) \ argument 71 if (task->lock_depth >= 0) \
|