Home
last modified time | relevance | path

Searched full:task (Results 1 – 25 of 4922) sorted by relevance

12345678910>>...197

/kernel/liteos_a/testsuites/kernel/sample/kernel_base/core/
DBUILD.gn123 "task/It_los_task.c",
124 "task/smoke/It_los_task_045.c",
125 "task/smoke/It_los_task_046.c",
126 "task/smoke/It_los_task_049.c",
127 "task/smoke/It_los_task_081.c",
128 "task/smoke/It_los_task_089.c",
129 "task/smoke/It_los_task_097.c",
130 "task/smoke/It_los_task_099.c",
131 "task/smoke/It_los_task_101.c",
132 "task/smoke/It_los_task_105.c",
[all …]
/kernel/liteos_a/kernel/include/
Dlos_task.h33 * @defgroup los_task Task
58 * Flag that indicates the task or task control block status.
60 * The task is automatically deleted.
66 * Flag that indicates the task or task control block status.
68 * The task is joinable.
74 * Task error code: Insufficient memory for task creation.
78 * Solution: Allocate bigger memory partition to task creation.
84 * Task error code: Null parameter.
94 * Task error code: The task stack is not aligned.
98 * Solution: Align the task stack.
[all …]
/kernel/linux/linux-6.6/drivers/infiniband/sw/rxe/
Drxe_task.c25 /* Check if task is idle i.e. not running, not scheduled in
28 * a qp reference to cover the gap from now until the task finishes.
29 * state will move out of busy if task returns a non zero value
32 * over the task.
33 * Context: caller should hold task->lock.
36 static bool __reserve_if_idle(struct rxe_task *task) in __reserve_if_idle() argument
38 WARN_ON(rxe_read(task->qp) <= 0); in __reserve_if_idle()
40 if (task->state == TASK_STATE_IDLE) { in __reserve_if_idle()
41 rxe_get(task->qp); in __reserve_if_idle()
42 task->state = TASK_STATE_BUSY; in __reserve_if_idle()
[all …]
/kernel/linux/linux-6.6/net/sunrpc/
Dsched.c45 static void rpc_release_task(struct rpc_task *task);
68 bool rpc_task_set_rpc_status(struct rpc_task *task, int rpc_status) in rpc_task_set_rpc_status() argument
70 if (cmpxchg(&task->tk_rpc_status, 0, rpc_status) == 0) in rpc_task_set_rpc_status()
76 rpc_task_timeout(const struct rpc_task *task) in rpc_task_timeout() argument
78 unsigned long timeout = READ_ONCE(task->tk_timeout); in rpc_task_timeout()
90 * Disable the timer for a given RPC task. Should be called with
95 __rpc_disable_timer(struct rpc_wait_queue *queue, struct rpc_task *task) in __rpc_disable_timer() argument
97 if (list_empty(&task->u.tk_wait.timer_list)) in __rpc_disable_timer()
99 task->tk_timeout = 0; in __rpc_disable_timer()
100 list_del(&task->u.tk_wait.timer_list); in __rpc_disable_timer()
[all …]
Dclnt.c58 static void call_start(struct rpc_task *task);
59 static void call_reserve(struct rpc_task *task);
60 static void call_reserveresult(struct rpc_task *task);
61 static void call_allocate(struct rpc_task *task);
62 static void call_encode(struct rpc_task *task);
63 static void call_decode(struct rpc_task *task);
64 static void call_bind(struct rpc_task *task);
65 static void call_bind_status(struct rpc_task *task);
66 static void call_transmit(struct rpc_task *task);
67 static void call_status(struct rpc_task *task);
[all …]
Dxprt.c75 static void xprt_request_init(struct rpc_task *task);
258 * @task: task that is requesting access to the transport
265 int xprt_reserve_xprt(struct rpc_xprt *xprt, struct rpc_task *task) in xprt_reserve_xprt() argument
267 struct rpc_rqst *req = task->tk_rqstp; in xprt_reserve_xprt()
270 if (task == xprt->snd_task) in xprt_reserve_xprt()
276 xprt->snd_task = task; in xprt_reserve_xprt()
279 trace_xprt_reserve_xprt(xprt, task); in xprt_reserve_xprt()
285 task->tk_status = -EAGAIN; in xprt_reserve_xprt()
286 if (RPC_IS_SOFT(task)) in xprt_reserve_xprt()
287 rpc_sleep_on_timeout(&xprt->sending, task, NULL, in xprt_reserve_xprt()
[all …]
/kernel/linux/linux-5.10/net/sunrpc/
Dsched.c45 static void rpc_release_task(struct rpc_task *task);
61 rpc_task_timeout(const struct rpc_task *task) in rpc_task_timeout() argument
63 unsigned long timeout = READ_ONCE(task->tk_timeout); in rpc_task_timeout()
75 * Disable the timer for a given RPC task. Should be called with
80 __rpc_disable_timer(struct rpc_wait_queue *queue, struct rpc_task *task) in __rpc_disable_timer() argument
82 if (list_empty(&task->u.tk_wait.timer_list)) in __rpc_disable_timer()
84 task->tk_timeout = 0; in __rpc_disable_timer()
85 list_del(&task->u.tk_wait.timer_list); in __rpc_disable_timer()
103 * Set up a timer for the current task.
106 __rpc_add_timer(struct rpc_wait_queue *queue, struct rpc_task *task, in __rpc_add_timer() argument
[all …]
Dclnt.c57 static void call_start(struct rpc_task *task);
58 static void call_reserve(struct rpc_task *task);
59 static void call_reserveresult(struct rpc_task *task);
60 static void call_allocate(struct rpc_task *task);
61 static void call_encode(struct rpc_task *task);
62 static void call_decode(struct rpc_task *task);
63 static void call_bind(struct rpc_task *task);
64 static void call_bind_status(struct rpc_task *task);
65 static void call_transmit(struct rpc_task *task);
66 static void call_status(struct rpc_task *task);
[all …]
Dxprt.c73 static void xprt_request_init(struct rpc_task *task);
229 * @task: task that is requesting access to the transport
236 int xprt_reserve_xprt(struct rpc_xprt *xprt, struct rpc_task *task) in xprt_reserve_xprt() argument
238 struct rpc_rqst *req = task->tk_rqstp; in xprt_reserve_xprt()
241 if (task == xprt->snd_task) in xprt_reserve_xprt()
247 xprt->snd_task = task; in xprt_reserve_xprt()
250 trace_xprt_reserve_xprt(xprt, task); in xprt_reserve_xprt()
256 task->tk_status = -EAGAIN; in xprt_reserve_xprt()
257 if (RPC_IS_SOFT(task)) in xprt_reserve_xprt()
258 rpc_sleep_on_timeout(&xprt->sending, task, NULL, in xprt_reserve_xprt()
[all …]
/kernel/liteos_m/kernel/include/
Dlos_task.h33 * @defgroup los_task Task
54 * Task error code: Insufficient memory for task creation.
58 * Solution: Allocate bigger memory partition to task creation.
64 * Task error code: Null parameter.
74 * Task error code: The task stack is not aligned.
78 * Solution: Align the task stack.
84 * Task error code: Incorrect task priority.
88 * Solution: Re-configure the task priority by referring to the priority range.
94 * Task error code: The task entrance is NULL.
98 * Solution: Define the task entrance function.
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/
Drxe_task.c13 int __rxe_do_task(struct rxe_task *task) in __rxe_do_task() argument
18 while ((ret = task->func(task->arg)) == 0) in __rxe_do_task()
21 task->ret = ret; in __rxe_do_task()
28 * a second caller finds the task already running
36 struct rxe_task *task = from_tasklet(task, t, tasklet); in rxe_do_task() local
39 spin_lock_irqsave(&task->state_lock, flags); in rxe_do_task()
40 switch (task->state) { in rxe_do_task()
42 task->state = TASK_STATE_BUSY; in rxe_do_task()
43 spin_unlock_irqrestore(&task->state_lock, flags); in rxe_do_task()
47 task->state = TASK_STATE_ARMED; in rxe_do_task()
[all …]
/kernel/linux/linux-6.6/drivers/scsi/libsas/
Dsas_scsi_host.c36 /* record final status and free the task */
37 static void sas_end_task(struct scsi_cmnd *sc, struct sas_task *task) in sas_end_task() argument
39 struct task_status_struct *ts = &task->task_status; in sas_end_task()
47 /* task delivered, what happened afterwards? */ in sas_end_task()
77 pr_notice("LLDD:%s sent SAS_PROTO_RESP for an SSP task; please report this\n", in sas_end_task()
78 task->dev->port->ha->sas_ha_name); in sas_end_task()
96 sas_free_task(task); in sas_end_task()
99 static void sas_scsi_task_done(struct sas_task *task) in sas_scsi_task_done() argument
101 struct scsi_cmnd *sc = task->uldd_task; in sas_scsi_task_done()
102 struct domain_device *dev = task->dev; in sas_scsi_task_done()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/exynos/
Dexynos_drm_ipp.c85 WARN_ON(ipp->task); in exynos_drm_ipp_unregister()
259 struct exynos_drm_ipp_task *task; in exynos_drm_ipp_task_alloc() local
261 task = kzalloc(sizeof(*task), GFP_KERNEL); in exynos_drm_ipp_task_alloc()
262 if (!task) in exynos_drm_ipp_task_alloc()
265 task->dev = ipp->dev; in exynos_drm_ipp_task_alloc()
266 task->ipp = ipp; in exynos_drm_ipp_task_alloc()
269 task->src.rect.w = task->dst.rect.w = UINT_MAX; in exynos_drm_ipp_task_alloc()
270 task->src.rect.h = task->dst.rect.h = UINT_MAX; in exynos_drm_ipp_task_alloc()
271 task->transform.rotation = DRM_MODE_ROTATE_0; in exynos_drm_ipp_task_alloc()
273 DRM_DEV_DEBUG_DRIVER(task->dev, "Allocated task %pK\n", task); in exynos_drm_ipp_task_alloc()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/exynos/
Dexynos_drm_ipp.c86 WARN_ON(ipp->task); in exynos_drm_ipp_unregister()
260 struct exynos_drm_ipp_task *task; in exynos_drm_ipp_task_alloc() local
262 task = kzalloc(sizeof(*task), GFP_KERNEL); in exynos_drm_ipp_task_alloc()
263 if (!task) in exynos_drm_ipp_task_alloc()
266 task->dev = ipp->dev; in exynos_drm_ipp_task_alloc()
267 task->ipp = ipp; in exynos_drm_ipp_task_alloc()
270 task->src.rect.w = task->dst.rect.w = UINT_MAX; in exynos_drm_ipp_task_alloc()
271 task->src.rect.h = task->dst.rect.h = UINT_MAX; in exynos_drm_ipp_task_alloc()
272 task->transform.rotation = DRM_MODE_ROTATE_0; in exynos_drm_ipp_task_alloc()
274 DRM_DEV_DEBUG_DRIVER(task->dev, "Allocated task %pK\n", task); in exynos_drm_ipp_task_alloc()
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
Dtask_kfunc_failure.c19 static struct __tasks_kfunc_map_value *insert_lookup_task(struct task_struct *task) in insert_lookup_task() argument
23 status = tasks_kfunc_map_insert(task); in insert_lookup_task()
27 return tasks_kfunc_map_value_lookup(task); in insert_lookup_task()
32 int BPF_PROG(task_kfunc_acquire_untrusted, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
37 v = insert_lookup_task(task); in BPF_PROG()
42 acquired = bpf_task_acquire(v->task); in BPF_PROG()
53 int BPF_PROG(task_kfunc_acquire_fp, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
69 int BPF_PROG(task_kfunc_acquire_unsafe_kretprobe, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
74 acquired = bpf_task_acquire(task); in BPF_PROG()
84 int BPF_PROG(task_kfunc_acquire_unsafe_kretprobe_rcu, struct task_struct *task, u64 clone_flags) in BPF_PROG() argument
[all …]
Drcu_read_lock.c32 struct task_struct *task; in get_cgroup_id() local
35 task = bpf_get_current_task_btf(); in get_cgroup_id()
36 if (task->pid != target_pid) in get_cgroup_id()
41 cgroups = task->cgroups; in get_cgroup_id()
53 struct task_struct *task, *real_parent; in task_succ() local
57 task = bpf_get_current_task_btf(); in task_succ()
58 if (task->pid != target_pid) in task_succ()
63 real_parent = task->real_parent; in task_succ()
82 struct task_struct *task, *real_parent; in no_lock() local
85 task = bpf_get_current_task_btf(); in no_lock()
[all …]
/kernel/linux/linux-5.10/include/asm-generic/
Dsyscall.h12 * and only when the caller is sure that the task of interest
23 * syscall_get_nr - find what system call a task is executing
24 * @task: task of interest, must be blocked
25 * @regs: task_pt_regs() of @task
27 * If @task is executing a system call or is at system call
29 * If @task is not executing a system call, i.e. it's blocked
36 * It's only valid to call this when @task is known to be blocked.
38 int syscall_get_nr(struct task_struct *task, struct pt_regs *regs);
42 * @task: task of interest, must be in system call exit tracing
43 * @regs: task_pt_regs() of @task
[all …]
/kernel/linux/linux-5.10/drivers/scsi/pm8001/
Dpm8001_sas.c45 * pm8001_find_tag - from sas task to find out tag that belongs to this task
46 * @task: the task sent to the LLDD
47 * @tag: the found tag associated with the task
49 static int pm8001_find_tag(struct sas_task *task, u32 *tag) in pm8001_find_tag() argument
51 if (task->lldd_task) { in pm8001_find_tag()
53 ccb = task->lldd_task; in pm8001_find_tag()
63 * @tag: the found tag associated with the task
72 * pm8001_tag_alloc - allocate a empty tag for task used.
294 * pm8001_task_prep_smp - the dispatcher function, prepare data for smp task
296 * @ccb: the ccb which attached to smp task
[all …]
/kernel/linux/linux-6.6/kernel/bpf/
Dtask_iter.c38 struct task_struct *task, *next_task; in task_group_seq_get_next() local
48 task = get_pid_task(pid, PIDTYPE_TGID); in task_group_seq_get_next()
49 if (!task) in task_group_seq_get_next()
55 return task; in task_group_seq_get_next()
60 * same for task_seq_start() to pick up the correct task. in task_group_seq_get_next()
64 task = get_pid_task(pid, PIDTYPE_PID); in task_group_seq_get_next()
66 return task; in task_group_seq_get_next()
73 task = get_pid_task(pid, PIDTYPE_PID); in task_group_seq_get_next()
74 if (!task) in task_group_seq_get_next()
78 if (!pid_alive(task)) { in task_group_seq_get_next()
[all …]
/kernel/linux/linux-6.6/drivers/scsi/aic94xx/
Daic94xx_tmf.c3 * Aic94xx Task Management Functions
214 static int asd_clear_nexus_tag(struct sas_task *task) in asd_clear_nexus_tag() argument
216 struct asd_ha_struct *asd_ha = task->dev->port->ha->lldd_ha; in asd_clear_nexus_tag()
217 struct asd_ascb *tascb = task->lldd_task; in asd_clear_nexus_tag()
221 memcpy(scb->clear_nexus.ssp_task.lun, task->ssp_task.LUN, 8); in asd_clear_nexus_tag()
223 if (task->dev->tproto) in asd_clear_nexus_tag()
225 task->dev->lldd_dev); in asd_clear_nexus_tag()
229 static int asd_clear_nexus_index(struct sas_task *task) in asd_clear_nexus_index() argument
231 struct asd_ha_struct *asd_ha = task->dev->port->ha->lldd_ha; in asd_clear_nexus_index()
232 struct asd_ascb *tascb = task->lldd_task; in asd_clear_nexus_index()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/aic94xx/
Daic94xx_tmf.c3 * Aic94xx Task Management Functions
214 static int asd_clear_nexus_tag(struct sas_task *task) in asd_clear_nexus_tag() argument
216 struct asd_ha_struct *asd_ha = task->dev->port->ha->lldd_ha; in asd_clear_nexus_tag()
217 struct asd_ascb *tascb = task->lldd_task; in asd_clear_nexus_tag()
221 memcpy(scb->clear_nexus.ssp_task.lun, task->ssp_task.LUN, 8); in asd_clear_nexus_tag()
223 if (task->dev->tproto) in asd_clear_nexus_tag()
225 task->dev->lldd_dev); in asd_clear_nexus_tag()
229 static int asd_clear_nexus_index(struct sas_task *task) in asd_clear_nexus_index() argument
231 struct asd_ha_struct *asd_ha = task->dev->port->ha->lldd_ha; in asd_clear_nexus_index()
232 struct asd_ascb *tascb = task->lldd_task; in asd_clear_nexus_index()
[all …]
/kernel/linux/linux-6.6/include/asm-generic/
Dsyscall.h12 * and only when the caller is sure that the task of interest
23 * syscall_get_nr - find what system call a task is executing
24 * @task: task of interest, must be blocked
25 * @regs: task_pt_regs() of @task
27 * If @task is executing a system call or is at system call
29 * If @task is not executing a system call, i.e. it's blocked
36 * It's only valid to call this when @task is known to be blocked.
38 int syscall_get_nr(struct task_struct *task, struct pt_regs *regs);
42 * @task: task of interest, must be in system call exit tracing
43 * @regs: task_pt_regs() of @task
[all …]
/kernel/linux/linux-6.6/kernel/
Dtask_work.c19 * task_work_add - ask the @task to execute @work->func()
20 * @task: the task which should run the callback
22 * @notify: how to notify the targeted task
24 * Queue @work for task_work_run() below and notify the @task if @notify
28 * task and run the task_work, regardless of whether the task is currently
31 * reschedule IPI to force the targeted task to reschedule and run task_work.
33 * task_work be run as soon as possible, just whenever the task enters the
35 * @TWA_RESUME work is run only when the task exits the kernel and returns to
38 * current @task and if the current context is NMI.
40 * Fails if the @task is exiting/exited and thus it can't process this @work.
[all …]
/kernel/linux/linux-5.10/arch/nds32/include/asm/
Dsyscall.h14 * syscall_get_nr - find what system call a task is executing
15 * @task: task of interest, must be blocked
16 * @regs: task_pt_regs() of @task
18 * If @task is executing a system call or is at system call
20 * If @task is not executing a system call, i.e. it's blocked
27 * It's only valid to call this when @task is known to be blocked.
30 syscall_get_nr(struct task_struct *task, struct pt_regs *regs) in syscall_get_nr() argument
37 * @task: task of interest, must be in system call exit tracing
38 * @regs: task_pt_regs() of @task
40 * It's only valid to call this when @task is stopped for system
[all …]
/kernel/linux/linux-6.6/scripts/gdb/linux/
Dtasks.py4 # task & thread tools
43 for task in task_lists():
44 if int(task['pid']) == pid:
45 return task
50 """Find Linux task by PID and return the task_struct variable.
59 task = get_task_by_pid(pid)
60 if task:
61 return task.dereference()
63 raise gdb.GdbError("No task of PID " + str(pid))
76 gdb.write("{:>10} {:>12} {:>7}\n".format("TASK", "PID", "COMM"))
[all …]

12345678910>>...197