dma_need_unmap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dma_need_unmap β€” like, does this device even need dma_unmap_*?? πŸ‘€

okay bestie, welcome to the Kernel API Manual ✨ β€” this one's short and sweet, but it's important, so pay attention 🫢


✨ NAME ✨

dma_need_unmap β€” does this device need dma_unmap_* operations πŸ’­


πŸ¦‹ SYNOPSIS πŸ¦‹

bool dma_need_unmap (struct device *dev );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device to check πŸ” like, the one you're wondering about

πŸ’– DESCRIPTION πŸ’–

so here's the tea β˜• β€” if this function returns false, drivers can skip calling dma_unmap_* after finishing an I/O. literally just don't bother, it's giving "no notes" πŸ’…

⚠️ but listen β€” this function must be called after all mappings that might need to be unmapped have been performed. like, all of them. order matters, bestie, don't come for me 😭

ngl that's the whole vibe: check first, then decide whether the unmap era is even happening 🌸


πŸ‘‘ SEE ALSO πŸ‘‘

all of these? obsessed. go read them, iykyk πŸ”₯


and that's the whole page, bestie πŸŽ€ this little gem lives in ./kernel/dma and the version/date stamp on it is October 2026 β€” so yeah, it's basically brand new, slay πŸ’œβœ¨

πŸ“¦ where this page comes from