Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.42 KB

bpf_cpumask_test_and_clear_cpu.md

File metadata and controls

45 lines (31 loc) · 1.42 KB
title description
KFunc 'bpf_cpumask_test_and_clear_cpu'
This page documents the 'bpf_cpumask_test_and_clear_cpu' eBPF kfunc, including its defintion, usage, program types that can use it, and examples.

KFunc bpf_cpumask_test_and_clear_cpu

:octicons-tag-24: v6.3

Atomically test and clear a CPU in a BPF cpumask.

Definition

cpu: The CPU being cleared and queried for. cpumask: The BPF cpumask being cleared and queried for containing a CPU.

Return:

  • true - cpu is set in the cpumask
  • false - cpu was not set in the cpumask, or cpu is invalid.

#!c bool bpf_cpumask_test_and_clear_cpu(u32 cpu, struct bpf_cpumask *cpumask)

Usage

!!! example "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

!!! example "Docs could be improved" This part of the docs is incomplete, contributions are very welcome