STRUCT IMXDI_DEV(9)
β¨ 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
- 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