We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69ef63a commit 6915e04Copy full SHA for 6915e04
1 file changed
src/rdma.rs
@@ -81,6 +81,12 @@ impl RdmaController {
81
.and_then(read_string_from)
82
}
83
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
+
90
/// Set a maximum usage for each RDMA/IB resource.
91
pub fn set_max(&self, max: &str) -> Result<()> {
92
self.open_path("rdma.max", true).and_then(|mut file| {
0 commit comments