Skip to content

KFunc scx_bpf_exit_bstr

v6.12

This function gracefully exits the BPF scheduler.

Definition

Indicate that the BPF scheduler wants to exit gracefully, and initiate ops disabling. Intended to be called through the scx_bpf_exit helper macro.

exit_code: Exit value to pass to user space via struct scx_exit_info.

fmt: error message format string

data: format string parameters packaged using ___bpf_fill macro

data__sz: data len, must end in '__sz' for the verifier

Signature

void scx_bpf_exit_bstr(s64 exit_code, char *fmt, long long unsigned int *data, u32 data__sz)

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