n_hdlc_buf_put(9)
๐ n_hdlc_buf_put โ kernel API manual, but make it make sense โจ
okay so bestie, welcome to the n_hdlc_buf_put(9) page ๐ this is one of those little kernel helper functions from the n_hdlc fam, and honestly? it's giving "small but mighty" ๐ฆ the way this whole page lives in section 9 (kernel API manual) and it's literally just one job โ but we're gonna do it right, no cap.
๐ธ NAME ๐ธ
n_hdlc_buf_put โ add the specified HDLC buffer to the tail of the specified list ๐
like, that's it. that's the whole vibe. you got a buffer, you got a list, and the buffer goes to the end of that list. tail-end behaviour, main character energy ๐ฅ
โจ SYNOPSIS โจ
void n_hdlc_buf_put (struct n_hdlc_buf_list *buf_list , struct
n_hdlc_buf *buf );
it's a void function, so it doesn't hand you anything back โ it just does the thing and dips ๐ no return value to obsess over, bestie.
๐ฉท ARGUMENTS ๐ฉท
buf_listโ pointer to the buffer list ๐ this is the list you're appending to. the destination. the moment.bufโ pointer to the buffer ๐ this is the actual buffer getting tacked onto the tail of that list. the little guy being added. the icon.
both of them are pointers, both of them matter, and yeah โ miss either one and nothing about this works, iykyk ๐
๐ฎ SEE ALSO ๐ฎ
- Kernel file
./drivers/tty/n_hdlc.cโ the source file where this whole situation lives ๐ง struct n_hdlc(9)n_hdlc_tty_close(9)n_hdlc_tty_open(9)n_hdlc_send_frames(9)n_hdlc_tty_write_work(9)n_hdlc_tty_wakeup(9)n_hdlc_tty_receive(9)n_hdlc_tty_read(9)n_hdlc_tty_write(9)n_hdlc_tty_ioctl(9)n_hdlc_tty_poll(9)n_hdlc_alloc(9)n_hdlc_buf_return(9)n_hdlc_buf_get(9)
fr fr, go read the whole little friend group if you wanna understand the buffer lifecycle โ n_hdlc_buf_get(9) and n_hdlc_buf_return(9) are right there waving at you ๐ and struct n_hdlc(9) is the parent of this whole saga, so likeโฆ start there if you're lost ๐
ngl, this page is short โ but that's not a red flag, it's just a very focused queen doing one job ๐
aaand that's the page, bestie ๐ซถ this was section 9 of the kernel API manual, living under ./drivers/tty, dated October 2026 ๐ญ โ go drink some water and go read the rest of the n_hdlc docs, ily, 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