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)
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
Unknown Object (File)
Dec 6 2024, 1:40 AM
Unknown Object (File)
Dec 3 2024, 3:06 PM
Unknown Object (File)
Nov 29 2024, 4:24 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