You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: std/src/sys/uefi/helpers.rs
+24-13Lines changed: 24 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,25 @@
1
1
//! Contains most of the shared UEFI specific stuff. Some of this might be moved to `std::os::uefi`
2
2
//! if needed but no point in adding extra public API when there is not Std support for UEFI in the
3
3
//! first place
4
+
//!
5
+
//! Some Nomenclature
6
+
//! * Protocol:
7
+
//! - Protocols serve to enable communication between separately built modules, including drivers.
8
+
//! - Every protocol has a GUID associated with it. The GUID serves as the name for the protocol.
9
+
//! - Protocols are produced and consumed.
10
+
//! - More information about protocols can be found [here](https://edk2-docs.gitbook.io/edk-ii-uefi-driver-writer-s-guide/3_foundation/36_protocols_and_handles)
4
11
5
12
use r_efi::efi::Guid;
6
13
7
14
usecrate::io::{self, const_io_error};
8
-
usecrate::mem::MaybeUninit;
15
+
usecrate::mem::{size_of,MaybeUninit};
9
16
usecrate::os::uefi;
10
17
usecrate::ptr::NonNull;
11
18
12
-
// Locate handles with a particular protocol GUID
19
+
/// Locate Handles with a particular Protocol GUID
13
20
/// Implemented using `EFI_BOOT_SERVICES.LocateHandles()`
21
+
///
22
+
/// Returns an array of [Handles](r_efi::efi::Handle) that support a specified protocol.
0 commit comments