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
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_obj_new_impl
bpf_percpu_obj_new_impl
bpf_obj_drop_impl
bpf_percpu_obj_drop_impl
bpf_refcount_acquire_impl
bpf_list_push_front_impl
bpf_list_push_back_impl
bpf_list_pop_front
bpf_list_pop_back
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
Socket related kfuncs
Network crypto kfuncs
bpf_crypto_ctx_create
bpf_crypto_ctx_acquire
bpf_crypto_ctx_release
bpf_crypto_decrypt
bpf_crypto_encrypt
BBR congestion control kfuncs
bbr_init
bbr_main
bbr_sndbuf_expand
bbr_undo_cwnd
bbr_cwnd_event
bbr_ssthresh
bbr_min_tso_segs
bbr_set_state
Cubic TCP congestion control kfuncs
cubictcp_init
cubictcp_recalc_ssthresh
cubictcp_cong_avoid
cubictcp_state
cubictcp_cwnd_event
cubictcp_acked
DC TCP congestion control kfuncs
TCP Reno congestion control kfuncs
Foo over UDP KFuncs
SYN Cookie KFuncs
Connection tracking KFuncs
bpf_ct_set_nat_info
bpf_xdp_ct_alloc
bpf_xdp_ct_lookup
bpf_skb_ct_alloc
bpf_skb_ct_lookup
bpf_ct_insert_entry
bpf_ct_release
bpf_ct_set_timeout
bpf_ct_change_timeout
bpf_ct_set_status
bpf_ct_change_status
XDP KFuncs
XFRM KFuncs
HID Kfuncs
hid_bpf_get_data
hid_bpf_attach_prog
hid_bpf_allocate_context
hid_bpf_release_context
hid_bpf_hw_request
hid_bpf_hw_output_report
hid_bpf_input_report
hid_bpf_try_input_report