Sound Open Firmware
Loading...
Searching...
No Matches
task Struct Reference

Core task structure managed by SOF schedulers. More...

#include <zephyr/include/rtos/task.h>

Collaboration diagram for task:

Data Fields

uint64_t start
 Scheduler/domain-specific start state (e.g.
 
const struct sof_uuid_entry * uid
 UUID identifying the task or associated component.
 
uint16_t type
 Scheduler type identifier (SOF_SCHEDULE_*).
 
int16_t priority
 Priority of the task (lower values run first).
 
uint16_t core
 Execution core ID affinity.
 
uint16_t flags
 Custom task flags.
 
struct schedule_data * sch
 Pointer to scheduler instance bound to this task.
 
enum task_state state
 Current task lifecycle state.
 
void * data
 Custom context pointer passed to task operations.
 
struct list_item list
 List node linking task into scheduler run queue.
 
void * priv_data
 Scheduler-specific private task context.
 
struct task_ops ops
 Task operations callbacks table.
 
struct k_work_delayable z_delayed_work
 Zephyr delayable work item (used by legacy EDF).
 
uint32_t cycles_sum
 Cumulative execution cycles.
 
uint32_t cycles_max
 Maximum cycle count recorded in a single run.
 
uint32_t cycles_cnt
 Number of completed execution runs.
 

Detailed Description

Core task structure managed by SOF schedulers.

Field Documentation

◆ core

uint16_t task::core

Execution core ID affinity.

◆ cycles_cnt

uint32_t task::cycles_cnt

Number of completed execution runs.

◆ cycles_max

uint32_t task::cycles_max

Maximum cycle count recorded in a single run.

◆ cycles_sum

uint32_t task::cycles_sum

Cumulative execution cycles.

◆ data

void* task::data

Custom context pointer passed to task operations.

◆ flags

uint16_t task::flags

Custom task flags.

◆ list

struct list_item task::list

List node linking task into scheduler run queue.

◆ ops

struct task_ops task::ops

Task operations callbacks table.

◆ priority

int16_t task::priority

Priority of the task (lower values run first).

◆ priv_data

void* task::priv_data

Scheduler-specific private task context.

◆ sch

struct schedule_data* task::sch

Pointer to scheduler instance bound to this task.

◆ start

uint64_t task::start

Scheduler/domain-specific start state (e.g.

absolute next-run tick timestamp in LL).

◆ state

enum task_state task::state

Current task lifecycle state.

◆ type

uint16_t task::type

Scheduler type identifier (SOF_SCHEDULE_*).

◆ uid

const struct sof_uuid_entry* task::uid

UUID identifying the task or associated component.

◆ z_delayed_work

struct k_work_delayable task::z_delayed_work

Zephyr delayable work item (used by legacy EDF).


The documentation for this struct was generated from the following file: