Page MenuHomeFreeBSD

linuxkpi: Add `timer64_to_tm()`
ClosedPublic

Authored by dumbbell on Mon, Aug 10, 5:27 PM.
Referenced Files
Unknown Object (File)
Sun, Sep 6, 5:25 AM
Unknown Object (File)
Fri, Sep 4, 11:57 AM
Unknown Object (File)
Fri, Sep 4, 8:09 AM
Unknown Object (File)
Thu, Sep 3, 4:18 PM
Unknown Object (File)
Wed, Sep 2, 8:00 AM
Unknown Object (File)
Tue, Sep 1, 10:41 PM
Unknown Object (File)
Thu, Aug 27, 10:01 PM
Unknown Object (File)
Thu, Aug 27, 10:00 PM
Subscribers

Details

Summary

The function converts a number of seconds since Epoch to a struct tm.

The implementation was copied from contrib/tzcode/localtime.c.

The amdgpu DRM driver started to use it in Linux 6.15.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

bz added inline comments.
sys/compat/linuxkpi/common/src/linux_time.c
11 ↗(On Diff #183793)

Which is public domain. What does that make this file then?

Fix new file license as suggested by @bz.

dumbbell added inline comments.
sys/compat/linuxkpi/common/src/linux_time.c
11 ↗(On Diff #183793)

I renamed the file to suggest that it only contains timesub() and I fixed the license header. Does this match what you had in mind?

I assume the copied file contents and logic are fine, so I haven't reviewed those.

This revision is now accepted and ready to land.Mon, Sep 7, 7:41 PM
This revision was automatically updated to reflect the committed changes.
dumbbell marked an inline comment as done.