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)
Tue, Apr 23, 10:56 PM
Unknown Object (File)
Sat, Apr 6, 7:08 PM
Unknown Object (File)
Sat, Apr 6, 5:09 AM
Unknown Object (File)
Jan 8 2024, 3:28 PM
Unknown Object (File)
Dec 23 2023, 3:40 AM
Unknown Object (File)
Dec 23 2023, 1:35 AM
Unknown Object (File)
Dec 12 2023, 11:45 AM
Unknown Object (File)
Nov 28 2023, 12:24 PM
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.