Lines Matching refs:task
34 * This is the RPC task struct
60 * exit exit async task and report to caller
88 #define task_for_each(task, pos, head) \
90 if ((task=list_entry(pos, struct rpc_task, tk_list)),1)
92 #define task_for_first(task, head) \
94 ((task=list_entry((head)->next, struct rpc_task, tk_list)),1))
97 #define alltask_for_each(task, pos, head) \
99 if ((task=list_entry(pos, struct rpc_task, tk_task)),1)
104 * RPC task flags
106 #define RPC_TASK_ASYNC 0x0001 /* is an async task */
109 #define RPC_TASK_CHILD 0x0008 /* is child of other task */
113 #define RPC_TASK_DYNAMIC 0x0080 /* task was kmalloc'ed */
114 #define RPC_TASK_KILLED 0x0100 /* task was killed */
198 rpc_malloc(struct rpc_task *task, unsigned int size)
200 return rpc_allocate(task->tk_flags, size);
204 rpc_exit(struct rpc_task *task, int status)
206 task->tk_status = status;
207 task->tk_action = NULL;