Page MenuHomeFreeBSD

atomic: Add atomic_load/store_bool()
ClosedPublic

Authored by markj on Aug 8 2022, 6:11 PM.
Tags
None
Referenced Files
F174161633: D36078.id109027.diff
Thu, Oct 1, 1:10 AM
F174161314: D36078.id109014.diff
Thu, Oct 1, 1:06 AM
F174160429: D36078.id109078.diff
Thu, Oct 1, 12:55 AM
F174155982: D36078.diff
Thu, Oct 1, 12:03 AM
Unknown Object (File)
Sat, Sep 26, 3:07 AM
Unknown Object (File)
Fri, Sep 25, 10:51 PM
Unknown Object (File)
Tue, Sep 22, 10:39 PM
Unknown Object (File)
Aug 23 2026, 9:35 AM
Subscribers

Details

Summary

For plain accesses, I can see no reason not to provide them. They will
be useful for jhb's re-import of if_wg.

Diff Detail

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

Event Timeline

markj requested review of this revision.Aug 8 2022, 6:11 PM
sys/sys/atomic_common.h
42

Why #ifdef _KERNEL? Using _Bool, you can do it for userspace, I think. Also, this is a macro, so type is dormant unless the macro is actually used.

Drop _KERNEL guards, use _Bool instead.

This revision is now accepted and ready to land.Aug 8 2022, 9:29 PM
This revision was automatically updated to reflect the committed changes.