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
@@ -346,7 +345,7 @@ impl ToOwned for DevicePathInstance {
346345 }
347346}
348347
349- /// Device path protocol .
348+ /// Device Path [`Protocol`] .
350349///
351350/// Can be used on any device handle to obtain generic path/location information
352351/// concerning the physical device or logical device. If the handle does not
@@ -359,6 +358,7 @@ impl ToOwned for DevicePathInstance {
359358///
360359/// [module-level documentation]: crate::proto::device_path
361360/// [`END_ENTIRE`]: DeviceSubType::END_ENTIRE
361+ /// [`Protocol`]: uefi::proto::Protocol
362362#[ repr( C , packed) ]
363363#[ unsafe_protocol( uefi_raw:: protocol:: device_path:: DevicePathProtocol :: GUID ) ]
364364#[ derive( Eq , Pointee ) ]
@@ -656,12 +656,15 @@ pub enum NodeConversionError {
656656 UnsupportedType ,
657657}
658658
659+ /// Loaded Image Device Path [`Protocol`].
660+ ///
659661/// Protocol for accessing the device path that was passed in to [`load_image`]
660662/// when loading a PE/COFF image.
661663///
662664/// The layout of this type is the same as a [`DevicePath`].
663665///
664666/// [`load_image`]: crate::boot::load_image
667+ /// [`Protocol`]: uefi::proto::Protocol
665668#[ repr( transparent) ]
666669#[ unsafe_protocol( "bc62157e-3e33-4fec-9920-2d3b36d750df" ) ]
667670#[ derive( Debug , Pointee ) ]
0 commit comments