sshp_buf_alloc(9)
π sshp_buf_alloc β okay so this is the glow-up page for your SSH parser buffer β¨
Welcome to the Kernel API Manual, bestie π β today's main character is sshp_buf_alloc(9), and no cap, she's the one who sets your buffer up so it can actually live.
πΈ NAME πΈ
sshp_buf_alloc β allocate and initialize a SSH parser buffer. Literally her whole job π
π¦ SYNOPSIS π¦
int sshp_buf_alloc (struct sshp_buf *buf , size_t cap , gfp_t flags );
β¨ ARGUMENTS β¨
bufβ the buffer you're initializing/allocating to π«Ά like, this is the one getting the makeover.capβ the desired capacity of the buffer. how much room she gets to vibe in πflagsβ the flags used for allocating the memory. the ~parameters~ of the whole operation, iykyk.
π DESCRIPTION π
So here's the tea β: sshp_buf_alloc allocates cap bytes and initializes the provided buffer struct with the allocated memory. That's it, that's the whole slay π₯
π RETURN π
Returns zero on success π and -ENOMEM if allocation failed π (yes, that's the sad-path vibe check, and she does not pass it).
π§ SEE ALSO π§
Kernel file ./drivers/platform/surface/aggregator/ssh_parser.h struct sshp_buf(9), sshp_buf_init(9), sshp_buf_free(9), sshp_buf_drop(9), sshp_buf_read_from_fifo(9), sshp_buf_span_from(9) β go read the whole friend group, fr fr π
okay bestie that's the page π go forth and allocate responsibly β¨
Signed, sealed, delivered with love from ./drivers/platform/surface/agg..., dated October 2026, and yes β this whole iconic moment is still filed under sshp_buf_alloc(9) ππ«Ά
π¦ 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