Page MenuHomeFreeBSD

pf: atomically increment state ids
ClosedPublic

Authored by kp on Oct 8 2022, 8:36 AM.
Tags
None
Referenced Files
F143936041: D36915.id.diff
Mon, Feb 2, 5:58 AM
Unknown Object (File)
Fri, Jan 30, 2:17 AM
Unknown Object (File)
Thu, Jan 29, 3:18 AM
Unknown Object (File)
Mon, Jan 26, 8:29 AM
Unknown Object (File)
Dec 24 2025, 5:34 AM
Unknown Object (File)
Dec 11 2025, 1:08 AM
Unknown Object (File)
Nov 23 2025, 6:16 PM
Unknown Object (File)
Nov 16 2025, 3:31 AM

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 47750
Build 44637: arc lint + arc unit