is_kernel_percpu_address(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 is_kernel_percpu_address(9) β€” Kernel API Manual 🌸

okay so bestie, welcome to the Kernel API Manual page for is_kernel_percpu_address(9) β€” she’s a little bool-returning icon and we’re gonna get into it. πŸ’–


πŸ’– NAME πŸ’–

is_kernel_percpu_address β€” test whether an address is from the static percpu area. periodt ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

bool is_kernel_percpu_address (unsigned long addr );

πŸŽ€ ARGUMENTS πŸŽ€

  • addr β€” the address you’re testing, bestie. That’s the one. πŸ’…

✨ DESCRIPTION ✨

okay so this function is basically a vibe check for an address. You hand it addr, and it tests whether addr belongs to the in-kernel static percpu area. No cap. 🫢

⚠️ important caveat, bestie: module static percpu areas are not considered. They’re literally not invited to this party. For those, use is_module_percpu_address instead. iykyk. πŸ’€

🌈 RETURN 🌈

It returns true if addr is from the in-kernel static percpu area, and false otherwise. No β€œmaybe,” no situationship, just bool realness. πŸ‘‘βœ¨


πŸ’œ SEE ALSO πŸ’œ

Kernel file ./mm/percpu.c, plus the whole friend group:


This cutie comes from the ./mm source tree, dated October 2026, and you just read the is_kernel_percpu_address(9) page from the Kernel API Manual. Mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from