__skb_queue_head(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

__skb_queue_head β€” the "put this buffer at the FRONT of the list" function, no cap

so this is a __skb_queue_head(9) moment, from the Kernel API Manual, and bestie we are about to queue a buffer at the list head πŸ’…


✨ SYNOPSIS ✨

void __skb_queue_head (struct sk_buff_head *list , struct sk_buff *newsk
);

that's it. that's the whole vibe check. πŸ¦‹


🌸 ARGUMENTS 🌸

  • list β€” the list you're working with. the actual list. the one you want the thing to go into πŸ‘‘
  • newsk β€” the buffer you're queueing. the little guy going in at the front πŸ₯Ί

πŸ’– DESCRIPTION πŸ’–

okay so the whole assignment here is: queue a buffer at the start of a list. front of the line. head of the list. main character position, literally first. 🌟

⚠️ but listen β€” this function takes no locks. none. zero. it does not protect you. you must therefore hold the required locks before you call it. this is a you problem, not a __skb_queue_head problem. πŸ’€

and one more thing that is genuinely so important: a buffer cannot be placed on two lists at the same time. pick a list. one list. that's your list. no double-dipping πŸ™ˆ


πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file ./include/linux/skbuff.h β€” and honestly, the whole skb extended family, all of it, every single one, here they are:

like I said. the whole family. iykyk πŸ’œ


🌈 sign-off 🌈

this lil page lives over in ./include/linux and it's dated October 2026, and it's filed under __skb_queue_head(9) in the Kernel API Manual β€” mwah, obsessed, no notes πŸ’–βœ¨πŸŽ€

go forth and hold your locks first, bestie 🫢πŸ”₯

πŸ“¦ where this page comes from