Page MenuHomeFreeBSD

pf: atomically increment state ids
ClosedPublic

Authored by kp on Oct 8 2022, 8:36 AM.
Tags
None
Referenced Files
F108351323: D36915.diff
Fri, Jan 24, 1:56 AM
Unknown Object (File)
Thu, Jan 9, 6:01 PM
Unknown Object (File)
Thu, Jan 9, 5:36 PM
Unknown Object (File)
Tue, Jan 7, 4:55 AM
Unknown Object (File)
Dec 6 2024, 1:53 AM
Unknown Object (File)
Dec 6 2024, 1:52 AM
Unknown Object (File)
Dec 6 2024, 1:52 AM
Unknown Object (File)
Dec 6 2024, 1:52 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