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)
Wed, Oct 7, 5:12 PM
Unknown Object (File)
Mon, Oct 5, 3:45 AM
Unknown Object (File)
Sat, Oct 3, 7:49 PM
Unknown Object (File)
Tue, Sep 29, 9:11 AM
Unknown Object (File)
Sep 6 2026, 12:45 AM
Unknown Object (File)
Sep 5 2026, 9:36 PM
Unknown Object (File)
Sep 3 2026, 2:02 PM
Unknown Object (File)
Sep 1 2026, 8:45 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