dma_request_chan(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dma_request_chan(9) β€” like, the Kernel API Manual one πŸŽ€

okay so bestie, welcome to the group chat where we talk about kernel APIs and I promise it's gonna slay. this one lives in the Kernel API Manual (yes, the whole manual, it's giving official) and it's about grabbing yourself a DMA channel. stay with me ✨


🌸 NAME 🌸

dma_request_chan β€” the "try to allocate an exclusive slave channel" girlie. she's exclusive, she's slave, and she's gonna try her best. periodt πŸ’…


✨ SYNOPSIS ✨

struct dma_chan * dma_request_chan (struct device *dev , const char
*name );

like, this is the whole vibe right here β€” one function, two args, returns a struct dma_chan *. no cap 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” pointer to the client device structure. like, the device that's asking for the channel. it's the main character in this transaction ngl πŸ‘‘
  • name β€” the slave channel name. just the name, bestie, a const char *, that's it πŸ¦‹

πŸ’– DESCRIPTION πŸ’–

so here's the tea: it returns a pointer to the appropriate DMA channel on success, or an error pointer. that's literally it. success? pointer to your channel, slay. failure? error pointer, and you're gonna have to check that with the usual IS_ERR-style energy. no exceptions, no hidden lore, that's the whole deal πŸ”₯

ngl the manpage does not say which error codes or anything extra, so don't come for me β€” this is the entire description and I'm not about to invent lore that isn't there πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹

okay this list is LONG and honestly iconic, so buckle up and let's go through the whole squad, no skipping, we respect every single one of them πŸ’œ

like, twenty-two whole references plus the kernel file?? that's a full friend group and every one of them ate 🌈⭐


mwah, that's the page! tysm for reading my little kernel lecture, you're literally the best 🫢

<div>this one's brought to you by ./drivers/dma (the source), version vibes from October 2026 (the date), and of course the star of the show herself, dma_request_chan(9). catch you in the next manpage, bestie πŸ’–βœ¨πŸŽ€</div>

πŸ“¦ where this page comes from