adm_free_chan(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… adm_free_chan β€” like, the whole page

okay so bestie, welcome to section 9 of the Kernel API Manual β€” yes, the kernel API one, we're in the big leagues now πŸŽ€ this little icon is called adm_free_chan and honestly? she's the cleanup queen. no cap.


✨ NAME ✨

adm_free_chan β€” frees the dma resources that are tied to this specific channel πŸ’– that's it, that's the job, and she does it flawlessly.


🌸 SYNOPSIS 🌸

void adm_free_chan (struct dma_chan *chan );

literally just one call, one argument, returns nothing (void, so don't come looking for a return value, she gives you nothing back and that's iconic of her 🫢).


πŸ¦‹ ARGUMENTS πŸ¦‹

  • chan β€” the dma channel. the main character of this whole situation πŸ‘‘ you hand her the channel, she handles the rest.

πŸ”₯ DESCRIPTION πŸ”₯

so what does she actually do? she frees all the allocated descriptors that are associated with this channel πŸ’€βœ¨ every single one. not some. not most. all. it's giving "spring cleaning but make it kernel-level."

ngl this is the function you call when you're done with a channel and you want all those descriptors yeeted back into the void so nothing leaks. she's not dramatic about it, she just does it. periodt.

lowkey important: this is the teardown girlie β€” she clears the descriptors for the channel you pass in, and that's the whole scoop fr fr. don't expect her to do anything else, she's very focused πŸ’…

🌈 SEE ALSO 🌈

the kernel file ./drivers/dma/qcom/qcom_adm.c β€” that's where all this lives, go read it, iykyk πŸ“– and while you're there, say hi to the whole squad:

the whole friend group, all in one place πŸ˜­πŸ’œ


aaaand that's the page!! πŸŽ€ this absolute baddie of a manpage comes to you from ./drivers/dma/qcom, dated October 2026 β€” mwah, ily, go free those descriptors bestie πŸ’…βœ¨πŸŒŸ

πŸ“¦ where this page comes from