Page MenuHomeFreeBSD

umtx: Expose some of the umtx structures and API to the rest of the kernel.
ClosedPublic

Authored by dchagin on Jul 20 2021, 2:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 29, 12:19 PM
Unknown Object (File)
Mar 7 2024, 5:33 PM
Unknown Object (File)
Feb 18 2024, 2:03 PM
Unknown Object (File)
Feb 3 2024, 6:11 AM
Unknown Object (File)
Jan 14 2024, 4:45 AM
Unknown Object (File)
Oct 31 2023, 5:22 AM
Unknown Object (File)
Oct 26 2023, 6:14 AM
Unknown Object (File)
Sep 6 2023, 12:07 PM
Subscribers

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 40552
Build 37441: arc lint + arc unit

Event Timeline

I do not object against the idea of making more guts of kern_umtx.c usable for e.g. Linuxolator, but I think that polluting sys/umtx.h is not a right approach. I suggest to follow established practice, and add a new header, e.g. sys/umtxvar.h, where most of the stuff you moved could land.

More, I think that ideally you would move all the #ifdef _KERNEL bits from umtx.h to umtxvar.h, leaving umtx.h as ABI header for userspace.

Does it make sense?

sys/sys/umtx.h
187

This is too generic name to expose in the reusable header. Please name it e.g. umtx_abs_timeout().

This revision was not accepted when it landed; it landed in state Needs Review.Jul 29 2021, 9:46 AM
This revision was automatically updated to reflect the committed changes.