Page MenuHomeFreeBSD

atomic: Add atomic_load/store_bool()
ClosedPublic

Authored by markj on Aug 8 2022, 6:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 6, 10:16 PM
Unknown Object (File)
Fri, Oct 3, 8:43 AM
Unknown Object (File)
Wed, Oct 1, 2:09 PM
Unknown Object (File)
Sep 10 2025, 1:44 PM
Unknown Object (File)
Sep 9 2025, 11:36 AM
Unknown Object (File)
Aug 19 2025, 7:57 PM
Unknown Object (File)
Jul 26 2025, 12:14 PM
Unknown Object (File)
Jul 21 2025, 4:19 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.