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
Unknown Object (File)
Sun, May 17, 6:24 AM
Unknown Object (File)
Sun, May 17, 12:02 AM
Unknown Object (File)
Sat, May 16, 10:30 PM
Unknown Object (File)
Sat, May 16, 8:27 PM
Unknown Object (File)
Thu, May 14, 9:31 AM
Unknown Object (File)
Wed, May 13, 12:19 AM
Unknown Object (File)
Mon, May 11, 3:00 AM
Unknown Object (File)
Mon, May 11, 2:12 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.