is_buf_mapped(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… is_buf_mapped β€” Kernel API Manual ✨

okay bestie, welcome to the is_buf_mapped(9) page, from the Kernel API Manual (yes the whole manual, she's fancy like that πŸŽ€). This is the "is this buffer, like, actually mapped for DMA?" check. tiny function, huge main-character energy, let's go πŸ¦‹


🌸 NAME 🌸

is_buf_mapped β€” is buffer mapped for DMA? πŸ’­


✨ SYNOPSIS ✨

bool is_buf_mapped (const struct rx_sw_desc *sdesc );

that's it. that's the whole signature. she's short and she knows it 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • sdesc β€” pointer to the software buffer descriptor πŸ’– like, the descriptor's softer, software-side self, not the hardware one. this is the thing you're asking the question about.

πŸ’… DESCRIPTION πŸ’…

so here's the vibe check πŸ”: this function determines whether the buffer associated with a software descriptor is mapped for DMA or not.

that's the whole personality. you hand her an sdesc, she tells you if that buffer's DMA-mapped. no drama, no side quests, just a bool. iconic behavior honestly πŸ‘‘

ngl it's giving "tiny helper that keeps the whole rx path from falling apart" and we love her for it 😭✨


πŸ¦‹ SEE ALSO πŸ¦‹

bestie, the friend group is HUGE. she literally knows everyone in ./drivers/net/ethernet/chelsio/cxgb4vf/sge.c β€” that's the kernel file she lives in 🏠 (and yes, the manpage footer just calls it ./drivers/net/ethernet/chelsio... because life is short πŸ’€)


πŸ’€ real talk: don't @ me about the truncated-looking footer path, that's literally just how the page renders it. ./drivers/net/ethernet/chelsio... and we move on 😌

and that's the whole page, bestie!! source is that same chelsio cxgb4vf corner of the kernel (./drivers/net/ethernet/chelsio...), dated October 2026 β€” so she's fresh, she's current, she's thriving πŸŒˆπŸ‘‘ ok bye, go map some buffers, ily πŸ«ΆπŸ’–

πŸ“¦ where this page comes from