Home
last modified time | relevance | path

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

12345678910>>...122

/openbmc/qemu/io/
H A Dtask.c2 * QEMU I/O task
22 #include "io/task.h"
56 QIOTask *task; in qio_task_new() local
58 task = g_new0(QIOTask, 1); in qio_task_new()
60 task->source = source; in qio_task_new()
62 task->func = func; in qio_task_new()
63 task->opaque = opaque; in qio_task_new()
64 task->destroy = destroy; in qio_task_new()
65 qemu_mutex_init(&task->thread_lock); in qio_task_new()
66 qemu_cond_init(&task->thread_cond); in qio_task_new()
[all …]
/openbmc/linux/net/sunrpc/
H A 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 …]
H A 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 …]
H A 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 …]
/openbmc/linux/drivers/infiniband/sw/rxe/
H A 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 …]
/openbmc/bmcweb/redfish-core/schema/dmtf/installed/
H A DTask_v1.xml4 <!--# Redfish Schema: Task v1.7.4 -->
40 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Task">
44 <EntityType Name="Task" BaseType="Resource.v1_0_0.Resource" Abstract="true">
45 <Annotation Term="OData.Description" String="The `Task` schema contains information about a task that the Redfish task service schedules or executes. Tasks represent operations that take more time than a client typically wants to wait."/>
46 <Annotation Term="OData.LongDescription" String="This resource contains a task for a Redfish implementation."/>
60 <Annotation Term="OData.Description" String="Use the `DELETE` operation to remove a task."/>
72 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Task.v1_0_0">
76 <EntityType Name="Task" BaseTyp
[all...]
/openbmc/bmcweb/redfish-core/schema/dmtf/csdl/
H A DTask_v1.xml4 <!--# Redfish Schema: Task v1.7.4 -->
40 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Task">
44 <EntityType Name="Task" BaseType="Resource.v1_0_0.Resource" Abstract="true">
45 …ion Term="OData.Description" String="The `Task` schema contains information about a task that the …
46 …<Annotation Term="OData.LongDescription" String="This resource contains a task for a Redfish imple…
60 … <Annotation Term="OData.Description" String="Use the `DELETE` operation to remove a task."/>
72 <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Task.v1_0_0">
76 <EntityType Name="Task" BaseType="Task.Task">
77 <Property Name="TaskState" Type="Task.v1_0_0.TaskState" Nullable="false">
79 <Annotation Term="OData.Description" String="The state of the task."/>
[all …]
/openbmc/openbmc/poky/bitbake/lib/toaster/toastergui/templates/
H A Dtask.html6 {% block title %} {{task.recipe.name}}_{{task.recipe.version}} {{task.task_name}} - {{build.target_…
9 <li>{{task.recipe.name}}_{{task.recipe.version}} {{task.task_name}}</li>
17 …<h1><a href="{%url 'recipe' build.pk task.recipe.pk %}">{{task.recipe.name}}_{{task.recipe.version…
21 <h2 {{ task|task_color:True }}>
22 {{task.get_outcome_display}}
23 <span class="glyphicon glyphicon-question-sign get-help" title="{{task.get_outcome_help}}"></i>
25 {%if task.task_executed %}
27 {% if task.logfile %}
29 href="{% url 'build_artifact' build.id 'tasklogfile' task.pk %}">
30 Download task log
[all …]
/openbmc/linux/drivers/scsi/libsas/
H A 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 …]
/openbmc/qemu/include/io/
H A Dtask.h2 * QEMU I/O task
26 typedef void (*QIOTaskFunc)(QIOTask *task,
29 typedef void (*QIOTaskWorker)(QIOTask *task,
39 * a public API which accepts a task callback:
42 * <title>Task function signature</title>
61 * <title>Task callback implementation</title>
63 * static void myobject_operation_notify(QIOTask *task,
67 * if (qio_task_propagate_error(task, &err)) {
71 * QMyObject *src = QMY_OBJECT(qio_task_get_source(task));
79 * task wants to set a timer to run once a second checking
[all …]
/openbmc/linux/drivers/gpu/drm/exynos/
H A 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 …]
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A 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 …]
H A 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 …]
/openbmc/linux/kernel/bpf/
H A 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 …]
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema/
H A DTask.v1_7_4.json2 "$id": "http://redfish.dmtf.org/schemas/v1/Task.v1_7_4.json",
3 "$ref": "#/definitions/Task",
55 …of URIs referencing the resources created as the result of the operation that produced this task.",
59 … the result of the operation that produced this task. Services shall set this property prior to t…
98 "description": "The HTTP and JSON payload details for this Task.",
99 …hall contain information detailing the HTTP and JSON payload information for executing this task.",
116 "description": "An array of HTTP headers that this task includes.",
120 …"longDescription": "This property shall contain an array of HTTP headers that this task includes.",
126 "description": "The HTTP operation to perform to execute this task.",
127 … "longDescription": "This property shall contain the HTTP operation to execute for this task.",
[all …]
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema-installed/
H A DTask.v1_7_4.json2 "$id": "http://redfish.dmtf.org/schemas/v1/Task.v1_7_4.json",
3 "$ref": "#/definitions/Task",
55 …of URIs referencing the resources created as the result of the operation that produced this task.",
59 … the result of the operation that produced this task. Services shall set this property prior to t…
98 "description": "The HTTP and JSON payload details for this Task.",
99 …hall contain information detailing the HTTP and JSON payload information for executing this task.",
116 "description": "An array of HTTP headers that this task includes.",
120 …"longDescription": "This property shall contain an array of HTTP headers that this task includes.",
126 "description": "The HTTP operation to perform to execute this task.",
127 … "longDescription": "This property shall contain the HTTP operation to execute for this task.",
[all …]
/openbmc/linux/drivers/scsi/aic94xx/
H A 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 …]
H A Daic94xx_task.c36 static int asd_map_scatterlist(struct sas_task *task, in asd_map_scatterlist() argument
40 struct asd_ascb *ascb = task->lldd_task; in asd_map_scatterlist()
45 if (task->data_dir == DMA_NONE) in asd_map_scatterlist()
48 if (task->num_scatter == 0) { in asd_map_scatterlist()
49 void *p = task->scatter; in asd_map_scatterlist()
51 task->total_xfer_len, in asd_map_scatterlist()
52 task->data_dir); in asd_map_scatterlist()
57 sg_arr[0].size = cpu_to_le32(task->total_xfer_len); in asd_map_scatterlist()
64 if (sas_protocol_ata(task->task_proto)) in asd_map_scatterlist()
65 num_sg = task->num_scatter; in asd_map_scatterlist()
[all …]
/openbmc/linux/include/asm-generic/
H A 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 …]
/openbmc/linux/kernel/
H A 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 …]
/openbmc/linux/scripts/gdb/linux/
H A 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 …]
/openbmc/linux/drivers/media/i2c/
H A Dsaa711x_regs.h77 /* Task independent global settings */
87 /* Task A definition */
134 /* Task B definition */
361 /* Task independent global settings: R_80_GLOBAL_CNTL_1 to R_8F_STATUS_INFO_SCALER */
383 /* Task A definition: R_90_A_TASK_HANDLING_CNTL to R_BF_A_VERT_LUMA_PHASE_OFF_11 */
384 /* Task A: Basic settings and acquisition window definition */
386 "Task A: Task handling control"},
388 "Task A: X port formats and configuration"},
390 "Task A: X port input reference signal definition"},
392 "Task A: I port output formats and configuration"},
[all …]
/openbmc/linux/rust/kernel/
H A Dtask.rs10 /// Returns the currently running task.
16 unsafe { &*$crate::task::Task::current() }
44 /// Getting the current task and storing it in some struct. The reference count is automatically
48 /// use kernel::{task::Task, types::ARef};
51 /// creator: ARef<Task>,
65 pub struct Task(pub(crate) Opaque<bindings::task_struct>); struct
67 // SAFETY: By design, the only way to access a `Task` is via the `current` function or via an
68 // `ARef<Task>` obtained through the `AlwaysRefCounted` impl. This means that the only situation in
69 // which a `Task` can be accessed mutably is when the refcount drops to zero and the destructor
71 unsafe impl Send for Task {} implementation
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/
H A Dbuild.py4 # Core code for function execution and task handling in the
64 """Base class for task events"""
78 self._message = "recipe %s: task %s: %s" % (d.getVar("PF"), t, self.getDisplayName())
83 def setTask(self, task): argument
84 self._task = task
89 task = property(getTask, setTask, None, "task property") variable in TaskBase
92 """Task execution started"""
98 """Task execution completed"""
101 """Task execution failed"""
103 def __init__(self, task, fn, logfile, metadata, errprinted = False): argument
[all …]
/openbmc/linux/arch/powerpc/kernel/
H A Dsignal.h39 struct task_struct *task);
41 struct task_struct *task);
42 extern unsigned long copy_vsx_from_user(struct task_struct *task,
44 extern unsigned long copy_ckvsx_from_user(struct task_struct *task,
46 unsigned long copy_fpr_to_user(void __user *to, struct task_struct *task);
47 unsigned long copy_ckfpr_to_user(void __user *to, struct task_struct *task);
48 unsigned long copy_fpr_from_user(struct task_struct *task, void __user *from);
49 unsigned long copy_ckfpr_from_user(struct task_struct *task, void __user *from);
51 #define unsafe_copy_fpr_to_user(to, task, label) do { \ argument
52 struct task_struct *__t = task; \
[all …]

12345678910>>...122