Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.36 KB

bpf_cpumask_equal.md

File metadata and controls

47 lines (32 loc) · 1.36 KB
title description
KFunc 'bpf_cpumask_equal'
This page documents the 'bpf_cpumask_equal' eBPF kfunc, including its defintion, usage, program types that can use it, and examples.

KFunc bpf_cpumask_equal

:octicons-tag-24: v6.3

Check two cpumasks for equality.

Definition

src1: The first input. src2: The second input.

Return:

  • true - src1 and src2 have the same bits set.
  • false - src1 and src2 differ in at least one bit.

struct bpf_cpumask pointers may be safely passed to src1 and src2.

#!c bool bpf_cpumask_equal(const struct cpumask *src1, const struct cpumask *src2)

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