asd_control_led(9)
π
asd_control_led β kernel API manual, bestie edition π
okay so this is the page for asd_control_led(9) β it lives in the Kernel API Manual, and it's literally just "enable/disable an LED on the board". tiny function, big main character energy β¨
β¨ NAME β¨
asd_control_led β enable/disable an LED on the board π‘
bestie it does exactly what it says on the tin, no plot twists, no cap.
πΈ SYNOPSIS πΈ
void asd_control_led (struct asd_ha_struct *asd_ha , int phy_id , int op );
returns void, so like... don't go looking for a return value, she gives you nothing back and she's iconic for it π«Ά
π¦ ARGUMENTS π¦
asd_haβ pointer to host adapter structure. this is the whole adapter's vibe, you gotta hand it over first π§phy_idβ integer, the phy id. yes it's anint, no I'm not gonna explain why, that's just how she is πopβ integer,1to enable,0to disable the LED. that's the whole switch. one or zero. binary baddie behavior π
π₯ DESCRIPTION π₯
so the way this works: first we output enable the LED, then we set the source to be an external module. that's it. that's the whole function. two steps, ate, periodt β
like β output enable first, then source equals external module. order matters, don't switch it up on her π
ngl this is one of those functions where the manpage is longer than the code. and honestly? respect. π
π SEE ALSO π
this function is lowkey in its group-chat era, so here's the whole friend group, all from the kernel file ./drivers/scsi/aic94xx/aic94xx_hwi.c:
asd_init_scbs(9)asd_init_escbs(9)asd_chip_hardrst(9)asd_init_chip(9)asd_init_ctxmem(9)asd_chip_reset(9)asd_process_donelist_isr(9)asd_com_sas_isr(9)asd_dch_sas_isr(9)asd_rbi_exsi_isr(9)asd_hst_pcix_isr(9)asd_hw_isr(9)asd_ascb_alloc_list(9)asd_swap_head_scb(9)asd_start_scb_timers(9)asd_post_ascb_list(9)asd_post_escb_list(9)asd_turn_led(9)
go read asd_turn_led(9) next fr fr, they're literally siblings π
k bye bestie, this page came straight out of ./drivers/scsi/aic94xx and it's dated October 2026 β mwah, slay, don't forget to make htmldocs πβ¨
π¦ 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