ssh_ptl_rx_rcvbuf(9)
π ssh_ptl_rx_rcvbuf β the Kernel API Manual era β¨
okay bestie, so this one lives in the Kernel API Manual (ssh_ptl_rx_rcvbuf(9)), and it's literally the function that hands data up the chain. like a little relay baton pass but make it kernel π
πΈ NAME πΈ
ssh_ptl_rx_rcvbuf β push data from the lower-layer transport up to the packet layer. that's her whole job. iconic of her honestly π
β¨ SYNOPSIS β¨
ssize_t ssh_ptl_rx_rcvbuf (struct ssh_ptl *ptl , const u8 *buf , size_t
n );
π¦ ARGUMENTS π¦
ptlβ the packet transport layer. the main character of this whole operation πbufβ pointer to the data you're pushing into the layer. like handing over the goods π«Άnβ size of that data you're pushing, in bytes. yes, bytes, we're counting π
π DESCRIPTION π
So what she does is: she pushes data from a lower-layer transport into the receiver fifo buffer of the packet layer, and then she notifies the receiver thread. like "hey girl, new data's here" β¨ highkey the most polite thing you can do in a kernel.
Heads up bestie β once the packet layer has been shut down, calls to this function are just ignored. no cap. she's not gonna entertain them π
π₯ RETURN π₯
- On success: returns the number of bytes transferred, and that's positive or zero (so zero is a valid slay, don't panic) π
- If the packet layer has been shut down: returns
-ESHUTDOWN. that's the "she's not available right now" signal π
π SEE ALSO π
Kernel file ./drivers/platform/surface/aggregator/ssh_packet_layer.c β the source, the mothership, the origin story:
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_shutdown(9)ssh_ptl_init(9)ssh_ptl_destroy(9)
go read them all, i'll wait π iykyk.
okay that's the whole page, periodt π this came from ./drivers/platform/surface/agg... and it's dated October 2026, and yes it's still signed ssh_ptl_rx_rcvbuf(9) at the bottom like a little signature. obsessed π¦π
π¦ 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