STRUCT QUEUE_ENTRY(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct queue_entry(9) β€” like, the whole kernel API manual, but make it make sense πŸŽ€

okay bestie, so this is struct queue_entry(9) from the Kernel API Manual, and honestly? it's giving "small struct, big responsibilities." it's a struct, it lives in the kernel, and it's literally one entry inside a &struct data_queue. slay. let's get into it πŸ’–


✨ NAME ✨

struct queue_entry β€” the entry that lives inside the &struct data_queue. that's it, that's the vibe. main character energy in struct form πŸ‘‘


🌸 SYNOPSIS 🌸

here's the whole thing, verbatim, no cap β€” don't touch the syntax, she's perfect as she is:

struct queue_entry {
    unsigned long flags;
    unsigned long last_action;
    struct data_queue *queue;
    struct sk_buff *skb;
    unsigned int entry_idx;
    void *priv_data;
 };

look at those fields. six of them. each one doing its little job 🫢


πŸ¦‹ Members πŸ¦‹

okay so let's go field by field, because each one is a whole personality:

  • flags β€” the entry flags. for the deets, go look at enum queue_entry_flags. that's where the flag lore lives 🚩
  • last_action β€” the timestamp of the last change. literally "when did something last happen to me" as a field. relatable 😭
  • queue β€” the data queue (struct data_queue) that this entry belongs to. it's the entry's home base, its chosen family 🏠
  • skb β€” the buffer that's currently being transmitted (if this is a TX queue), or the one used to directly receive data in (if it's an RX queue). so it's the buffer, and which job it's doing depends on the queue type. dual threat, honestly ✨
  • entry_idx β€” the entry index number. yes it's just a number. no it's not boring. it's the number πŸ”’
  • priv_data β€” private data that belongs to this queue entry. heads up: the pointer points to data that's specific to a particular driver and queue type. so like, it's private-private. iykyk πŸ™ˆ

⭐ SEE ALSO ⭐

the full friend group, no one left out, periodt:


okay that's the whole page bestie, you ate that πŸ’… one last thing β€” this lil beauty comes from the source ./drivers/net/wireless/ralink/... and it's dated October 2026, filed under struct queue_entry(9). go forth and queue your entries responsibly πŸ§šβ€β™€οΈπŸ’œπŸŒˆ

πŸ“¦ where this page comes from