hmm_dma_map_free(9)
π hmm_dma_map_free(9) π
okay so first things first: this is a page from the Kernel API Manual, and it's short, it's sweet, and it's literally just "clean up after yourself." the whole personality of this function is responsible friend who does the dishes before leaving the party. we love her for that π«Ά
β¨ NAME β¨
hmm_dma_map_free β as the page itself puts it, "iFree HMM map structure" π (yes bestie, the manpage really does say "iFree", and no, we are not fixing it, it's iconic and it's part of history) π
π¦ SYNOPSIS π¦
void hmm_dma_map_free (struct device *dev , struct hmm_dma_map *map );
that's it. that's the whole call. no return value (it's void, so like... she gives nothing back, she just does the work, main character energy honestly π).
πΈ ARGUMENTS πΈ
devβ the device you're freeing the structure from. yeah, it needs to know which device, don't ask her to guess πmapβ the HMM map, the one holding all the various lists and state. this is the thing getting yeeted into the void. ngl she's carrying a lot: lists, state, the whole vibe check π
π DESCRIPTION π
so what does she actually do? pretty much what it says on the tin, bestie: she frees the HMM map structure and all the lists it contains. every list, inside the map, gone. freed. released. β¨ clean slate β¨
like, don't come back looking for those lists afterwards, because they are not there. that's the whole job and she is obsessed with doing it properly. no cap.
π₯ SEE ALSO π₯
the kernel file ./mm/hmm.c is where this all lives, and then the whole friend group:
hmm_range_fault(9)hmm_range_fault_unlocked_timeout(9)hmm_dma_map_alloc(9)hmm_dma_map_pfn(9)hmm_dma_unmap_pfn(9)
iykyk β go read hmm_dma_map_alloc(9) if you want to see the before picture, and hmm_dma_unmap_pfn(9) if you're the type who likes to unpack before you free π
heads up bestie: this is a free function, so once you call it, that map and its lists are donezo. don't go touching them after, fr fr. π
and that's the whole page! π straight from ./mm, dated October 2026, filed under hmm_dma_map_free(9) β short king of a manpage, slayed the assignment, periodt ππβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms