n_hdlc_buf_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ’œ


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