HomeFreeBSD

linuxkpi: Add `timer64_to_tm()`

Description

linuxkpi: Add timer64_to_tm()

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.

Reviewed by: bz
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D58758

Details

Provenance
dumbbellAuthored on Aug 15 2026, 6:31 PM
Reviewer
bz
Differential Revision
D58758: linuxkpi: Add `timer64_to_tm()`
Parents
rG1771ab245c23: nfsuserd.c: Fix handling where pw_name/gr_name differ from lookup name
Branches
Unknown
Tags
Unknown