Skip to content

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, still defensive programming techniques are 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 PKCS#7 signed data against keys from a key-ring.

CPU mask KFuncs

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 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 dynamic pointers

Preemption KFuncs

Work-queue KFuncs

Misc KFuncs

XDP metadata kfuncs

XDP/SKB dynamic pointer 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

Connection tracking KFuncs

XDP KFuncs

XFRM KFuncs

HID Kfuncs

KProbe session Kfuncs