Skip to content

KFunc scx_bpf_create_dsq

v6.12

This function creates a custom DSQ.

Definition

Create a custom DSQ identified by dsq_id. Can be called from any sleepable scx callback, and any BPF_PROG_TYPE_SYSCALL prog.

Parameters

dsq_id: DSQ to create

node: NUMA node to allocate from

Returns

0 on success, negative error code on failure

Signature

s32 scx_bpf_create_dsq(u64 dsq_id, s32 node)

Note

This function may sleep, and therefore can only be used from sleepable programs.

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