STRUCT S626_PRIVATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct s626_private(9) πŸ’–

okay so this is a page from the Kernel API Manual and it's literally all about struct s626_private β€” the working data for the s626 driver ✨ like, it's the little backpack of state that driver carries around everywhere it goes πŸŽ€


🌸 NAME 🌸

struct s626_private β€” the working data for the s626 driver, no cap πŸ’…


✨ SYNOPSIS ✨

struct s626_private {
    u8 ai_cmd_running;
    unsigned int ai_sample_timer;
    int ai_convert_count;
    unsigned int ai_convert_timer;
    u16 counter_int_enabs;
    u8 adc_items;
    struct s626_buffer_dma rps_buf;
    struct s626_buffer_dma ana_buf;
    u32 *dac_wbuf;
    u16 dacpol;
    u8 trim_setpoint[12];
    u32 i2c_adrs;
};

πŸ¦‹ Members πŸ¦‹

ok bestie, here's the full roster of fields β€” every single one, we're not skipping anybody, periodt πŸ‘‘

  • ai_cmd_running β€” non-zero if ai_cmd is running. that's it, that's the vibe check 🌈
  • ai_sample_timer β€” the time between samples, measured in units of the timer ⏱️
  • ai_convert_count β€” the conversion counter πŸ”’
  • ai_convert_timer β€” the time between conversion, in units of the timer ⏲️
  • counter_int_enabs β€” the counter interrupt enable mask for the MISC2 register 🎚️
  • adc_items β€” the number of items in the ADC poll list πŸ“‹
  • rps_buf β€” a DMA buffer used to hold the ADC (RPS1) program 🧚
  • ana_buf β€” a DMA buffer used to receive ADC data and hold DAC data 🫢
  • dac_wbuf β€” pointer to the logical adrs of the DMA buffer used to hold DAC data πŸ”₯
  • dacpol β€” image of the DAC polarity register πŸͺž
  • trim_setpoint β€” images of the TrimDAC setpoints (it's a u8[12], twelve of them, being all iconic) 🌟
  • i2c_adrs β€” the I2C device address for the onboard EEPROM (board rev dependent, iykyk) πŸ’œ

πŸ‘€ SEE ALSO πŸ‘€

Kernel file ./drivers/comedi/drivers/s626.c β€” go read it, it's giving main character energy fr fr πŸ’€


that's the whole struct, bestie, nothing dropped, nothing added πŸ’– and that's a wrap from ./drivers/comedi/drivers, dated October 2026 β€” mwah, stay iconic βœ¨πŸŽ€πŸ’…

πŸ“¦ where this page comes from