Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/vendor/uefi-raw/src/protocol/memory_protection.rs # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienux / vendor / uefi-raw / src / protocol / memory_protection.rs` 33 lines ยท 920 bytes Raw Blame History 1 // SPDX-License-Identifier: MIT OR Apache-2.0 2 3 use crate::table::boot::MemoryAttribute; 4 use crate::{Guid, PhysicalAddress, Status, guid}; 5 6 #[derive(Debug)] 7 #[repr(C)] 8 pub struct MemoryAttributeProtocol { 9 pub get_memory_attributes: unsafe extern "efiapi" fn( 10 this: *const Self, 11 base_address: PhysicalAddress, 12 length: u64, 13 attributes: *mut MemoryAttribute, 14 ) -> Status, 15 16 pub set_memory_attributes: unsafe extern "efiapi" fn( 17 this: *const Self, 18 base_address: PhysicalAddress, 19 length: u64, 20 attributes: MemoryAttribute, 21 ) -> Status, 22 23 pub clear_memory_attributes: unsafe extern "efiapi" fn( 24 this: *const Self, 25 base_address: PhysicalAddress, 26 length: u64, 27 attributes: MemoryAttribute, 28 ) -> Status, 29 } 30 31 impl MemoryAttributeProtocol { 32 pub const GUID: Guid = guid!("`f4560cf6`-40ec-4b4a-a192-`bf1d57d0b189`"); 33 }