hid_bpf_get_data(9)
hid_bpf_get_data(9)
okay so this one is from the Kernel API Manual, and it's literally about getting a kernel memory pointer. bestie, let's go π
π NAME π
hid_bpf_get_data β get the kernel memory pointer associated with the context @ctx
β¨ SYNOPSIS β¨
__bpf_kfunc __u8 * hid_bpf_get_data (struct hid_bpf_ctx *ctx , unsigned
int offset , const size_t rdwr_buf_size );
π ARGUMENTS π
ctxβ the HID-BPF context π¦offsetβ the offset within the memoryrdwr_buf_sizeβ theconstsize of the buffer
π¦ DESCRIPTION π¦
So basically: it returns NULL on error, and an __u8 memory pointer on success. that's the whole vibe check, no cap β¨
πΈ SEE ALSO πΈ
- Kernel file
./drivers/hid/bpf/hid_bpf_dispatch.c hid_bpf_allocate_context(9)hid_bpf_release_context(9)hid_bpf_hw_request(9)hid_bpf_hw_output_report(9)hid_bpf_try_input_report(9)hid_bpf_input_report(9)
mwah π this page is from ./drivers/hid/bpf, dated October 2026. iykyk π«Ά
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms