Page MenuHomeFreeBSD

membarrier(2): implement the MEMBARRIER_CMD_GET_REGISTRATIONS command
AcceptedPublic

Authored by kib on Sat, Apr 18, 6:48 PM.

Details

Summary

Also:

membarrier(2): use atomic for lockless read of curproc->p_flag2

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

kib requested review of this revision.Sat, Apr 18, 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
124
230

Need to declare int res = 0

234
236
sys/sys/membarrier.h
52

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.Sat, Apr 18, 7:56 PM