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)
Thu, Oct 9, 1:24 PM
Unknown Object (File)
Thu, Oct 9, 1:24 PM
Unknown Object (File)
Thu, Oct 9, 1:24 PM
Unknown Object (File)
Thu, Oct 9, 1:23 PM
Unknown Object (File)
Thu, Oct 9, 12:33 PM
Unknown Object (File)
Tue, Sep 30, 10:09 AM
Unknown Object (File)
Sun, Sep 28, 2:23 PM
Unknown Object (File)
Sat, Sep 27, 10:32 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