[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH 0/3] Adding /dev/rtc device (work in progress)
From: |
Samuel Thibault |
Subject: |
Re: [RFC PATCH 0/3] Adding /dev/rtc device (work in progress) |
Date: |
Fri, 1 Nov 2024 11:35:25 +0100 |
Hello,
Zhaoming Luo, le ven. 01 nov. 2024 18:28:04 +0800, a ecrit:
> Currently I am working on adding /dev/rtc. For now I can compile it and
> use `settrans` to create a device file; I can confirm that ioctl() works
> perfectly on the generated device file.
Congrats :)
> The next thing I'm going to do is implementing the rtc server code, i.e
> rtc device driver. I have no experience of writing driver but I want to
> give it a try. Any document that is recommended to read for implementing
> rtc device driver?
See in the util-linux package the sys-utils/hwclock-cmos.c source. Its
gpl2+, so you can as well just copy over the implementation.
Samuel