Page MenuHomeFreeBSD

membarrier(2): implement the MEMBARRIER_CMD_GET_REGISTRATIONS command
ClosedPublic

Authored by kib on Apr 18 2026, 6:48 PM.
Tags
None
Referenced Files
F163025635: D56507.id175930.diff
Sun, Jul 19, 8:20 AM
Unknown Object (File)
Wed, Jul 15, 7:18 AM
Unknown Object (File)
Wed, Jul 15, 7:18 AM
Unknown Object (File)
Thu, Jul 2, 8:35 PM
Unknown Object (File)
Thu, Jul 2, 8:27 PM
Unknown Object (File)
Thu, Jun 25, 12:38 PM
Unknown Object (File)
Sun, Jun 21, 2:45 PM
Unknown Object (File)
Jun 17 2026, 9:45 AM

Diff Detail

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

Event Timeline

kib requested review of this revision.Apr 18 2026, 6:48 PM

I succesfully tested the current patch with my suggestions along with https://github.com/freebsd/freebsd-src/pull/2147

sys/kern/kern_membarrier.c
123
229

Need to declare int res = 0

233
235
sys/sys/membarrier.h
52 ↗(On Diff #175845)

This value collides with MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ below.

kib marked 5 inline comments as done.
kib added a reviewer: markj.

Branko' feedback.

This revision is now accepted and ready to land.Apr 18 2026, 7:56 PM

I succesfully tested the current patch with my suggestions along with https://github.com/freebsd/freebsd-src/pull/2147

Is there any reason not to turn your test program into something we can run as part of the test suite?

I succesfully tested the current patch with my suggestions along with https://github.com/freebsd/freebsd-src/pull/2147

Is there any reason not to turn your test program into something we can run as part of the test suite?

The test program was generated with the help from Claude Sonnet 4.6. I'd rather write my own test if it were to be included in FreeBSD.