ssh_request_put(9)
π ssh_request_put(9) β like, the Kernel API Manual, bestie π
okay so real quick, before we even get into it: this is ssh_request_put(9) from the Kernel API Manual. yes we're in kernel land. yes it's giving serious main character energy. let's go β¨
πΈ NAME πΈ
ssh_request_put β decrements the reference count of a request. that's it. that's the whole vibe. π
π¦ SYNOPSIS π¦
void ssh_request_put (struct ssh_request *r );
literally one function, one argument, returns nothing (void, she's humble like that). π«Ά
β ARGUMENTS β
rβ the request whose reference count you're about to decrement. yep. that one. π
π₯ DESCRIPTION π₯
so here's what happens, no cap: ssh_request_put decrements the reference count of the given request β and the way it does that is by decrementing the reference count of the underlying struct ssh_packet that's enclosed inside it. cute little nested situation, iykyk. π§
and then β the important part β if that reference count reaches zero, the release callback specified in the request's struct ssh_request_ops, i.e. r->ops->release gets called. so like, when the count hits zero, r->ops->release fires. that's the moment. that's the slay. π
also peepssh_request_getandssh_packet_putβ they're the siblings, the trio, the friend group. see also below. π«Ά
β¨ SEE ALSO β¨
okay this list is LONG and honestly iconic, so buckle up bestie, we're listing every single one, no skipping, periodt:
Kernel file ./include/linux/surface_aggregator/serial_hub.h, enum ssh_frame_type(9), struct ssh_frame(9), enum ssh_payload_type(9), struct ssh_command(9), SSH_MESSAGE_LENGTH(9), SSH_COMMAND_MESSAGE_LENGTH(9), SSH_MSGOFFSET_FRAME(9), SSH_MSGOFFSET_COMMAND(9), ssh_crc(9), ssh_rqid_next_valid(9), ssh_rqid_to_event(9), ssh_rqid_is_event(9), ssh_tc_to_rqid(9), ssh_tid_to_index(9), ssh_tid_is_valid(9), struct ssam_span(9), enum ssam_ssh_tid(9), enum ssh_packet_base_priority(9), SSH_PACKET_PRIORITY(9), ssh_packet_priority_get_try(9), ssh_packet_priority_get_base(9), struct ssh_packet_ops(9), struct ssh_packet(9), ssh_packet_set_data(9), struct ssh_request_ops(9), struct ssh_request(9), to_ssh_request(9), ssh_request_get(9), ssh_request_set_data(9).
like I said. long. but we ate. ππ
π sign-off π
this lil page comes from ./include/linux/surface_aggreg... and it's dated October 2026, and yes the footer says ssh_request_put(9) too because consistency is key bestie. mwah. πβ¨π
π¦ 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