File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 55- Added ` proto::shell::Shell::{var(), set_var(), vars()} `
66- Added ` proto::pci::root_bridge::PciRootBridgeIo::configuration() ` .
77- Added ` proto::pci::root_bridge::PciRootBridgeIo::enumerate() ` .
8+ - Added ` proto::nvme::pass_thru::NvmePassThru::broadcast() ` .
89
910## Changed
1011- Changed ordering of ` proto::pci::PciIoAddress ` to (bus -> dev -> fun -> reg -> ext_reg).
Original file line number Diff line number Diff line change @@ -101,14 +101,26 @@ impl NvmePassThru {
101101 /// This can be used to send ADMIN commands.
102102 ///
103103 /// # Returns
104- /// A [`NvmeNamespaceIterator `] for iterating through the namespaces .
104+ /// A [`NvmeNamespace `] addressing the controller (nsid = 0) .
105105 #[ must_use]
106106 pub const fn controller ( & self ) -> NvmeNamespace < ' _ > {
107107 NvmeNamespace {
108108 proto : & self . 0 ,
109109 namespace_id : 0 ,
110110 }
111111 }
112+
113+ /// Get the broadcast namespace (id = 0xffffffff).
114+ ///
115+ /// # Returns
116+ /// A [`NvmeNamespace`] with nsid = 0xffffffff.
117+ #[ must_use]
118+ pub const fn broadcast ( & self ) -> NvmeNamespace < ' _ > {
119+ NvmeNamespace {
120+ proto : & self . 0 ,
121+ namespace_id : 0xffffffff ,
122+ }
123+ }
112124}
113125
114126/// Represents one namespace on an NVMe controller.
You can’t perform that action at this time.
0 commit comments