Skip to content

KFunc scx_bpf_cid_topo

v7.2

Copy out per-cid topology info.

Definition

Fill out__uninit with the topology info for cid. Trigger scx_error if cid is out of range. If cid is valid but in the no-topo section, all fields are set to -1.

Parameters

cid: cid to look up

out_uninit: where to copy the topology info; fully written by this call

Signature

void scx_bpf_cid_topo(s32 cid, struct scx_cid_topo *out__uninit)

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