STRUCT IMXDI_DEV(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct imxdi_dev(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this one is about struct imxdi_dev(9) and honestly? it's giving private imxdi rtc data energy and we are OBSESSED πŸŽ€

🌸 NAME 🌸

struct imxdi_dev β€” the private imxdi rtc data, no cap πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

struct imxdi_dev {
    struct platform_device *pdev;
    struct rtc_device *rtc;
    void __iomem *ioaddr;
    struct clk *clk;
    u32 dsr;
    spinlock_t irq_lock;
    wait_queue_head_t write_wait;
    struct mutex write_mutex;
    struct work_struct work;
 };
lowkey copy it exactly like that, character for character, bestie β€” the compiler does NOT do vibes πŸ™ˆ

πŸ’œ Members πŸ’œ

okay so here's the whole cast of this struct, main character energy only 🌟

  • pdev β€” pointer to platform dev 🫢
  • rtc β€” pointer to rtc struct ✨
  • ioaddr β€” IO registers pointer πŸ”₯
  • clk β€” input reference clock ⭐
  • dsr β€” copy of the DSR register πŸ’€ (yes, a copy, keep that in mind)
  • irq_lock β€” interrupt enable register (DIER) lock πŸ”’
  • write_wait β€” registers write complete queue 🌈
  • write_mutex β€” serialize registers write πŸŽ€
  • work β€” schedule alarm work πŸ‘‘

🧚 SEE ALSO 🧚

  • Kernel file ./drivers/rtc/rtc-imxdi.c πŸ“

ngl if you're poking around this one, go read that file too β€” iykyk πŸ“

okay that's the whole page, you ate that 🫢✨

so like, sign-off time: this came from ./drivers/rtc, dated October 2026, in the Kernel API Manual β€” iconic, periodt πŸ’…πŸ‘‘

πŸ“¦ where this page comes from