Page MenuHomeFreeBSD

pf: atomically increment state ids
ClosedPublic

Authored by kp on Oct 8 2022, 8:36 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 23, 6:16 PM
Unknown Object (File)
Sun, Nov 16, 3:31 AM
Unknown Object (File)
Wed, Nov 5, 3:19 AM
Unknown Object (File)
Nov 3 2025, 4:18 PM
Unknown Object (File)
Nov 2 2025, 4:33 AM
Unknown Object (File)
Nov 1 2025, 3:42 AM
Unknown Object (File)
Oct 29 2025, 2:22 PM
Unknown Object (File)
Oct 29 2025, 2:22 PM

Details

Summary

Rather than using a per-cpu state counter, and adding in the CPU id we
can atomically increment the number.
This has the advantage of removing the assumption that the CPU ID fits
in 8 bits.

Event: Aberdeen Hackathon 2022

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 47751
Build 44638: arc lint + arc unit