]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Type validating smr protected pointer accessors.
authorjeff <jeff@FreeBSD.org>
Wed, 19 Feb 2020 08:15:20 +0000 (08:15 +0000)
committerjeff <jeff@FreeBSD.org>
Wed, 19 Feb 2020 08:15:20 +0000 (08:15 +0000)
commitf397b9cfe8d99e65fd0dc93022e4d8da5bf805de
tree4103e318c296d67cf893cbe8d0024820de4dc4c9
parent4f4d8e5e8ed1bdef4b788eb7b2617686a2ba129d
Type validating smr protected pointer accessors.

This API is intended to provide some measure of safety with SMR
protected pointers.  A struct wrapper provides type checking and
a guarantee that all access is mediated by the API unless abused.  All
modifying functions take an assert as an argument to guarantee that
the required synchronization is present.

Reviewed by: kib, markj, mjg
Differential Revision: https://reviews.freebsd.org/D23711
sys/sys/smr.h