Skip to content

Commit e121e04

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

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: src/rdma.rs

+5
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ 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).and_then(read_string_from)
87+
}
88+
8489
/// Set a maximum usage for each RDMA/IB resource.
8590
pub fn set_max(&self, max: &str) -> Result<()> {
8691
self.open_path("rdma.max", true).and_then(|mut file| {

0 commit comments

Comments
 (0)