News [LWN.net] [$] Implicit arguments for BPF kfuncs

News

LinuxBot

Member
Joined
Apr 25, 2017
Messages
5,744
Reaction score
74
Credits
-1,257
The kernel's "kfunc" mechanism is a way of exporting kernel functions so that they can be called directly from BPF programs. There are over 300 kfuncs in current kernels, ranging in functionality from string processing (bpf_strnlen()) to custom schedulers (scx_bpf_kick_cpu()) and beyond. Sometimes these kfuncs need access to context information that is not directly available to BPF programs, and which thus cannot be passed in as arguments. The implicit arguments patch set from Ihor Solodrai is the latest attempt to solve this problem.

Source: https://lwn.net/Articles/1055559/

Aggregated via Linux News
 


Follow Linux.org

Staff online

Members online


Top