[Denali] Reset HBA and iterate over ports.

This commit is contained in:
Drew Galbraith 2024-09-10 01:12:32 -07:00
parent 7d4c882f2b
commit df79233bbb
6 changed files with 289 additions and 162 deletions

View file

@ -13,6 +13,10 @@ impl PortServer {
})
}
pub fn from_cap(port_cap: Capability) -> Self {
Self { port_cap }
}
pub fn create_client_cap(&self) -> Result<z_cap_t, ZError> {
self.port_cap
.duplicate(!kZionPerm_Read)