queue_next(9)
π 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 macrosqueue_endandtx_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
- 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