get_buf_addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… get_buf_addr β€” kernel API manual, but make it make sense

okay so bestie, welcome to get_buf_addr(9) β€” yes that's the section 9, kernel API manual energy, we're in the kernel internals now and honestly? iconic of you to show up. πŸŽ€


✨ NAME ✨

get_buf_addr β€” returns the DMA buffer address of a software descriptor. that's the whole gig. she's a getter. she gets. periodt. πŸ’–


🌸 SYNOPSIS 🌸

dma_addr_t get_buf_addr (const struct rx_sw_desc *sdesc );

like literally one argument, one return value, no drama. she's low maintenance. πŸ¦‹


🫢 ARGUMENTS 🫢

  • sdesc β€” pointer to the software buffer descriptor. that's the lil struct you're handing over so she can do her thing πŸ’…

πŸ”₯ DESCRIPTION πŸ”₯

so what she actually does: she returns the DMA buffer address of a software descriptor β€” and the important part, the part you cannot skip, is that she's stripping out our low-order flag bits while doing it. 🧚

like, the address is in there, but it's got flags chilling in the low bits, and she's the one who knows how to separate the address from the gossip. no cap, that's the whole function. ✨


πŸ‘‘ SEE ALSO πŸ‘‘

first up, the source file herself:

  • Kernel file ./drivers/net/ethernet/chelsio/cxgb4vf/sge.c

and then the entire extended friend group β€” every single one of these, in order, because we don't do "etc." in this house:

that's the whole group chat and they all ate. πŸ“


ngl bestie, this one's short and sweet β€” but the low-order flag bits thing is the whole personality, so don't forget it. πŸ™ˆ

okay that's the page!! this gem lives in ./drivers/net/ethernet/chelsio/cxgb4vf/sge.c and the date on it is October 2026 β€” a whole month, a whole vibe. mwah, go read is_buf_mapped(9) next, ily πŸ’œπŸŒˆβ­

πŸ“¦ where this page comes from