Skip to main content

vm_cow_pages_bindings/
vm_cow_pages_bindings.rs

1// Copyright 2026 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// This file is automatically generated by //zircon/kernel/vm:_kernel_bindgen_crate.vm-cow-pages-bindings.bindgen.
6
7#![no_std]
8use zx_types::zx_status_t;
9
10#[derive(PartialEq, Eq, Copy, Clone, Debug, Hash)]
11#[repr(C, align(8))]
12pub struct __BindgenOpaqueArray8<T>(pub T);
13impl<T: Copy + Default, const N: usize> Default for __BindgenOpaqueArray8<[T; N]> {
14    fn default() -> Self {
15        Self([<T as Default>::default(); N])
16    }
17}
18unsafe extern "C" {
19    pub fn cpp_vm_cow_pages_free(arg1: *mut VmCowPages);
20}
21#[repr(C)]
22#[repr(align(8))]
23#[derive(Debug, Copy, Clone)]
24pub struct VmCowPages {
25    pub _bindgen_opaque_blob: __BindgenOpaqueArray8<[u8; 192usize]>,
26}
27unsafe extern "C" {
28    pub fn cpp_vm_cow_pages_replace_page_with_loaned(
29        cow: *mut VmCowPages,
30        before_page: *mut ::core::ffi::c_void,
31        offset: u64,
32    ) -> zx_status_t;
33}
34unsafe extern "C" {
35    pub fn cpp_vm_cow_pages_get_ref_counted(cow: *const VmCowPages) -> *mut ::core::ffi::c_void;
36}
37unsafe extern "C" {
38    pub fn cpp_vm_cow_pages_initialize_page_cache(level: u32);
39}