Skip to content

Commit 7565902

Browse files
uefi: Add handle_protocol doc alias to open_protocol functions
1 parent d318a25 commit 7565902

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

uefi/src/boot.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,6 +1091,7 @@ pub fn get_handle_for_protocol<P: ProtocolPointer + ?Sized>() -> Result<Handle>
10911091
/// * [`Status::UNSUPPORTED`]: the handle does not support the protocol.
10921092
/// * [`Status::ACCESS_DENIED`] or [`Status::ALREADY_STARTED`]: the protocol is
10931093
/// already open in a way that is incompatible with the new request.
1094+
#[doc(alias = "handle_protocol")]
10941095
pub unsafe fn open_protocol<P: ProtocolPointer + ?Sized>(
10951096
params: OpenProtocolParams,
10961097
attributes: OpenProtocolAttributes,
@@ -1137,6 +1138,7 @@ pub unsafe fn open_protocol<P: ProtocolPointer + ?Sized>(
11371138
/// * [`Status::UNSUPPORTED`]: the handle does not support the protocol.
11381139
/// * [`Status::ACCESS_DENIED`]: the protocol is already open in a way that is
11391140
/// incompatible with the new request.
1141+
#[doc(alias = "handle_protocol")]
11401142
pub fn open_protocol_exclusive<P: ProtocolPointer + ?Sized>(
11411143
handle: Handle,
11421144
) -> Result<ScopedProtocol<P>> {

0 commit comments

Comments
 (0)