STRUCT SCA3000_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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, iykyk
  • mo_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 of sca3000_state and 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:


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