STRUCT XSDFEC_DEV(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 struct xsdfec_dev(9) 🌸

okay bestie, welcome to the kernel API manual β€” this one's struct xsdfec_dev(9), and yes it's a whole driver data for SDFEC situation. buckle up πŸŽ€


✨ NAME ✨

struct xsdfec_dev β€” the driver data for SDFEC, literally the glow-up container that holds everything the driver needs 🫢


✨ SYNOPSIS ✨

struct xsdfec_dev {
    struct miscdevice miscdev;
    struct xsdfec_clks clks;
    wait_queue_head_t waitq;
    struct xsdfec_config config;
    char dev_name[DEV_NAME_LEN];
    unsigned long flags;
    void __iomem *regs;
    struct device *dev;
    enum xsdfec_state state;
    spinlock_t error_data_lock;
    int dev_id;
    u32 isr_err_count;
    u32 cecc_count;
    u32 uecc_count;
    int irq;
    bool state_updated;
    bool stats_updated;
    bool intr_enabled;
 };

no cap, that's the whole struct, copied exactly, don't come for me πŸ’…


✨ Members ✨

bestie this is the member-by-member breakdown, the main character roster of the struct πŸ‘‘

  • miscdev β€” the misc device handle. iconic little handle.
  • clks β€” the clocks that the SDFEC driver manages. yes, it's clockin' ⏰
  • waitq β€” the driver wait queue. it waits, we love that for it.
  • config β€” the configuration of the SDFEC device. the settings, the vibes.
  • dev_name β€” the device name. yes it has a name, be respectful ✨
  • flags β€” spinlock flags. they're flags, they're spinning, they're locking.
  • regs β€” the device physical base address. the physical address, fr fr.
  • dev β€” a pointer to the device struct. pointer queen 🫢
  • state β€” the state of the SDFEC device. current mood: stateful.
  • error_data_lock β€” the error counter and states spinlock. literally guarding the error counters and states, not me being protective 😭
  • dev_id β€” the device ID. identity ✨
  • isr_err_count β€” the count of ISR errors. counting them, unfortunately.
  • cecc_count β€” the count of Correctable ECC errors (SBE). correctable! we fix those πŸ’–
  • uecc_count β€” the count of Uncorrectable ECC errors (MBE). uncorrectable πŸ’€ not great, not terrible β€” okay it's kinda terrible.
  • irq β€” the IRQ number. interrupt me, bestie.
  • state_updated β€” indicates the state was updated by the interrupt handler. the interrupt handler did that πŸ™ˆ
  • stats_updated β€” indicates the stats were updated by the interrupt handler. stats! updated! by the interrupt handler!
  • intr_enabled β€” indicates IRQ is enabled. it's enabled, it's giving enabled energy.

✨ Description ✨

so basically: this structure contains the necessary state for the SDFEC driver to operate. that's it, that's the thesis statement β€” every field up there exists so the driver can actually function πŸ¦‹


🌈 SEE ALSO 🌈

  • Kernel file ./drivers/misc/xilinx_sdfec.c
  • struct xsdfec_clks(9)

okay that's the whole page, you ate that πŸ“ this gem lives over in ./drivers/misc and the source/version + date on the original footer said October 2026 β€” so shoutout to October 2026 and the ./drivers/misc crew, mwah πŸ’œ periodt.

πŸ“¦ where this page comes from