__sca3000_get_base_freq(9)
π
__sca3000_get_base_freq β a Kernel API Manual moment (section 9, bestie)
okay so picture this: we're deep in the kernel, specifically the 9 part of the manual β the Kernel API Manual β and this little function is out here doing one very specific job. Let's get into it β¨
πΈ NAME πΈ
__sca3000_get_base_freq β obtain mode specific base frequency π
Like, it literally gets you the base frequency for whatever mode you're in. That's the whole vibe. Slay.
β¨ SYNOPSIS β¨
int __sca3000_get_base_freq (struct sca3000_state *st , const struct
sca3000_chip_info *info , int *base_freq );
π¦ ARGUMENTS π¦
stβ the private, driver specific, device instance specific state. yes bestie, all three at once. it's giving "main character state struct" πinfoβ the chip type specific information. so like, which chip we're dealing with π«Άbase_freqβ the base frequency for the current measurement mode. this is the output, the moment, the whole point π
π DESCRIPTION π
lock must be held π
that's it. that's the description. short, iconic, and absolutely non-negotiable β if you call this without holding the lock, that's on you, bestie. not me. π
π SEE ALSO π
- Kernel file
./drivers/iio/accel/sca3000.c struct sca3000_state(9)struct sca3000_chip_info(9)sca3000_reg_lock_on(9)__sca3000_unlock_reg_lock(9)sca3000_write_ctrl_reg(9)sca3000_read_ctrl_reg(9)sca3000_print_rev(9)sca3000_read_raw_samp_freq(9)sca3000_write_raw_samp_freq(9)sca3000_read_av_freq(9)sca3000_write_event_value(9)sca3000_ring_int_process(9)sca3000_event_handler(9)sca3000_write_event_config(9)sca3000_hw_ring_preenable(9)sca3000_clean_setup(9)
like, the whole sca3000 friend group is here. iykyk π
and that's the page, bestie! this one lives in ./drivers/iio/accel and it's dated October 2026 β so go forth, hold that lock, and get that base frequency. periodt. π§π
π¦ 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