pub fn validate_vmo_rights(vmo: &Vmo, expected_vmo_rights: VmoFlags)
Expand description
Asserts that the given vmo_rights
align with the expected_vmo_rights
passed to a
get_backing_memory call. We check that the returned rights align with and do not exceed those
in the given flags, that we have at least basic VMO rights, and that the flags align with the
expected sharing mode.