On Mon, Mar 03, 2025 at 07:29:31PM +0100, Peter Skvarka wrote:
> Not easy to explain details of the overall data flow, important for porting
> to NetBSD is to minimize differences,
> Problems to abstract some different os features comes when principles are
> significantly different.

But can you explain why that struct is needed inside the kernel? It just
makes no sense at all to me and I am curious :-)

Of course there *are* parts of the kernel that deal with simmilar structures,
like drivers for RTC and they use e.g. struct clock_ymdhms and there are
a few conversion functions for them in src/sys/dev/clock_subr.h, like
clock_sec_to_ymdhms() which takes seconds and converts it to year, month,
day, hour, minute and seconds.

Martin

Reply via email to