Skip to content

Commit 7cfcc35

Browse files
authored
Merge pull request #1893 from rust-osdev/push-xuwxpsxosplk
uefi: Add `handle_protocol` doc alias to open_protocol functions
2 parents 3f61a21 + 7565902 commit 7cfcc35

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
@@ -1092,6 +1092,7 @@ pub fn get_handle_for_protocol<P: ProtocolPointer + ?Sized>() -> Result<Handle>
10921092
/// * [`Status::UNSUPPORTED`]: the handle does not support the protocol.
10931093
/// * [`Status::ACCESS_DENIED`] or [`Status::ALREADY_STARTED`]: the protocol is
10941094
/// already open in a way that is incompatible with the new request.
1095+
#[doc(alias = "handle_protocol")]
10951096
pub unsafe fn open_protocol<P: ProtocolPointer + ?Sized>(
10961097
params: OpenProtocolParams,
10971098
attributes: OpenProtocolAttributes,
@@ -1138,6 +1139,7 @@ pub unsafe fn open_protocol<P: ProtocolPointer + ?Sized>(
11381139
/// * [`Status::UNSUPPORTED`]: the handle does not support the protocol.
11391140
/// * [`Status::ACCESS_DENIED`]: the protocol is already open in a way that is
11401141
/// incompatible with the new request.
1142+
#[doc(alias = "handle_protocol")]
11411143
pub fn open_protocol_exclusive<P: ProtocolPointer + ?Sized>(
11421144
handle: Handle,
11431145
) -> Result<ScopedProtocol<P>> {

0 commit comments

Comments
 (0)