11// SPDX-License-Identifier: MIT OR Apache-2.0
22
3- //! Device Path protocol
3+ //! Helpers to work with UEFI Device Paths and the Device Path Protocol.
44//!
5- //! A UEFI device path is a very flexible structure for encoding a
6- //! programmatic path such as a hard drive or console.
5+ //! The main export of this module is [`DevicePath`].
76//!
87//! A device path is made up of a packed list of variable-length nodes of
98//! various types. The entire device path is terminated with an
@@ -400,7 +399,7 @@ impl ToOwned for DevicePathInstance {
400399 }
401400}
402401
403- /// Device path protocol .
402+ /// Device Path [`Protocol`] .
404403///
405404/// Can be used on any device handle to obtain generic path/location information
406405/// concerning the physical device or logical device. If the handle does not
@@ -413,6 +412,7 @@ impl ToOwned for DevicePathInstance {
413412///
414413/// [module-level documentation]: crate::proto::device_path
415414/// [`END_ENTIRE`]: DeviceSubType::END_ENTIRE
415+ /// [`Protocol`]: uefi::proto::Protocol
416416#[ repr( C , packed) ]
417417#[ unsafe_protocol( uefi_raw:: protocol:: device_path:: DevicePathProtocol :: GUID ) ]
418418#[ derive( Eq , Pointee ) ]
@@ -729,12 +729,15 @@ pub enum NodeConversionError {
729729 UnsupportedType ,
730730}
731731
732+ /// Loaded Image Device Path [`Protocol`].
733+ ///
732734/// Protocol for accessing the device path that was passed in to [`load_image`]
733735/// when loading a PE/COFF image.
734736///
735737/// The layout of this type is the same as a [`DevicePath`].
736738///
737739/// [`load_image`]: crate::boot::load_image
740+ /// [`Protocol`]: uefi::proto::Protocol
738741#[ repr( transparent) ]
739742#[ unsafe_protocol( "bc62157e-3e33-4fec-9920-2d3b36d750df" ) ]
740743#[ derive( Debug , Pointee ) ]
0 commit comments