STRUCT SCA3000_STATE(9)
π struct sca3000_state(9) π
okay so bestie, this is a page from the Kernel API Manual and honestly? it's giving "underrated little struct that holds the whole vibe together" energy. let's get into it π«Ά
β¨ NAME β¨
struct sca3000_state β literally just device instance state information. the receipts, the lore, the state of the device. that's her π
π¦ SYNOPSIS π¦
here's the actual shape of her, and yes we're keeping it exactly like this, no edits no cap:
struct sca3000_state {
struct spi_device *us;
const struct sca3000_chip_info *info;
int mo_det_use_count;
struct mutex lock;
u8 rx[384];
u8 tx[6];
};
like... look at her. iconic. πΈ
π Members π
breaking down the squad one by one, bestie:
usβ the associated spi device. her plus-one, her ride-or-die connection πinfoβ chip variant information. all the deets about which chip we're dealing with, iykykmo_det_use_countβ reference counter for the motion detection unit. keeping track of how many people are using the motion detection unit, like a little attendance sheet πlockβ the lock used to protect elements ofsca3000_stateand the underlying device state. she's the bouncer at the club, nobody gets in without her say-so π₯rxβ dma-able receive buffer. incoming data, bestie, and it's dma-able so she goes fast β¨txβ dma-able transmit buffer. outgoing data, same deal, dma-able and ready to slay π«
π SEE ALSO π
the whole extended friend group, no one left out fr fr β and yes, from the kernel file ./drivers/iio/accel/sca3000.c:
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_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)
lowkey a whole family tree. go read them, bestie, they're all right there in ./drivers/iio/accel ππ
and that's the page!! signed, sealed, delivered from ./drivers/iio/accel, dated October 2026, and yeah she's still struct sca3000_state(9) at the bottom in the footer, but we already knew that π§ββοΈβ bye bestie, 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