Page MenuHomeFreeBSD

pf: atomically increment state ids
ClosedPublic

Authored by kp on Oct 8 2022, 8:36 AM.
Tags
None
Referenced Files
F174679547: D36915.id111584.diff
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)
Sun, Sep 6, 12:45 AM
Unknown Object (File)
Sat, Sep 5, 9:36 PM
Unknown Object (File)
Sep 3 2026, 2:02 PM
Unknown Object (File)
Sep 1 2026, 8:45 PM
Unknown Object (File)
Sep 1 2026, 11:51 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