STRUCT DS1685_PRIV(9)
π NAME
okay bestie, gather round β struct ds1685_priv is literally the DS1685 private data structure. that's it, that's the whole vibe. it's the little private stash of info the driver keeps about itself π
β¨ SYNOPSIS
here's the whole glow-up, copied exactly, no cap:
struct ds1685_priv {
struct rtc_device *dev;
void __iomem *regs;
void __iomem *data;
u32 regstep;
int irq_num;
bool bcd_mode;
u8 (*read)(struct ds1685_priv *, int);
void (*write)(struct ds1685_priv *, int, u8);
void (*prepare_poweroff)(void);
void (*wake_alarm)(void);
void (*post_ram_clear)(void);
};
likeβ¦ look at her. main character struct energy fr fr π
πΈ Members
okay so the manual walks through these ones, and only these ones β i'm not out here making stuff up about the other fields, iykyk π
devβ a pointer to thertc_devicestructure. literally just pointing at her rtc buddy π«Άregsβ the iomapped base address pointer of the RTC registers. the home address of all the register gossip πregstepβ the padding/step size between registers. it's optional, so don't come for her if she's not around πΈprepare_poweroffβ pointer to the platform pre-poweroff function. the "we're about to go night-night" hook π€wake_alarmβ pointer to the platform wake alarm function. the "rise and shine bestie" hook β°post_ram_clearβ pointer to the platform post ram-clear function. the "so the ram's been cleared, now what" hook π§Ή
ngl, the struct in the synopsis also hasdata,irq_num,bcd_mode,read, andwritechilling in there β they're in the struct, bestie, they're just not described in the Members list. facts only, no inventing π₯
π¦ SEE ALSO
go read these next, they're giving required reading π
- Kernel file
./include/linux/rtc/ds1685.hstruct ds1685_rtc_platform_data(9)
and that's the page!! π this one's from ./include/linux/rtc, dated October 2026, and yeah the doc itself is labeled struct ds1685_priv(9) β slay, go read the source, ily, bye πβ¨
π¦ 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