HomeFreeBSD

timerfd_create: accept CLOCK_UPTIME/CLOCK_BOOTTIME

Description

timerfd_create: accept CLOCK_UPTIME/CLOCK_BOOTTIME

This is a common use case when using timerfd_create to actually use
it with CLOCK_BOOTTIME on linux which is CLOCK_UPTIME for us.

Note that currently on freebsd CLOCK_BOOTTIME is CLOCK_UPTIME, but the
semantic is supposed to be different, this has to be fixed later.

Tested with the fnott notification software

Reviewed by: des, imp
Differential Revision: https://reviews.freebsd.org/D44253

(cherry picked from commit cf742faa39a58a9b43b671c66097e6880459d4ae)
(cherry picked from commit 0ecf0b26a750582b804e238e6446db55188d7fdc)

Details

Provenance
baptAuthored on Mar 6 2024, 2:11 PM
Reviewer
des
Differential Revision
D44253: timerfd_create: accept CLOCK_UPTIME/CLOCK_BOOTTIME
Parents
rG122f46bd922b: pci_vendors: update to 2024.02.02
Branches
Unknown
Tags
Unknown