cdns3_ep_onc...ffer_reserve(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ cdns3_ep_onchip_buffer_reserve(9) β€” the kernel API manual πŸ’…

okay so bestie, welcome to the cdns3_ep_onc...ffer_reserve(9) page from the Kernel API Manual πŸ¦‹ this one's a little cutie from the USB gadget world and honestly she's giving "gatekeeper of the on-chip buffers" energy πŸ‘‘


🌸 NAME 🌸

cdns3_ep_onchip_buffer_reserve β€” literally just "try to reserve onchip buf for EP" πŸ’– that's it, that's the whole vibe.


✨ SYNOPSIS ✨

int cdns3_ep_onchip_buffer_reserve (struct cdns3_device *priv_dev , int
size , int is_in );

three args, one int coming back at you, no cap πŸ”₯


πŸŽ€ ARGUMENTS πŸŽ€

  • priv_dev β€” the extended gadget object 🫢 like, the whole device situation
  • size β€” the size (KB) for EP would like to allocate πŸ“ yes KB, keep that in mind bestie, don't come in here thinking bytes
  • is_in β€” endpoint direction 🌈 which way the data's headed

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea β˜• this function is not the one actually doing the reserving. the real reservation will occur during write to EP_CFG register β€” so this one is basically the vibe check ✨ it's used to check if the size reservation is allowed πŸ‘€

think of her as the bouncer at the club, not the one handing out the drinks girlie πŸ’…

she's gonna Return 0 if the required size can met or negative value on failure 😭 so yeah, 0 = we slay, negative = we do not slay, check your size again bestie 🧚


πŸ”₯ SEE ALSO πŸ”₯

the kernel file lives at ./drivers/usb/cdns3/cdns3-gadget.c πŸ“ and here's the whole friend group, everybody in the group chat, not a single one left out πŸ’–:


ok real talk before you go 🫢 this page is filed under ./drivers/usb/cdns3 and it's dated October 2026, and the whole thing is literally called cdns3_ep_onc...ffer_reserve(9) β€” yes the title is truncated with ..., no that's not a typo, that's just how the manpage renders it πŸ’€ go read the others, ily, bye πŸ’œβœ¨
πŸ“¦ where this page comes from