asd_build_control_phy(9)
π asd_build_control_phy(9) β from the Kernel API Manual, bestie π
Okay so picture this: you're deep in the kernel, and you need to build a CONTROL PHY SCB. That's literally what this function is for, and yes, its whole name is asd_build_control_phy. Iconic. Periodt. β¨
π¦ SYNOPSIS π¦
void asd_build_control_phy (struct asd_ascb *ascb , int phy_id , u8
subfunc );
Like, that's the whole vibe. Three args, no return value, she just does the thing. π
πΈ ARGUMENTS πΈ
ascbβ pointer to anascb. That's it, that's the whole description, no notes. π«Άphy_idβ the phy id you wanna control, as an integer. Think of it as which phy you're texting. πsubfuncβ the subfunction: basically, what you're actually gonna do to the phy. The action. The plot. π
β¨ DESCRIPTION β¨
Okay so real talk β this function builds a CONTROL PHY scb. That's her whole job.
And like, crucial detail: no allocation of any kind is performed. None. Zero. Nada. Not me allocating memory in a build function, no ma'am. π
Your ascb comes pre-allocated via the list function, so that's already handled for you, bestie.
Here's the fun part β the caller is allowed to override ascb->tasklet_complete and point it at its very own callback function. Main character energy, honestly. π
BUT (and this is the important bit, don't skip it): it must call asd_ascb_free at its tasklet complete function. Non-negotiable. That's the vibe check. π
If you're wondering what a correct one of these looks like, go see the default implementation. It's giving reference material. π§
π₯ SEE ALSO π₯
- Kernel file
./drivers/scsi/aic94xx/aic94xx_scb.cβ the source, the lore, the origin story β asd_get_attached_sas_addr(9)asd_invalidate_edb(9)control_phy_tasklet_complete(9)asd_ascb_timedout(9)
All of these are lowkey obsessed with each other, iykyk. π
And that's the page, bestie! Brought to you by ./drivers/scsi/aic94xx, dated October 2026, and she answers to asd_build_control_phy(9) β slay, go build some SCBs. π
β¨
π¦ 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