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
@@ -373,7 +372,7 @@ impl ToOwned for DevicePathInstance {
373372 }
374373}
375374
376- /// Device path protocol .
375+ /// Device Path [`Protocol`] .
377376///
378377/// Can be used on any device handle to obtain generic path/location information
379378/// concerning the physical device or logical device. If the handle does not
@@ -386,6 +385,7 @@ impl ToOwned for DevicePathInstance {
386385///
387386/// [module-level documentation]: crate::proto::device_path
388387/// [`END_ENTIRE`]: DeviceSubType::END_ENTIRE
388+ /// [`Protocol`]: uefi::proto::Protocol
389389#[ repr( C , packed) ]
390390#[ unsafe_protocol( uefi_raw:: protocol:: device_path:: DevicePathProtocol :: GUID ) ]
391391#[ derive( Eq , Pointee ) ]
@@ -702,12 +702,15 @@ pub enum NodeConversionError {
702702 UnsupportedType ,
703703}
704704
705+ /// Loaded Image Device Path [`Protocol`].
706+ ///
705707/// Protocol for accessing the device path that was passed in to [`load_image`]
706708/// when loading a PE/COFF image.
707709///
708710/// The layout of this type is the same as a [`DevicePath`].
709711///
710712/// [`load_image`]: crate::boot::load_image
713+ /// [`Protocol`]: uefi::proto::Protocol
711714#[ repr( transparent) ]
712715#[ unsafe_protocol( "bc62157e-3e33-4fec-9920-2d3b36d750df" ) ]
713716#[ derive( Debug , Pointee ) ]
0 commit comments