hmm_dma_map_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:


mwah πŸ’‹ β€” this page is from source/version ./mm, dated October 2026. slay and stay safe out there, bestie. πŸŽ€βœ¨

πŸ“¦ where this page comes from