STRUCT SSH_PACKET_OPS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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 the status code argument they hand you. That status value 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