ssam_controller_receive_buf(9)
π ssam_controller_receive_buf(9) β a.k.a. the "kernel API manual" glow-up β¨
okay so bestie, welcome to the ssam_controller_receive_buf(9) page from the Kernel API Manual π β this is the little function that hands raw input data over to the controller, and honestly it's giving "quietly carrying the whole transport layer on its back" energy. π
β¨ NAME β¨
ssam_controller_receive_buf β Provide input-data to the controller. like, that's literally the whole gig π«Ά
πΈ SYNOPSIS πΈ
ssize_t ssam_controller_receive_buf (struct ssam_controller *ctrl ,
const u8 *buf , size_t n );
three little args, one ssize_t return, no cap πβ¨
π¦ ARGUMENTS π¦
ctrlβ The controller. the main character of this whole situation πbufβ The input buffer. the actual bytes live here πnβ The number of bytes in the input buffer. so like, how much ofbufwe're actually vibing with π₯
π DESCRIPTION π
So here's the tea: you call this to provide input data to be evaluated by the controller, and that data has already been received via the lower-level transport. π
Think of it as the handoff moment β the transport layer did its lil thing, and now the controller gets to actually look at the bytes. very "you dropped this, queen" of the transport layer, fr fr π
β RETURN β
Returns the number of bytes consumed β slay, mission accomplished π
BUT β and this is the important bit, so listen up π β if the packet transport layer of the controller has been shut down, you get -ESHUTDOWN instead. π no bytes consumed, just shutdown sadness. not a vibe, but the kernel said what it said.
π SEE ALSO π
Kernel file ./drivers/platform/surface/aggregator/controller.h β and the whole squad of related structs and functions, all here for your reading pleasure, bestie π«Ά
struct ssh_seq_counter(9)struct ssh_rqid_counter(9)struct ssam_nf_head(9)struct ssam_nf(9)struct ssam_event_item(9)struct ssam_event_queue(9)struct ssam_event_target(9)struct ssam_cplt(9)enum ssam_controller_state(9)struct ssam_controller_caps(9)struct ssam_controller(9)ssam_controller_write_wakeup(9)
like, that's the whole friend group, go say hi β¨π
okay and finally, the sign-off π
this page is brought to you by ./drivers/platform/surface/agg... (the path got a lil truncated, she's shy), dated October 2026, and it's all about ssam_controller_receive_buf(9) β read it, love it, ship it. πππ
π¦ 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