n_hdlc_buf_get(9)
π n_hdlc_buf_get(9) β the Kernel API Manual, bestie edition π
okay so like, welcome to the Kernel API Manual, page n_hdlc_buf_get(9) β yes the whole manual is literally called that, i don't make the rules β¨
πΈ NAME πΈ
n_hdlc_buf_get β take an HDLC buffer off a list and hand it to you, that's the whole vibe, no cap π«Ά
β¨ SYNOPSIS β¨
struct n_hdlc_buf * n_hdlc_buf_get (struct n_hdlc_buf_list *buf_list );
like, copy it exactly, don't @ me π
π¦ ARGUMENTS π¦
buf_listβ pointer to the HDLC buffer list. that's it. that's the argument. she's a pointer to your list of HDLC buffers and she's the main character of this function ngl π
π DESCRIPTION π
okay so here's the tea: n_hdlc_buf_get removes an HDLC buffer from the head of the specified HDLC buffer list, and returns it. like it's literally pulling the first one off the front of the queue for you π
and if there's actually one available, you get a pointer to the HDLC buffer. if not? you get NULL. that's the whole function bestie, she's small but she's iconic β
fr fr: it removes it from the list. so if you were expecting it to stay there too β no ma'am. it's yours now π
π SEE ALSO π
literally the whole friend group, go say hi π
- Kernel file
./drivers/tty/n_hdlc.c 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_put(9)
okay and finally the sign-off π«Ά this page lives in ./drivers/tty, it's dated October 2026, so yeah β she's from the drivers/tty corner of the kernel and she's slaying over there π
β¨ mwah, go read the source bestie π¦π
π¦ 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