Page MenuHomeFreeBSD

pf: atomically increment state ids
ClosedPublic

Authored by kp on Oct 8 2022, 8:36 AM.
Tags
None
Referenced Files
F109696542: D36915.id.diff
Sat, Feb 8, 11:38 AM
Unknown Object (File)
Fri, Jan 24, 6:08 AM
Unknown Object (File)
Fri, Jan 24, 1:56 AM
Unknown Object (File)
Jan 9 2025, 6:01 PM
Unknown Object (File)
Jan 9 2025, 5:36 PM
Unknown Object (File)
Jan 7 2025, 4:55 AM
Unknown Object (File)
Dec 6 2024, 1:53 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