uefi: Sort OpenProtocolAttributes variants numerically

This commit is contained in:
Nicholas Bishop
2026-02-07 12:45:58 -05:00
parent d318a25e59
commit 9b8322d38e
+6 -6
View File
@@ -1736,17 +1736,17 @@ pub enum OpenProtocolAttributes {
/// the `ByDriver` attribute.
ByDriver = 0x10,
/// Used by a driver to gain exclusive access to a protocol
/// interface. If any other drivers have the protocol interface
/// opened with an attribute of `ByDriver`, then an attempt will be
/// made to remove them with `DisconnectController`.
ByDriverExclusive = 0x30,
/// Used by applications to gain exclusive access to a protocol
/// interface. If any drivers have the protocol opened with an
/// attribute of `ByDriver`, then an attempt will be made to remove
/// them by calling the driver's `Stop` function.
Exclusive = 0x20,
/// Used by a driver to gain exclusive access to a protocol
/// interface. If any other drivers have the protocol interface
/// opened with an attribute of `ByDriver`, then an attempt will be
/// made to remove them with `DisconnectController`.
ByDriverExclusive = 0x30,
}
/// Parameters passed to [`open_protocol`].