KFuncs (Linux)
Stability guarantees
Helper functions enjoy the stability guarantee offered by the user API, as explained in documentation about stability guarantees of the helper functions. But KFuncs do not enjoy those same guarantees.
Although KFuncs are not expected to be very volatile, defensive programming techniques are still advised. Otherwise helper functions should be preferred over KFuncs.
cGroup resource statistic KFuncs
These KFuncs are used to update or flush cGroup resource statistics efficiently.
Key signature verification KFuncs
These KFuncs are used to verify
File related kfuncs
CPU mask KFuncs
bpf_cpumask_create
bpf_cpumask_release
bpf_cpumask_acquire
bpf_cpumask_first
bpf_cpumask_first_zero
bpf_cpumask_first_and
bpf_cpumask_set_cpu
bpf_cpumask_clear_cpu
bpf_cpumask_test_cpu
bpf_cpumask_test_and_set_cpu
bpf_cpumask_test_and_clear_cpu
bpf_cpumask_setall
bpf_cpumask_clear
bpf_cpumask_and
bpf_cpumask_or
bpf_cpumask_xor
bpf_cpumask_equal
bpf_cpumask_intersects
bpf_cpumask_subset
bpf_cpumask_empty
bpf_cpumask_full
bpf_cpumask_copy
bpf_cpumask_any_distribute
bpf_cpumask_any_and_distribute
bpf_cpumask_weight
Generic KFuncs
Object allocation KFuncs
A set of KFuncs to allocate and deallocate custom objects for the purposes of building custom data structures.
BPF Arena KFuncs
KFuncs used to allocate and free pages from an arena.
BPF task KFuncs
Kfuncs used to acquire and release task reference.
BPF cGroup KFuncs
Kfuncs used to create and modify red-black trees.
Kfuncs for acquiring and releasing cGroup references
These kfuncs allow you to take a reference to a cGroup and store them as kptrs in maps.
Kfuncs for querying tasks
KFuncs for memory allocator inspection
Kfuncs for casting pointers
Kfuncs for taking and releasing RCU read locks
Kfuncs for dynamic pointer slices
Kfuncs for open coded numeric iterators
Kfuncs for open coded virtual memory area iterators
Kfuncs for open coded task cGroup iterators
Kfuncs for open coded cGroup iterators
Kfuncs for open coded task iterators
Kfuncs for bits
Kfuncs for slab memory allocation iterators
Kfuncs for sched_ext dispatch queue iterators
Kfuncs for dynamic pointers
Preemption KFuncs
Work-queue KFuncs
Misc KFuncs
XDP metadata kfuncs
XDP/SKB dynamic pointer kfuncs
Socket related kfuncs
Network crypto kfuncs
BBR congestion control kfuncs
Cubic TCP congestion control kfuncs
DC TCP congestion control kfuncs
TCP Reno congestion control kfuncs
Foo over UDP KFuncs
SYN Cookie KFuncs
Connection tracking KFuncs
XDP KFuncs
XFRM KFuncs
HID Kfuncs
KProbe session Kfuncs
Memory probe Kfuncs
IRQ Kfuncs
sched_ext Kfuncs
Dispatch Queue Kfuncs
scx_bpf_create_dsq
scx_bpf_destroy_dsq
scx_bpf_dsq_nr_queued
scx_bpf_dsq_insert
(scx_bpf_dispatch
)scx_bpf_dsq_insert_vtime
(scx_bpf_dispatch_vtime
)scx_bpf_dsq_move_to_local
(scx_bpf_consume
)scx_bpf_dsq_move_set_slice
(scx_bpf_dispatch_from_dsq_set_slice
)scx_bpf_dsq_move_set_vtime
(scx_bpf_dispatch_from_dsq_set_vtime
)scx_bpf_dsq_move
(scx_bpf_dispatch_from_dsq
)scx_bpf_dsq_move_vtime
(scx_bpf_dispatch_vtime_from_dsq
)scx_bpf_reenqueue_local