kmsan_kmalloc_large(9)
π kmsan_kmalloc_large β a Kernel API Manual moment
okay so bestie, welcome to the Kernel API Manual page for kmsan_kmalloc_large(9). yes that's the whole manual name, we're in the kernel docs now, it's giving serious main character energy π
β¨ NAME β¨
kmsan_kmalloc_large β tell KMSAN about a large slab allocation, like the good little messenger you are π¦
πΈ SYNOPSIS πΈ
void kmsan_kmalloc_large (const void *ptr , size_t size , gfp_t flags );
literally three args, no cap, she's compact π
π ARGUMENTS π
ptrβ the object pointer. the address of the thing, the whole entire vibe-check subject β¨sizeβ the object size. how big the thing is, iykyk πflagsβ the GFP flags, which get passed straight to the allocator. not me handing off my homework to the allocator, but make it official π«Ά
π DESCRIPTION π
so this one is similar to kmsan_slab_alloc, but for large allocations. that's it, that's the whole plot π
like yes bestie it's basically the large-allocation sibling of the slab one β KMSAN gets notified, everybody stays informed, no surprises, periodt π
π₯ SEE ALSO π₯
kernel file ./include/linux/kmsan.h β go read it, it's right there:
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_kfree_large(9)kmsan_ioremap_page_range(9)kmsan_iounmap_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)
a whole friend group honestly, obsessed ππ
okay that's the page! mwah π this one ships from source ./include/linux, dated October 2026 β go forth and notify KMSAN about your large slab allocations bestie, ily, bye π§ββοΈπΈπ
π¦ 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