History log of /freebsd-14.2/sys/kern/sys_timerfd.c (Results 1 – 9 of 9)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/13.4.0-p5, release/13.5.0-p1, release/14.2.0-p3, release/13.5.0, release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4, release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3, release/14.2.0, release/13.4.0, release/14.1.0, release/13.3.0
# bf5387a9 31-Jan-2024 John Baldwin <[email protected]>

timerfd: Move kern_timerfd_* prototypes to <sys/syscallsubr.h>

(cherry picked from commit 18cb422356f259f83ad3189cc4494e56265aef94)


# 104328e6 06-Mar-2024 Baptiste Daroussin <[email protected]>

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 curren

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)

show more ...


# 575a909a 19-Jan-2024 Konstantin Belousov <[email protected]>

kcmp(2): implement for generic file types

(cherry picked from commit f28526e9466cd60ed33053e922238ba1c9040341)


Revision tags: release/14.0.0
# 27d56784 17-Sep-2023 Jake Freeland <[email protected]>

timerfd: Relocate 32-bit compat code

32-bit compatibility code is conventionally stored in
sys/compat/freebsd32. Move freebsd32_timerfd_gettime() and
freebsd32_timerfd_settime() from sys/kern/sys_ti

timerfd: Relocate 32-bit compat code

32-bit compatibility code is conventionally stored in
sys/compat/freebsd32. Move freebsd32_timerfd_gettime() and
freebsd32_timerfd_settime() from sys/kern/sys_timerfd.c to
sys/compat/freebsd32/freebsd32_misc.c.

MFC After: 3 days
Reviewed by: imp, markj
Differential Revision; https://reviews.freebsd.org/D41640

(cherry picked from commit 918966a27479b4fb7c4c8999c4926d83c2c081e5)

show more ...


# d00e6d87 17-Sep-2023 Jake Freeland <[email protected]>

timerfd: Define a locking regime

Define a locking regime for the members of struct timerfd and document
it so future code can follow the standard. The lock legend can be found
in a comme

timerfd: Define a locking regime

Define a locking regime for the members of struct timerfd and document
it so future code can follow the standard. The lock legend can be found
in a comment above struct timerfd.

Additionally,
* Add assertions based on locking regime.
* Fill kn_data with the expiration count when EVFILT_READ is triggered.
* Report st_ctim for stat(2).
* Check if file has f_type == DTYPE_TIMERFD before assigning timerfd
pointer to f_data.

MFC After: 3 days
Reviewed by: imp, kib, markj
Differential Revision: https://reviews.freebsd.org/D41600

(cherry picked from commit a1f506156c4db885d3cc177c93e9c8a28d535d30)

show more ...


# a87dddf3 17-Sep-2023 Mateusz Guzik <[email protected]>

timerfd: convert timerfd_list_lock from sx to mtx

There was no good reason to use the former. This should prevent some
head-scratching by an interested and qualified reader.

(cherry picked from com

timerfd: convert timerfd_list_lock from sx to mtx

There was no good reason to use the former. This should prevent some
head-scratching by an interested and qualified reader.

(cherry picked from commit f4296cfb409a48de00bfa60e76f686c2b031876f)

show more ...


# fc0c2448 25-Aug-2023 Mateusz Guzik <[email protected]>

timerfd: compute fflags before calling falloc

While here dodge list locking in timerfd_adjust if empty.

(cherry picked from commit 5eab523053db79b4bd4f926c7d7ac04444d9c1da)

Approved by: re (cperci

timerfd: compute fflags before calling falloc

While here dodge list locking in timerfd_adjust if empty.

(cherry picked from commit 5eab523053db79b4bd4f926c7d7ac04444d9c1da)

Approved by: re (cperciva@)

show more ...


# 8c496b26 25-Aug-2023 Mateusz Guzik <[email protected]>

timerfd: fix up a memory leak and missing locking

timerfd01 from ltp passes (and some other don't), but none of the tests
crash the kernel.

This is a bare minimum patch to fix up the immediate regr

timerfd: fix up a memory leak and missing locking

timerfd01 from ltp passes (and some other don't), but none of the tests
crash the kernel.

This is a bare minimum patch to fix up the immediate regression.

Reported by: yasu

(cherry picked from commit 02f534b57f84d6f4f97c337b05b383c8b3aaf18c)

Approved by: re (cperciva@)

show more ...


# af93fea7 24-Aug-2023 Jake Freeland <[email protected]>

timerfd: Move implementation from linux compat to sys/kern

Move the timerfd impelemntation from linux compat code to sys/kern. Use
it to implement the new system calls for timerfd. Add a hook to ker

timerfd: Move implementation from linux compat to sys/kern

Move the timerfd impelemntation from linux compat code to sys/kern. Use
it to implement the new system calls for timerfd. Add a hook to kern_tc
to allow timerfd to know when the system time has stepped. Add kqueue
support to timerfd. Adjust a few names to be less Linux centric.

RelNotes: YES
Reviewed by: markj (on irc), imp, kib (with reservations), jhb (slack)
Differential Revision: https://reviews.freebsd.org/D38459

show more ...