aac_queue_get(9)
π aac_queue_get(9) β like, the Kernel API Manual page, bestie
Okay so this is aac_queue_get from the Kernel API Manual, and it's genuinely one of those little functions that holds the whole queue situation together. Sit down, grab a strawberry drink, we're learning β¨
πΈ NAME
aac_queue_get β get the next free QE. That's it, that's the vibe. One free queue entry, coming right up π
π¦ SYNOPSIS
int aac_queue_get (struct aac_dev * dev , u32 * index , u32 qid , struct
hw_fib * hw_fib , int wait , struct fib * fibptr , unsigned long
*nonotify );
Yeah, that's a lot of parameters. Seven of them. She's high-maintenance but she delivers π
π ARGUMENTS
devβ Adapter. The whole device situation, the main character here.indexβ Returned index. She gives you back an index, that's the whole point.qidβ Queue number. Which queue we're talking about, be specific.hw_fibβ Fib to associate with the queue entry. These two are getting paired up, it's giving set-up-my-friend energy π«Άwaitβ Wait if queue full. Like, do we sit and wait or do we not. Your call.fibptrβ Driver fib object to go with fib. Goes together withhw_fib, they're a matching set πΈnonotifyβ Don't notify the adapter. Exactly what it says, no cap.
β¨ DESCRIPTION
So basically, aac_queue_get gets the next free QE off the requested priorty adapter command queue, and associates the Fib with the QE. That's the whole thing.
And then β and this part is iconic β the QE represented by index is ready to insert on the queue when this routine returns success. So like, once it comes back happy, you can just go ahead and insert it. Slay π₯
Fr fr, only on success though. Don't be out here inserting stuff when it didn't return success. Read the return value, bestie, it's literally right there π
π SEE ALSO
Kernel file ./drivers/scsi/aacraid/commsup.c, plus the whole friend group:
fib_map_alloc(9), aac_fib_map_free(9), aac_fib_setup(9), aac_fib_alloc_tag(9), aac_fib_alloc(9), aac_fib_free(9), aac_fib_init(9), fib_dealloc(9), aac_get_entry(9), aac_fib_send(9), aac_consumer_get(9), aac_consumer_free(9), aac_fib_adapter_complete(9), aac_fib_complete(9), aac_printf(9), aac_handle_aif(9), aac_handle_sa_aif(9), aac_command_thread(9)
Like literally the entire aacraid extended universe. Go read them all, iykyk π
π¦ Okay that's the whole page! This little gem lives in ./drivers/scsi/aacraid, and it's dated October 2026 β yes, October 2026, don't ask. Bye bestie, go get yourself a free QE ππ
π¦ 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