ssh_ptl_shutdown(9)
π ssh_ptl_shutdown β a kernel API manual, but make it bestie
okay so real talk, this one's from the Kernel API Manual β section 9, kernel land, no cap. It's called ssh_ptl_shutdown(9) and honestly? She's the one who ends the party. Let's get into it π
β¨ NAME β¨
ssh_ptl_shutdown β shuts down the packet transport layer. that's it, that's the whole vibe. she closes up shop π
πΈ SYNOPSIS πΈ
void ssh_ptl_shutdown (struct ssh_ptl *ptl );
returns nothing (it's a void, she gives you closure not a return value π«Ά), takes one pointer to a struct ssh_ptl.
π¦ ARGUMENTS π¦
ptlβ the packet transport layer itself. like, the actual one. the main character of this whole function. π
π DESCRIPTION π
So what does she do? She shuts down the packet transport layer β removing and canceling every queued and pending packet. every single one. gone. π§Ήβ¨
Packets that get canceled by this operation? They get completed with -ESHUTDOWN as their status. that's their exit ticket, that's the status code they leave with, periodt. π
Also β the receiver and transmitter threads get stopped. both of them. no threads left running, no loose ends, we love a clean shutdown fr fr.
As a result of this function, the transport layer gets marked as shut down. and once it's marked? submitting packets after the transport layer has been shut down will fail with -ESHUTDOWN. so likeβ¦ try it if you want, but she's closed, bestie π
heads up: everything pending dies with-ESHUTDOWN, and post-shutdown submissions die with-ESHUTDOWNtoo. consistency icon honestly.
π SEE ALSO π
The kernel file ./drivers/platform/surface/aggregator/ssh_packet_layer.c β yes, that's the source of truth, go read her π
And the whole friend group, in order:
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_cancel(9)ssh_ptl_rx_start(9)ssh_ptl_rx_stop(9)ssh_ptl_rx_rcvbuf(9)ssh_ptl_init(9)ssh_ptl_destroy(9)
and that's the page!! π sign-off time: this lil masterpiece lives at ./drivers/platform/surface/agg... and she's dated October 2026, under the ssh_ptl_shutdown(9) name. slay, goodbye, go shut down your transport layers responsibly π₯π
π¦ 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