virt_to_netmem(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ virt_to_netmem(9) πŸŽ€

okay so bestie, welcome to the Kernel API Manual πŸ’– this page is virt_to_netmem(9), and it’s literally the glow-up from a virtual memory pointer to a netmem reference. it’s giving β€œpointer makeover” and we’re obsessed. no cap.

✨ NAME ✨

virt_to_netmem β€” convert virtual memory pointer to a netmem reference. that’s the whole vibe: pointer goes in, netmem reference comes out. slay.

🫢 SYNOPSIS 🫢

netmem_ref virt_to_netmem (const void *data );

πŸ’– ARGUMENTS πŸ’–

  • data β€” host memory pointer to convert. this is the main character argument, fr fr. hand over the host memory pointer and let the function do its thing.

🌸 RETURN 🌸

you get back a netmem reference to the page backing this virtual address. that’s the return value, and yes it’s iconic.

πŸ‘‘ SEE ALSO πŸ‘‘

also in the mix: the kernel file ./include/net/netmem.h, plus the whole squad:

go off, iykyk πŸ’…


xoxo, your kernel bestie πŸŽ€ source/version: ./include/net β€’ date: October 2026 ✨

πŸ“¦ where this page comes from