ssh_packet_put(9)
π 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 actualstruct 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:
ssh_ptl_should_drop_ack_packet(9)ssh_ptl_should_drop_nak_packet(9)ssh_ptl_should_drop_dsq_packet(9)ssh_ptl_should_fail_write(9)ssh_ptl_should_corrupt_tx_data(9)ssh_ptl_should_corrupt_rx_syn(9)ssh_ptl_should_corrupt_rx_data(9)ssh_packet_get(9)ssh_packet_init(9)ssh_ctrl_packet_cache_init(9)ssh_ctrl_packet_cache_destroy(9)ssh_ctrl_packet_alloc(9)ssh_ctrl_packet_free(9)ssh_ptl_tx_wakeup_packet(9)ssh_ptl_tx_start(9)ssh_ptl_tx_stop(9)ssh_ptl_submit(9)ssh_ptl_cancel(9)ssh_ptl_rx_start(9)ssh_ptl_rx_stop(9)ssh_ptl_rx_rcvbuf(9)ssh_ptl_shutdown(9)ssh_ptl_init(9)ssh_ptl_destroy(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms