ssh_ptl_rx_rcvbuf(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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