ssh_packet_put(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ssh_packet_put(9) β€” the Kernel API Manual glow-up πŸŽ€

okay bestie, welcome to the Kernel API Manual page for ssh_packet_put(9) β€” yes that's the real manual name, I'm not making it up, it's fr fr the section 9 kernel API girlies ✨


🌸 NAME 🌸

ssh_packet_put β€” decrement the reference count of a packet, aka the "you can let go now, queen" function πŸ’…


✨ SYNOPSIS ✨

void ssh_packet_put (struct ssh_packet *packet );

that's it. that's the whole signature. no return value, void, she gives nothing back and honestly? iconic 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • packet β€” the packet whose reference count you're decrementing. like, the actual struct ssh_packet * you're handing over to be un-counted. she's the main character of this whole operation πŸ’–

πŸ“ DESCRIPTION πŸ“

so here's the vibe check: this function decrements the reference count on your packet.

and if the reference count reaches zero β€” zero, bestie, absolute rock bottom, no more references left 😭 β€” then the release callback gets called. and which release callback, you ask? the one specified in the packet's struct ssh_packet_ops, i.e.

packet->ops->release

so yeah, <pink>that's</pink> the callback that fires when the count hits zero πŸ’€ it's giving "last one out turns off the lights" energy, and honestly the release callback ate. πŸŽ€

also like β€” if you wanna go the other direction, ssh_packet_get is literally the counter-part of this function. they're a matching set, an inseparable duo, iykyk 🌈

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file where the magic happens:

  • ./drivers/platform/surface/aggregator/ssh_packet_layer.c

and the whole friend group, alphabetically-ish, all of them, no cap:

like okay, that's a lot of ssh_ptl_* functions, but they're all valid, all listed, all slaying in their own way πŸ¦‹


πŸ’œ sign-off πŸ’œ

this page came to you from the source <purple>./drivers/platform/surface/agg...</purple> (yes, truncated with the little dots, that's how it's printed, don't come for me πŸ™ˆ) and it's dated October 2026 β€” future girlie behavior honestly ⭐

okay ily, go decrement some reference counts responsibly, and remember: every packet deserves a put πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from