Page MenuHomeFreeBSD

Linux ABI timerfd can't work on FreeBSD 14 stable.
ClosedPublic

Authored by vico.chern_qq.com on Sep 4 2023, 3:24 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 10, 5:38 PM
Unknown Object (File)
Sun, Nov 10, 3:28 PM
Unknown Object (File)
Sat, Nov 9, 7:17 PM
Unknown Object (File)
Thu, Nov 7, 8:50 PM
Unknown Object (File)
Thu, Nov 7, 7:04 PM
Unknown Object (File)
Sep 24 2024, 11:47 AM
Unknown Object (File)
Sep 24 2024, 11:47 AM
Unknown Object (File)
Sep 24 2024, 11:36 AM
Subscribers

Details

Summary

The timerfd is introduced in FreeBSD 14, and the Linux ABI timerfd is also moved to FreeBSD native timerfd, but it can't work well as Linux TFD_CLOEXEC and TFD_NONBLOCK haven't been converted to FreeBSD TFD_CLOEXEC and TFD_NONBLOCK.

Add TFD_CLOEXEC and TFD_NONBLOCK conversion to FreeBSD in linux_timerfd_create.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Add test case, and this case need be compiled on Ubuntu.

Added Jake who has some reviews in this area too

This revision is now accepted and ready to land.Sep 4 2023, 10:01 AM
This revision was automatically updated to reflect the committed changes.