cp_free(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cp_free(9) β€” Kernel API Manual, bestie edition ✨

okay so like, this whole page lives in the Kernel API Manual and it's about cp_free β€” literally the cleanup bestie of the channel program world πŸ§ΉπŸ’–


πŸ¦‹ NAME πŸ¦‹

cp_free β€” frees the resources for a channel program. yes that's it, that's the whole job, and she does it flawlessly πŸ’…


🌸 SYNOPSIS 🌸

void cp_free (struct channel_program *cp );

πŸŽ€ ARGUMENTS πŸŽ€

  • cp β€” the channel_program you're doing the operation on. that's the one, the main character of this whole function 🫢

✨ DESCRIPTION ✨

so what she actually does: this unpins the memory pages and frees the memory space occupied by cp πŸ”₯

but listen β€” that cp MUST have been returned by a previous call to cp_init. like, that's the vibe check. that's the requirement.

⚠️ and if it wasn't? undefined behavior occurs. not being dramatic, that's literally what the page says πŸ˜­πŸ’€ so please, only pass in something cp_init actually handed you, okay? i'm not gonna say it twice… well i might, but still 😀

🌈 SEE ALSO 🌈

like, the whole friend group honestly πŸ‘‘βœ¨


source: ./drivers/s390/cio β€” and this icon was dropped October 2026 πŸ—“οΈπŸ’œ mwah, go free your memory responsibly bestie, ily πŸ“πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from