Page MenuHomeFreeBSD

atomic: add atomic_interrupt_fence()
ClosedPublic

Authored by kib on Feb 24 2021, 10:50 AM.

Details

Summary

with the semantic following C11 signal_fence, that is, it establishes ordering between its place and any interrupt handler executing on the same CPU.

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

kib requested review of this revision.Feb 24 2021, 10:50 AM
kib created this revision.
This revision is now accepted and ready to land.Feb 24 2021, 10:56 AM
rlibby added inline comments.
share/man/man9/atomic.9
34

Comma?

298–305

Apologies in advance for nitpicking grammar, but since this is the man page (which by the way is excellent overall):

Interrupt Fence Operation

I think should be plural, like Thread Fence Operations is.

It is modelled after similar C11 function
.Fn atomic_signal_fence() ,
adapted for the kernel environment.

Suggestions:

It is modelled after the similar C11 function
.Fn atomic_signal_fence() ,
and adapted for the kernel environment.

Additionally my spell check wants "modelled" to have one L, but I think this is a regional thing and I'm not sure if we're consistent about that.

kib marked 2 inline comments as done.

Man page fixes.

This revision now requires review to proceed.Feb 24 2021, 8:46 PM
This revision is now accepted and ready to land.Feb 24 2021, 8:48 PM
This revision was automatically updated to reflect the committed changes.