STRUCT SSH_RTL_OPS(9)
π struct ssh_rtl_ops (9) β Kernel API Manual β¨
okay so bestie, welcome to the glow-up doc for struct ssh_rtl_ops from the Kernel API Manual, section 9. it's giving "small but mighty" and honestly? iconic. let's get into it π«Ά
πΈ NAME πΈ
struct ssh_rtl_ops β the callback operations for the request transport layer. literally the plug-in points where the request transport layer (rtl, bestie, keep up π
) calls out to you. no cap.
β¨ SYNOPSIS β¨
struct ssh_rtl_ops {
void (*handle_event)(struct ssh_rtl *rtl, const struct ssh_command *cmd, const struct ssam_span *data);
};
look at her. one single member. minimalism ate and left no crumbs π
π Members π
handle_eventβ the function that gets called when a SSH event has been received π. the function you specify takes the request layer, the received command struct, and the corresponding payload as its arguments. and heads up: if the event has no payload, the payload span is empty β notNULL. like, it's still a span, she's just got nothing in her. don't come for her π
π¦ SEE ALSO π¦
- Kernel file
./drivers/platform/surface/aggregator/ssh_request_layer.hπ enum ssh_rtl_state_flags(9)struct ssh_rtl(9)ssh_rtl_get_device(9)ssh_request_rtl(9)
go read those too, iykyk π
fr fr bestie: the empty-span-not-NULL thing is the one detail that will get you. check for an empty span, not a null pointer, or the vibe check will fail π
and that's the whole page, no notes π
ok so this was struct ssh_rtl_ops(9) from the Kernel API Manual, sourced from ./drivers/platform/surface/agg... (the drivers/platform/surface/aggregator zone, you know the one πΈ), dated October 2026. that's the tea, periodt. πβ¨
π¦ 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