free_percpu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– free_percpu(9) πŸ’–

okay bestie, welcome to the free_percpu page from the Kernel API Manual β€” she's short, she's sweet, and she's literally the cleanup queen of percpu memory ✨


🌸 NAME 🌸

free_percpu β€” free percpu area 🫢


✨ SYNOPSIS ✨

void free_percpu (void __percpu *ptr );

that's it. one function, one pointer, zero drama πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • ptr β€” pointer to the area you wanna free, bestie 🧹 hand over the percpu pointer and she'll take care of the rest

πŸ¦‹ DESCRIPTION πŸ¦‹

Free percpu area ptr. that's the whole vibe β€” you give her ptr, she frees the percpu area it points to. no cap, that's literally it 🌈


⭐ CONTEXT ⭐

Can be called from atomic context πŸ”₯ so yes, she's flexible like that β€” atomic context is not a problem, she ate and left no crumbs πŸ‘‘


πŸ’œ SEE ALSO πŸ’œ

Kernel file ./mm/percpu.c and her whole friend group:

like, the whole percpu extended universe is right there β€” go read, iykyk πŸ˜­πŸ’–


ngl the synopsis is giving "tiny but mighty" β€” don't let the one-liner fool you, freeing percpu stuff is important and she's iconic for it πŸŽ€

and that's the page, bestie!! brought to you by the kernel API manual, source ./mm, dated October 2026 β€” mwah, slay, periodt πŸ’…πŸ’–βœ¨

πŸ“¦ where this page comes from