HomeFreeBSD

Add a VA_IS_CLEANMAP() macro.

Description

Add a VA_IS_CLEANMAP() macro.

This macro returns true if a provided virtual address is contained
in the kernel's clean submap.

In CHERI kernels, the buffer cache and transient I/O map are allocated
as separate regions. Abstracting this check reduces the diff relative
to FreeBSD. It is perhaps slightly more readable as well.

Reviewed by: kib
Obtained from: CheriBSD
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D28710

Details

Provenance
jhbAuthored on Feb 18 2021, 12:32 AM
Reviewer
kib
Differential Revision
D28710: Add a VA_IS_CLEANMAP() macro.
Parents
R10:fa3bd463cee5: lockf: ensure atomicity of lockf for open(O_CREAT|O_EXCL|O_EXLOCK)
Branches
Unknown
Tags
Unknown