Skip to content

Commit 15b0f5a

Browse files
Merge pull request #1377 from nicholasbishop/bishop-more-doc-updates
uefi: Remove BootServices from more docstrings
2 parents 2b868fb + 83a7ea5 commit 15b0f5a

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

uefi/src/boot.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//!
55
//! # Accessing protocols
66
//!
7-
//! Protocols can be opened using several methods of `BootServices`. Most
7+
//! Protocols can be opened using several functions in this module. Most
88
//! commonly, [`open_protocol_exclusive`] should be used. This ensures that
99
//! nothing else can use the protocol until it is closed, and returns a
1010
//! [`ScopedProtocol`] that takes care of closing the protocol when it is
@@ -1510,7 +1510,7 @@ impl Drop for TplGuard {
15101510
// TestProtocol (0x04) excluded because it doesn't actually open the
15111511
// protocol, just tests if it's present on the handle. Since that
15121512
// changes the interface significantly, that's exposed as a separate
1513-
// method: `BootServices::test_protocol`.
1513+
// method: `test_protocol`.
15141514

15151515
/// Attributes for [`open_protocol`].
15161516
#[repr(u32)]

uefi/src/data_types/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,11 @@ impl Event {
7070
/// Clone this `Event`
7171
///
7272
/// # 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
7474
/// to it are invalidated and the underlying memory is freed by firmware. The caller must ensure
7575
/// that any clones of a closed `Event` are never used again.
76+
///
77+
/// [`boot::close_event`]: crate::boot::close_event
7678
#[must_use]
7779
pub const unsafe fn unsafe_clone(&self) -> Self {
7880
Self(self.0)

uefi/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@
203203
//! [Rust UEFI Book]: https://rust-osdev.github.io/uefi-rs/HEAD/
204204
//! [UEFI]: https://uefi.org/
205205
//! [Zulip]: https://rust-osdev.zulipchat.com
206-
//! [`BootServices`]: table::boot::BootServices
207206
//! [`GlobalAlloc`]: alloc::alloc::GlobalAlloc
208207
//! [`SystemTable`]: table::SystemTable
209208
//! [`ctr16!`]: crate::cstr16

uefi/src/proto/device_path/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ pub enum NodeConversionError {
812812
///
813813
/// The layout of this type is the same as a [`DevicePath`].
814814
///
815-
/// [`load_image`]: crate::table::boot::BootServices::load_image
815+
/// [`load_image`]: crate::boot::load_image
816816
#[repr(transparent)]
817817
#[unsafe_protocol("bc62157e-3e33-4fec-9920-2d3b36d750df")]
818818
#[derive(Debug, Pointee)]

0 commit comments

Comments
 (0)