bpf_dynptr_from_skb_meta(9)
π¦ bpf_dynptr_from_skb_meta π¦
okay bestie, welcome to the Kernel API Manual β¨ this page is literally about setting up a dynptr so you can vibe with skb metadata. no cap π
πΈ NAME πΈ
bpf_dynptr_from_skb_meta β initialize a dynptr to the skb metadata area. periodt.
π SYNOPSIS π
__bpf_kfunc int bpf_dynptr_from_skb_meta (struct __sk_buff *skb_ , u64
flags , struct bpf_dynptr *ptr__uninit );
π ARGUMENTS π
skb_β the socket buffer carrying the metadata. main character energy fr π«Άflagsβ future use, must be zero. no funny business, bestie π«ptr__uninitβ the dynptr to initialize. get it ready β¨
π DESCRIPTION π
Set up a dynptr for access to the metadata area earlier allocated from the XDP context with bpf_xdp_adjust_meta. This serves as an alternative to __sk_buff->data_meta. lowkey iconic, iykyk π
π₯ RETURN π₯
0β dynptr ready to use. slay β¨-EINVALβ invalid flags, dynptr set to null. not the vibe, but important π«
π SEE ALSO π
okay so the whole squad is here, bestie π
- Kernel file
./net/core/filter.c sk_filter_trim_cap(9)bpf_convert_filter(9)bpf_check_classic(9)sk_filter_release_rcu(9)sk_filter_release(9)bpf_prog_create(9)bpf_prog_create_from_user(9)sk_attach_filter(9)xdp redirect(9)bpf_skb_meta_pointer(9)bpf_xdp_pull_data(9)bpf_icmp_send(9)
mwah π β source/version ./net/core, date October 2026, bestie π«Ά
π¦ 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