Debian Codegraph @

tests/assets/example-bindgen.rs

raw symbols SCIP
1 extern "C" {
2 #[must_use]
3 #[doc = "@name Memory management"]
4 #[doc = "@{"]
5 #[doc = "**"]
6 #[doc = "* @brief Controls memory mapping"]
7 #[doc = "* @param[out] addr_out The virtual address resulting from the operation. Usually the same as addr0."]
8 #[doc = "* @param addr0 The virtual address to be used for the operation."]
9 #[doc = "* @param addr1 The virtual address to be (un)mirrored by @p addr0 when using @ref MEMOP_MAP or @ref MEMOP_UNMAP."]
10 #[doc = "* It has to be pointing to a RW memory."]
11 #[doc = "* Use NULL if the operation is @ref MEMOP_FREE or @ref MEMOP_ALLOC."]
12 #[doc = "* @param size The requested size for @ref MEMOP_ALLOC and @ref MEMOP_ALLOC_LINEAR."]
13 #[doc = "* @param op Operation flags. See @ref MemOp."]
14 #[doc = "* @param perm A combination of @ref MEMPERM_READ and @ref MEMPERM_WRITE. Using MEMPERM_EXECUTE will return an error."]
15 #[doc = "* Value 0 is used when unmapping memory."]
16 #[doc = "*"]
17 #[doc = "* If a memory is mapped for two or more addresses, you have to use MEMOP_UNMAP before being able to MEMOP_FREE it."]
18 #[doc = "* MEMOP_MAP will fail if @p addr1 was already mapped to another address."]
19 #[doc = "*"]
20 #[doc = "* More information is available at http://3dbrew.org/wiki/SVC#Memory_Mapping."]
21 #[doc = "*"]
22 #[doc = "* @sa svcControlProcessMemory"]
23 #[doc = "*/"]
24 pub fn svcControlMemory(
25 addr_out: *mut u32_,
26 addr0: u32_,
27 addr1: u32_,
28 size: u32_,
29 op: MemOp,
30 perm: MemPerm,
31 ) -> Result;
32 }