pcpu_addr_in_chunk(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pcpu_addr_in_chunk β€” the "is this even yours??" check

okay so quick vibe check: this is a page from the Kernel API Manual (section 9, kernel internals bestie 🧚) and honestly it's a tiny little function with one job and it slays at that job. Let's get into it ✨


🌸 NAME 🌸

pcpu_addr_in_chunk β€” literally just checks if the address is served from this chunk πŸ’–

like, that's it. that's the whole personality. no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

bool pcpu_addr_in_chunk (struct pcpu_chunk *chunk , void *addr );

yes she returns a bool and yes she takes two args. we love a simple signature, periodt πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • chunk β€” the chunk of interest 🫢 like, the chunk you're being nosy about. the one you're asking "is this yours??"
  • addr β€” a percpu address πŸ’« the address in question, the main character of this whole situation

⭐ RETURN ⭐

Returns True if the address is served from this chunk. πŸ”₯ that's the whole answer. yes or no. iconic.

ngl if it's not from this chunk you get False β€” the original only spells out the true case, so don't come for me πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

This part is long bestie, buckle up. Every single one of these is part of the percpu saga, and the kernel file lives at ./mm/percpu.c πŸ“:

that's the whole percpu friend group fr fr πŸ’€ they all show up together, iykyk.


🌈 the cute sign-off 🌈

this little baddie lives in ./mm πŸ’œ and the page is dated October 2026 πŸŽ€ so yeah, future vibes, we love to see it. go forth and check your addresses bestie, you got this πŸ’…βœ¨

πŸ“¦ where this page comes from