xilinx_dma_get_metadata_ptr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xilinx_dma_get_metadata_ptr(9) β€” from the Kernel API Manual, bestie πŸŽ€

okay so listen. this is a page straight out of the Kernel API Manual, and it's about one tiny little function in the Xilinx DMA corner of the kernel. it's not scary, i promise. it literally just hands you a pointer and tells you how much metadata fits. that's it. that's the whole vibe. πŸ¦‹


✨ NAME ✨

xilinx_dma_get_metadata_ptr β€” populate the metadata pointer and the payload length, bestie. both. at once. iconic behavior honestly πŸ‘‘


🌸 SYNOPSIS 🌸

void * xilinx_dma_get_metadata_ptr (struct dma_async_tx_descriptor *tx ,
       size_t *payload_len , size_t *max_len );

like, it returns a void *, it takes a tx, and it wants two size_t *s to shove numbers into. she's lowkey simple and i'm obsessed πŸ’–


πŸ’… ARGUMENTS πŸ’…

  • tx β€” the async transaction descriptor. this is the thing you're asking about. main character energy, fr fr.
  • payload_len β€” the metadata payload length. the actual amount of metadata you've got going on. ✨
  • max_len β€” the metadata max length. the ceiling. the limit. the "how much room is there even" number. πŸ“

πŸ”₯ RETURN πŸ”₯

the app field pointer. that's the answer. that's what you get back. go wild 🫢

ngl this is the entire payoff of the function β€” one pointer, no drama, no cap πŸ’€

🧚 SEE ALSO 🧚

okay bestie this list is LONG but i'm not skipping a single one, we're doing the whole thing. grab a snack πŸ“

first up, the kernel file itself:

  • ./drivers/dma/xilinx/xilinx_dma.c

and now the whole friend group (iykyk):

see? all of them. every single one. we ate that list and left no crumbs πŸ’€βœ¨


and that's the whole page, bestie!! 🫢 this little cutie lives under ./drivers/dma/xilinx, and this particular edition of the page is dated October 2026 β€” so like, future vibes only. go forth and get that metadata pointer, you absolute icon πŸ‘‘πŸ’–

πŸ“¦ where this page comes from