Skip to main content

pmm_bindings/
pmm_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.pmm-bindings.bindgen.
6
7#![no_std]
8pub use zx_types::{zx_paddr_t, zx_status_t};
9
10pub const PMM_ALLOC_FLAG_ANY: u32 = 0;
11pub const PMM_ALLOC_FLAG_CAN_WAIT: u32 = 1;
12unsafe extern "C" {
13    pub fn cpp_pmm_alloc_page(
14        flags: u32,
15        out_page: *mut *mut ::core::ffi::c_void,
16        out_paddr: *mut zx_paddr_t,
17    ) -> zx_status_t;
18}
19unsafe extern "C" {
20    pub fn cpp_pmm_free_page(page: *mut ::core::ffi::c_void);
21}