sca3000_reg_lock_on(9)
π sca3000_reg_lock_on(9) β a Kernel API Manual moment β¨
okay so bestie, welcome to the kernel API manual (that's the manual name btw, we're in it π) and today's main character is sca3000_reg_lock_on. she's small, she's specific, she's iconic in a very niche way. let's get into it π
β¨ NAME β¨
sca3000_reg_lock_on β literally just: test if the ctrl register lock is on. that's it. that's the whole vibe check π₯
π¦ SYNOPSIS π¦
int sca3000_reg_lock_on (struct sca3000_state *st );
yes bestie, that's the whole signature. int out, one struct pointer in. slay πΈ
π ARGUMENTS π
stβ the driver specific device instance data. like, your device's little bundle of state. driver-specific, so she knows things about her device that other devices don't. no cap π
π DESCRIPTION π
so here's the thing: the lock must be held. that's not a suggestion, that's not a "try your best", that's the rule. lock held, or you're not invited to the party π
π SEE ALSO π
the kernel file lives at ./drivers/iio/accel/sca3000.c and honestly there's a whole squad over there, so go say hi π:
struct sca3000_state(9)struct sca3000_chip_info(9)__sca3000_unlock_reg_lock(9)sca3000_write_ctrl_reg(9)sca3000_read_ctrl_reg(9)sca3000_print_rev(9)__sca3000_get_base_freq(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)
that's the whole friend group bestie, not me listing them all and then skipping some β every single one made the list π«Ά
also a lil reminder ok: before you call this one, the lock must be held. i said it once in DESCRIPTION and i'm saying it again because it's the whole point π
and that's the page!! cute little sign-off for you: this one comes from ./drivers/iio/accel (that's the source, bestie) and she's dated October 2026 for the version vibe. mwah πβ¨
π¦ 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