kmemleak_alloc_percpu(9)
π¦ kmemleak_alloc_percpu(9) β Kernel API Manual π¦
okay so bestie, you opened the page for kmemleak_alloc_percpu(9) from the Kernel API Manual, and it's giving βsmall function, very important job.β no cap. π
β¨ NAME β¨
kmemleak_alloc_percpu β register a newly allocated __percpu object
πΈ SYNOPSIS πΈ
void __ref kmemleak_alloc_percpu (const void __percpu *ptr , size_t size
, gfp_t gfp );
that's the whole signature, bestie. She's void, she's __ref, and she's here to register. periodt. π
π ARGUMENTS π
ptrβ the__percpupointer to the beginning of the object. Like, the object's little home address. π‘sizeβ the size of the object. Yes, the actual size. πgfpβ flags used for kmemleak internal memory allocations. This is thegfpsituation for kmemleak's own internal memory allocations. π
π DESCRIPTION π
okay so this function is called from the kernel percpu allocator when a new object (a.k.a. a memory block) is allocated β specifically with alloc_percpu. It's the βnew percpu object just droppedβ registration moment. β¨
π SEE ALSO π
the whole kmemleak crew, living in the Kernel file ./mm/kmemleak.c:
kmemleak_alloc(9)kmemleak_vmalloc(9)kmemleak_free(9)kmemleak_free_part(9)kmemleak_free_percpu(9)kmemleak_update_trace(9)kmemleak_not_leak(9)kmemleak_transient_leak(9)kmemleak_ignore_percpu(9)kmemleak_ignore(9)kmemleak_scan_area(9)kmemleak_no_scan(9)kmemleak_alloc_phys(9)kmemleak_free_part_phys(9)kmemleak_ignore_phys(9)
source/version: ./mm Β· date: October 2026 β byeee bestie, 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