sa_sync_cmd(9)
π sa_sync_cmd(9) β like, the kernel API manual bestie
okay so welcome to sa_sync_cmd(9), straight out of the Kernel API Manual β¨ this one's a little function from the aacraid driver fam and honestly? it's giving "send it and wait" energy. let's get into it π«Ά
πΈ NAME πΈ
sa_sync_cmd β send a command and wait π
β¨ SYNOPSIS β¨
int sa_sync_cmd (struct aac_dev *dev , u32 command , u32 p1 , u32 p2 ,
u32 p3 , u32 p4 , u32 p5 , u32 p6 , u32 *ret , u32 *r1 , u32 *r2 , u32
*r3 , u32 *r4 );
that's a lot of parameters, i know π but we're gonna go through every single one, don't worry π
π ARGUMENTS π
devβ the Adapter. like, the whole vibe, the device we're talking to π¦commandβ the Command to execute. the actual thing we wanna do β¨p1β first parameterp2β second parameterp3β third parameterp4β forth parameter (yes, the page literally says "forth", and honestly? iconic π we keep it π )p5β fifth parameterp6β sixth parameterretβ adapter statusr1β first return valuer2β second return valuer3β third return valuer4β forth return value (again with the "forth" π no cap, keeping it exactly as written π)
so yeah β six params going in, four values coming back out, plus the status. slay π
πΌ DESCRIPTION πΌ
This routine will send a synchronous command to the adapter and wait for its completion. π°οΈ
that's it, that's the whole thing β you send the command, you stand there like π§ and you wait until it's done. synchronous queen behavior, no cap π
π SEE ALSO π
Kernel file ./drivers/scsi/aacraid/sa.c β and the whole friend group π«Ά
aac_sa_disable_interrupt(9)aac_sa_enable_interrupt(9)aac_sa_notify_adapter(9)aac_sa_interrupt_adapter(9)aac_sa_start_adapter(9)aac_sa_check_health(9)aac_sa_ioremap(9)aac_sa_init(9)
go read those too, they're literally all in the same file, iykyk π
and that's the page!! π
brought to you by ./drivers/scsi/aacraid in October 2026 β mwah, drink some water, and may all your commands complete synchronously πβ¨π§
π¦ 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