kmsan_iounmap_page_range(9)
π kmsan_iounmap_page_range β bestie, it's KMSAN cleanup time
Okay so real quick, this is section 9 of the Kernel API Manual, the kmsan_iounmap_page_range page, and honestly? It's a short one. A cute little one. Let's get into it π
β¨ NAME β¨
kmsan_iounmap_page_range β the function that pops into KMSAN's DMs to let it know a iounmap_page_range() call is happening. That's it. That's the job. She's a notifier, she's a messenger, she's not doing the actual unmapping herself π
πΈ SYNOPSIS πΈ
void kmsan_iounmap_page_range (unsigned long start , unsigned long end );
Returns void, so there's literally nothing coming back to you. No errors, no status, nothing. She does her thing and she's gone π
π¦ ARGUMENTS π¦
startβ where the range starts, bestie. The beginning. The alpha. Theunsigned longin question πendβ where the range ends. The finish line. Also anunsigned long, also important, don't skip her π«Ά
π DESCRIPTION π
So here's the tea: KMSAN unmaps the metadata pages for the given range. And β this is the part where it's lowkey different from her cousin β unlike for vunmap_page_range, she also deallocates them. The way that's a whole extra step is giving main character energy, ngl. Not just unmapped, but freed. Both. She ate π
β SEE ALSO β
Kernel file ./include/linux/kmsan.h, plus the whole KMSAN friend group chat, and we're @-ing every single one of them, no cap:
kmsan_task_create(9)kmsan_task_exit(9)kmsan_init_shadow(9)kmsan_init_runtime(9)kmsan_memblock_free_pages(9)kmsan_alloc_page(9)kmsan_free_page(9)kmsan_copy_page_meta(9)kmsan_slab_alloc(9)kmsan_slab_free(9)kmsan_kmalloc_large(9)kmsan_kfree_large(9)kmsan_ioremap_page_range(9)kmsan_handle_dma(9)kmsan_handle_dma_sg(9)kmsan_handle_urb(9)kmsan_unpoison_entry_regs(9)kmsan_get_metadata(9)kmsan_enable_current(9)kmsan_disable_current(9)memset_no_sanitize_memory(9)
π Heads up: this page lives under ./include/linux in the source tree β that's where you'll find her, iykyk.
Alright bestie, that's the whole page, and yes she's short, but she's iconic π This one comes from ./include/linux, dated October 2026, and that's the whole sign-off β mwah ππ§ββοΈπΈ
π¦ 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