1 // Copyright 2018 The Fuchsia Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include <sys/types.h>
6 
7 namespace vmo_probe {
8 
9 static volatile uint32_t g_access_check_var;
10 
11 enum class AccessType { Rd, Wr };
12 
13 // Test read or write access at the address |addr|.
14 bool probe_access(void* addr, AccessType access_type, bool expect_can_access);
15 
16 // Tests read or write access over a region starting at |start| and ending at
17 // |start| + |size|.
18 bool probe_verify_region(void* start, size_t size, uint32_t access);
19 
20 } // namespace vmo_probe
21