File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 4
4
//!
5
5
//! # Accessing protocols
6
6
//!
7
- //! Protocols can be opened using several methods of `BootServices` . Most
7
+ //! Protocols can be opened using several functions in this module . Most
8
8
//! commonly, [`open_protocol_exclusive`] should be used. This ensures that
9
9
//! nothing else can use the protocol until it is closed, and returns a
10
10
//! [`ScopedProtocol`] that takes care of closing the protocol when it is
@@ -1510,7 +1510,7 @@ impl Drop for TplGuard {
1510
1510
// TestProtocol (0x04) excluded because it doesn't actually open the
1511
1511
// protocol, just tests if it's present on the handle. Since that
1512
1512
// changes the interface significantly, that's exposed as a separate
1513
- // method: `BootServices:: test_protocol`.
1513
+ // method: `test_protocol`.
1514
1514
1515
1515
/// Attributes for [`open_protocol`].
1516
1516
#[ repr( u32 ) ]
Original file line number Diff line number Diff line change @@ -70,9 +70,11 @@ impl Event {
70
70
/// Clone this `Event`
71
71
///
72
72
/// # Safety
73
- /// When an event is closed by calling `BootServices ::close_event`, that event and ALL references
73
+ /// When an event is closed by calling [`boot ::close_event`] , that event and ALL references
74
74
/// to it are invalidated and the underlying memory is freed by firmware. The caller must ensure
75
75
/// that any clones of a closed `Event` are never used again.
76
+ ///
77
+ /// [`boot::close_event`]: crate::boot::close_event
76
78
#[ must_use]
77
79
pub const unsafe fn unsafe_clone ( & self ) -> Self {
78
80
Self ( self . 0 )
Original file line number Diff line number Diff line change 203
203
//! [Rust UEFI Book]: https://rust-osdev.github.io/uefi-rs/HEAD/
204
204
//! [UEFI]: https://uefi.org/
205
205
//! [Zulip]: https://rust-osdev.zulipchat.com
206
- //! [`BootServices`]: table::boot::BootServices
207
206
//! [`GlobalAlloc`]: alloc::alloc::GlobalAlloc
208
207
//! [`SystemTable`]: table::SystemTable
209
208
//! [`ctr16!`]: crate::cstr16
Original file line number Diff line number Diff line change @@ -812,7 +812,7 @@ pub enum NodeConversionError {
812
812
///
813
813
/// The layout of this type is the same as a [`DevicePath`].
814
814
///
815
- /// [`load_image`]: crate::table:: boot::BootServices ::load_image
815
+ /// [`load_image`]: crate::boot::load_image
816
816
#[ repr( transparent) ]
817
817
#[ unsafe_protocol( "bc62157e-3e33-4fec-9920-2d3b36d750df" ) ]
818
818
#[ derive( Debug , Pointee ) ]
You can’t perform that action at this time.
0 commit comments