sshp_buf_read_from_fifo(9)
π sshp_buf_read_from_fifo(9) β the Kernel API Manual moment
okay bestie, so this is a page from the Kernel API Manual (section 9, kernel-land, very demure, very mindful) and it's about sshp_buf_read_from_fifo β yeah that's a mouthful, iykyk. Let's get into it π«Ά
β¨ NAME β¨
sshp_buf_read_from_fifo β Transfer data from a fifo to the buffer. that's it, that's the whole vibe π«
β¨ SYNOPSIS β¨
size_t sshp_buf_read_from_fifo (struct sshp_buf *buf , struct kfifo
*fifo );
like, two pointers in, a size_t out. simple. iconic. no notes π
πΈ ARGUMENTS πΈ
bufβ The buffer to write the data into. yes bestie, this one's the destination, it's getting the data πfifoβ The fifo to read the data from. and this one's the source, it's giving the data away π
π¦ DESCRIPTION π¦
So what actually happens? It transfers the data contained in the fifo to the buffer, and β this is the key part β it removes it from the fifo. like, it's a move, not a copy. no cap π₯
This function will try to transfer as much data as possible, and it's limited either by the remaining space in the buffer or by the number of bytes available in the fifo. whichever one runs out first, that's your ceiling. main character energy is maximum effort within constraints β¨
π RETURN π
Returns the number of bytes transferred. that's your size_t. that's the receipt. periodt π
π SEE ALSO π
- Kernel file
./drivers/platform/surface/aggregator/ssh_parser.hstruct sshp_buf(9)β the struct itself, the blueprint, the moment π sshp_buf_init(9)β its little origin story βsshp_buf_alloc(9)β getting the memory, we love a resource πsshp_buf_free(9)β the clean-up queen, she never misses π§sshp_buf_drop(9)β dropping things, on brand πsshp_buf_span_from(9)β spanning from, the sequel π
lowkey a whole family of sshp_buf functions and this one's just the fifo-transferring cousin. go read the others, they're literally all listed above π«Ά
that's the whole page, bestie β no detail left behind, no flag unlisted ππ this was ./drivers/platform/surface/agg..., October 2026, sshp_buf_read_from_fifo(9) β slay, go forth and transfer data responsibly β¨π
π¦ 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