STRUCT PM8XXX_RTC(9)
π struct pm8xxx_rtc(9) π
okay so bestie, this is a page straight out of the Kernel API Manual β it's the internal structure for the RTC driver, and honestly? it's giving backstage-pass energy. this is the lil' data blob that holds everything the pm8xxx RTC driver needs to know about itself. ngl, she's organized. π
β¨ SYNOPSIS β¨
here's the whole struct, bestie β type it exactly like this or the compiler will simply pass away:
struct pm8xxx_rtc {
struct rtc_device *rtc;
struct regmap *regmap;
bool allow_set_time;
bool use_uefi;
int alarm_irq;
const struct pm8xxx_rtc_regs *regs;
struct device *dev;
struct qcom_uefi_rtc_info rtc_info;
struct nvmem_cell *nvmem_cell;
u32 offset;
bool offset_dirty;
};
πΈ Members πΈ
okay now the fun part β meet the cast, iykyk π
rtcβ the RTC device itself. literally the whole point of this struct, main character energy fr. πregmapβ theregmapused to access registers. it's the little messenger that goes and pokes the hardware for you. π¦allow_set_timeβ whether the time can be set. yes/no, can we touch the clock or not. πuse_uefiβ use a UEFI variable as a fallback for the offset. backup plan behavior, we love to see it. β¨alarm_irqβ the alarm IRQ number. when the alarm goes off, this is the digits it calls. π₯regsβ register description. the map of where everything lives. πdevβ device structure. the whole device situation, right here. πrtc_infoβ the qcom UEFI rtc-info structure. yes, the qcom one specifically, don't get it twisted. πΈnvmem_cellβ the nvmem cell for the offset. that's where the offset chills. πoffsetβ offset from epoch, in seconds. au32, so be normal about it. βoffset_dirtyβ the offset needs to be stored on shutdown. it's flagged, it's marked, it's gotta get written down before we dip. π
π SEE ALSO π
- Kernel file
./drivers/rtc/rtc-pm8xxx.c struct pm8xxx_rtc_regs(9)
fr fr, every single member up there is load-bearing β miss one and the vibe check fails at compile time π
okay that's the whole page, bestie π«Ά sign-off time: this one comes from the kernel source at ./drivers/rtc, straight out of the Kernel API Manual, and it's dated October 2026. 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