Skip to content

KFunc scx_bpf_task_cpu

v6.12

This functions returns the CPU a task is currently associated with.

Definition

Parameters

p: task of interest

Signature

s32 scx_bpf_task_cpu(const struct task_struct *p)

Usage

Docs could be improved

This part of the docs is incomplete, contributions are very welcome

Program types

The following program types can make use of this kfunc:

Example

Docs could be improved

This part of the docs is incomplete, contributions are very welcome