STRUCT SSH_PACKET_OPS(9)
π¦ NAME π¦
struct ssh_packet_ops β like, the callback operations for an SSH packet, bestie. It's from the Kernel API Manual, iykyk π
β¨ SYNOPSIS β¨
struct ssh_packet_ops {
void (*release)(struct ssh_packet *p);
void (*complete)(struct ssh_packet *p, int status);
};
π Members π
releaseβ okay so this one gets called the moment the packet's reference count hits zero, no cap. And like, you literally have to be able to count on this callback to make sure the packet has fully left the transport system(s). It's giving "last one out, turn off the lights" energy π―οΈcompleteβ this one fires when the packet is completed, whether that's a slay (success) or an oof (failure). If it's a failure, the reason is indicated by the value of thestatuscode argument they hand you. Thatstatusvalue will be zero in the success case β¨ Now, huge caveat bestie: a call to this callback does not guarantee the packet is no longer in use by the transport system. Like, it might still be out there living its main character life. Do not assume. π
π SEE ALSO π
Kernel file ./include/linux/surface_aggregator/serial_hub.h, and the whole friend group: 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(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_put(9), ssh_request_set_data(9)
π«Ά that's the whole page, go read the source file, mwah
okay so that's it, from ./include/linux/surface_aggreg..., dated October 2026, and we're out β struct ssh_packet_ops(9) ate and left no crumbs π
π₯π
π¦ 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