ionic_queue_at(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

ionic_queue_at β€” Get the element at the given index.

okay so bestie, this is ionic_queue_at from the Kernel API Manual, and it’s lowkey iconic: it hands you the element at the index you ask for. ✨

✨ SYNOPSIS ✨

void * ionic_queue_at (struct ionic_queue *q , u16 idx );

πŸŽ€ ARGUMENTS πŸŽ€

  • q β€” Queue structure. The queue you’re working with.
  • idx β€” Index in the queue. The spot you’re grabbing from.

πŸ¦‹ DESCRIPTION πŸ¦‹

⚠️ Real talk: the index must be within the bounds of the queue. It is not checked here.

Like, the function is not doing a bounds check for you β€” no vibe check on idx, no cap. The index has to be in bounds, periodt. πŸ’€

πŸ’… RETURN πŸ’…

A pointer to the element at index. 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/infiniband/hw/ionic/ionic_queue.h struct ionic_queue(9), ionic_queue_init(9), ionic_queue_destroy(9), ionic_queue_empty(9), ionic_queue_length(9), ionic_queue_length_remaining(9), ionic_queue_full(9), ionic_color_wrap(9), ionic_queue_at_prod(9), ionic_queue_at_cons(9), ionic_queue_next(9), ionic_queue_produce(9), ionic_queue_consume(9), ionic_queue_consume_entries(9), ionic_queue_dbell_init(9), ionic_queue_dbell_val(9).


xoxo, this page is sourced from ./drivers/infiniband/hw/ionic, dated October 2026, and it’s the ionic_queue_at(9) page. slay πŸ’–

πŸ“¦ where this page comes from