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

Reply via email to