Page MenuHomeFreeBSD

pf: atomically increment state ids
ClosedPublic

Authored by kp on Oct 8 2022, 8:36 AM.
Tags
None
Referenced Files
F160626126: D36915.diff
Fri, Jun 26, 7:51 AM
Unknown Object (File)
Tue, Jun 23, 5:46 PM
Unknown Object (File)
Sat, Jun 13, 2:28 PM
Unknown Object (File)
May 18 2026, 5:55 PM
Unknown Object (File)
May 18 2026, 1:36 PM
Unknown Object (File)
May 18 2026, 1:07 PM
Unknown Object (File)
May 17 2026, 5:35 PM
Unknown Object (File)
May 14 2026, 4:25 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 Not Applicable
Unit
Tests Not Applicable