ssh_ptl_cancel(9)
π ssh_ptl_cancel(9) β like, the packet-cancelling one
Okay bestie, grab a boba, because we're reading a page from the Kernel API Manual together. Yes, kernel docs. Yes, we're doing this. It's giving "I read manpages for fun" and honestly? Iconic. π
β¨ NAME β¨
ssh_ptl_cancel β cancel a packet. That's it. That's the whole vibe. π«Ά
πΈ SYNOPSIS πΈ
void ssh_ptl_cancel (struct ssh_packet *p );
π¦ ARGUMENTS π¦
pβ the packet you want to cancel. The main character of this function, fr fr. π
π₯ DESCRIPTION π₯
So this one cancels a packet. But listen β there are no guarantees on when the completion and release callbacks are gonna get called. Like, it might happen during the execution of this very function, or it might happen at literally any point later. No cap. π
Also, bestie, lowkey important: it is not guaranteed that the packet will actually be canceled if the packet gets concurrently completed by another process. π¨
The one thing ssh_ptl_cancel does promise? The packet will be completed β with success, failure, or cancellation, all three are on the table β and it will be released from the transport layer in a reasonable time-frame. That's the guarantee. That's the whole deal. Periodt. π
And here's a fun one: you may call this before the packet has been submitted β but in that case, any later packet submission fails. π So maybe think about that first, iykyk.
π SEE ALSO π
Kernel file ./drivers/platform/surface/aggregator/ssh_packet_layer.c β go read the source, it's right there, slay. π
And the whole extended friend group:
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_put(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_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)
π bye bestie π β this cutie dropped from ./drivers/platform/surface/agg... back in October 2026, and it's still ssh_ptl_cancel(9) to me. Go cancel some packets responsibly, love u πβ¨
π¦ 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