Skip to content

Commit 6915e04

Browse files
committed
rdma: read rdma.max file
1 parent 69ef63a commit 6915e04

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/rdma.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ impl RdmaController {
8181
.and_then(read_string_from)
8282
}
8383

84+
/// Returns the max usage of RDMA/IB specific resources.
85+
pub fn max(&self) -> Result<String> {
86+
self.open_path("rdma.max", false)
87+
.and_then(read_string_from)
88+
}
89+
8490
/// Set a maximum usage for each RDMA/IB resource.
8591
pub fn set_max(&self, max: &str) -> Result<()> {
8692
self.open_path("rdma.max", true).and_then(|mut file| {

0 commit comments

Comments
 (0)