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)
Mon, May 18, 5:55 PM
Unknown Object (File)
Mon, May 18, 1:36 PM
Unknown Object (File)
Mon, May 18, 1:07 PM
Unknown Object (File)
Sun, May 17, 5:35 PM
Unknown Object (File)
Thu, May 14, 4:25 PM
Unknown Object (File)
Sat, May 2, 11:19 AM
Unknown Object (File)
Apr 29 2026, 1:17 AM
Unknown Object (File)
Apr 29 2026, 1:10 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 Not Applicable
Unit
Tests Not Applicable