queue_next(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… queue_next β€” the Kernel API Manual, bestie edition ✨

okay so real talk, this page lives in the Kernel API Manual (yes, that's the manual name, I didn't make it up 🫢) and it's about one (1) tiny helper macro. she's small but she's important. let's get into it πŸ’–


🌸 NAME 🌸

queue_next β€” returns a pointer to the next queue in the list. she's a HELPER MACRO, periodt.


✨ SYNOPSIS ✨

queue_next (__queue );

that's the whole vibe. one argument, one macro, no notes πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • __queue β€” the current queue, aka the one you're standing on right now and want to step off of. you give me this one, I hand you the next one πŸ¦‹

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the whole tea: this macro takes the address of the current queue, and then it grabs the address directly after the queue to get the next queue in the list. that's it. that's the trick. it's giving "just do pointer math, bestie" πŸ’€

but listen β€” and I need you to actually listen β€” you gotta use this macro carefully, because it does not protect you against moving past the end of the list. no guard rails. no seatbelt. no vibe check. you just sail right off the end if you're not paying attention 😭

🚨 if you need to know where the list actually ends, go look at the macros queue_end and tx_queue_end. they're literally the ones whose whole job is determining the end of the queue. use them. don't be that girl who walks off the edge πŸ™ˆ

πŸ’œ SEE ALSO πŸ’œ

so many friends!! all of these are in the kernel file ./drivers/net/wireless/ralink/rt2x00/rt2x00queue.h β€” go say hi πŸ‘‘

  • Entry frame size(9)
  • enum data_queue_qid(9)
  • enum skb_frame_desc_flags(9)
  • struct skb_frame_desc(9)
  • get_skb_frame_desc(9)
  • enum rxdone_entry_desc_flags(9)
  • RXDONE_SIGNAL_MASK(9)
  • struct rxdone_entry_desc(9)
  • enum txdone_entry_desc_flags(9)
  • struct txdone_entry_desc(9)
  • enum txentry_desc_flags(9)
  • struct txentry_desc(9)
  • enum queue_entry_flags(9)
  • struct queue_entry(9)
  • enum queue_index(9)
  • enum data_queue_flags(9)
  • struct data_queue(9)
  • queue_end(9)
  • tx_queue_end(9)
  • queue_loop(9)
  • queue_for_each(9)
  • tx_queue_for_each(9)
  • txall_queue_for_each(9)
  • rt2x00queue_for_each_entry(9)
  • rt2x00queue_empty(9)
  • rt2x00queue_full(9)
  • rt2x00queue_threshold(9)
  • rt2x00queue_dma_timeout(9)
  • _rt2x00_desc_read(9)
  • rt2x00_desc_read(9)
  • rt2x00_desc_write(9)

like I said. a whole friend group. the group chat is popping off 🌈


and that's the page!! πŸŽ‰ this little icon comes to you from the source ./drivers/net/wireless/ralink/... and it's dated October 2026 β€” so yeah, she's from the future, main character energy fr fr πŸ‘‘πŸ’– mwah, go read queue_end next, ily 🫢

πŸ“¦ where this page comes from