hmm_dma_map_alloc(9)
okay so bestie, welcome to the hmm_dma_map_alloc(9) page from the Kernel API Manual β it's giving "allocate an HMM map structure" energy, and we're gonna get through it together. π
πΈ NAME πΈ
hmm_dma_map_alloc β allocate an HMM map structure, no cap. π
β¨ SYNOPSIS β¨
int hmm_dma_map_alloc (struct device *dev , struct hmm_dma_map *map , size_t nr_entries , size_t dma_entry_size );
π ARGUMENTS π
okay, here's the cast of characters, bestie β every one matters:
devβ the device you're allocating the structure for. π«Άmapβ the HMM map to allocate. β¨nr_entriesβ the number of entries in the map. π’dma_entry_sizeβ the size of the DMA entry in the map. π
π¦ DESCRIPTION π¦
so like, hmm_dma_map_alloc allocates the HMM map structure and all the lists it contains. that's the whole vibe. β¨
it returns 0 on success, and -ENOMEM on failure. periodt. π
π SEE ALSO π
peep these, bestie β they're literally right there in the Kernel file ./mm/hmm.c:
hmm_range_fault(9)hmm_range_fault_unlocked_timeout(9)hmm_dma_map_free(9)hmm_dma_map_pfn(9)hmm_dma_unmap_pfn(9)
mwah π β this page is from source/version ./mm, dated October 2026. slay and stay safe out there, bestie. πβ¨
π¦ 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