xudc_dma_receive(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xudc_dma_receive(9) β€” the Kernel API Manual tea β˜•βœ¨

okay so bestie, welcome to the Kernel API Manual entry for xudc_dma_receive(9) β€” yes the whole manual is literally named "Kernel API Manual" and this one page is your new hyperfixation. let's get into it 🫢


✨ NAME ✨

xudc_dma_receive β€” receives OUT data using DMA. that's it, that's the vibe. it pulls data in, DMA does the heavy lifting, we stan a low-effort queen πŸ’…


🌸 SYNOPSIS 🌸

int xudc_dma_receive (struct xusb_ep *ep , struct xusb_req *req , u8
*buffer , u32 length );

yes the line break in the middle is real, it's giving "wrapped because terminal said no" 😭 copy it exactly, don't @ me.


πŸŽ€ ARGUMENTS πŸŽ€

  • ep β€” pointer to the usb device endpoint structure. like, the endpoint's whole personality lives here πŸ”₯
  • req β€” pointer to the usb request structure. the request in question, the main character of this transaction πŸ‘‘
  • buffer β€” pointer to storage buffer of received data. this is where the data actually lands, the cute little landing pad πŸ¦‹
  • length β€” number of bytes to receive. how many bytes we're pulling in, fr fr β€” count them, bestie πŸ“

⭐ RETURN ⭐

  • 0 on success β€” slay, we ate πŸ’–
  • -EAGAIN if no buffer is free β€” literally the "try again later babe" of error codes 😭
  • an error code on failure β€” when things go sideways, it tells you with a code, no guessing πŸ™ˆ

🌈 DESCRIPTION 🌈

this function receives data using DMA. that's the whole thing β€” it takes the data-in path and lets DMA handle the transfer instead of making the CPU do it by hand. iconic behaviour, no notes ✨


🧚 SEE ALSO 🧚

first up, the source file itself: Kernel file ./drivers/usb/gadget/udc/udc-xilinx.c β€” go read her, she's the blueprint πŸ“–

and literally all her friends (in order, because we're respectful like that):

bestie that's the whole friend group, no cap. every single one of them is a (9) manpage and every single one is invited to the group chat πŸ’€πŸ’–

and that's the page!! mwah πŸ’‹ this lil entry lives over in ./drivers/usb/gadget/udc and it's dated October 2026 β€” so yeah, mark your calendar, screenshot it, put it on the fridge πŸŽ€βœ¨ xoxo, your kernel bestie πŸ¦‹

πŸ“¦ where this page comes from