ath5k_hw_htoclock(9)
β¨ ath5k_hw_htoclock β translate usec to hw clock units β¨
okay so this little cutie lives in the Kernel API Manual, section 9, and honestly? it's giving "small function, big main character energy" π
πΈ SYNOPSIS πΈ
unsigned int ath5k_hw_htoclock (struct ath5k_hw *ah , unsigned int usec );
like, that's the whole vibe. two args, one unsigned int coming back out. slay β¨
π ARGUMENTS π
ahβ thestruct ath5k_hw. yes bestie, that exact struct, that's the one π«Άusecβ your value, but in microseconds. so tiny. so precious π₯Ί
π DESCRIPTION π
okay so the whole point: it translates usecs into hw clock units, and it does that based on the current hw clock rate. no cap, that's the mechanic. clock rate changes? the math changes with it π₯
and then it returns the number of clock units. that's it. that's the function. iconic behavior, honestly π
π SEE ALSO π
bestie, the friend group is LARGE. every single one of these is invited to the party π
- Kernel file
./drivers/net/wireless/ath/ath5k/reset.cβ the Reset function and helpers(9), the mothership of this whole squad π ath5k_hw_register_timeout(9)ath5k_hw_clocktoh(9)β the literal reverse bestie of this page, iykyk πΈath5k_hw_init_core_clock(9)ath5k_hw_set_sleep_clock(9)ath5k_hw_nic_reset(9)ath5k_hw_wisoc_reset(9)ath5k_hw_set_power_mode(9)ath5k_hw_on_hold(9)ath5k_hw_nic_wakeup(9)ath5k_hw_tweak_initval_settings(9)ath5k_hw_commit_eeprom_settings(9)ath5k_hw_reset(9)
they all live under ./drivers/net/wireless/ath/ath5k btw π¦
no drama warnings on this one, it's just pure conversion math β but fr fr, keep your eyes on the current hw clock rate because that's what the whole result hangs on π
aaaand that's the page! brought to you by October 2026 energy, straight out of ./drivers/net/wireless/ath/ath5k πΈ go forth and convert your microseconds, bestie, you're gonna ate this πβ¨π
π¦ 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