asd_control_led(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 an int, no I'm not gonna explain why, that's just how she is πŸ™ˆ
  • op β€” integer, 1 to enable, 0 to 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:

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