cgroups-rs 0.5.0

Native Rust crate for managing control groups on Linux
Documentation
1
2
3
4
5
6
7
8
9
10
11
// Copyright (c) 2025 Ant Group
//
// SPDX-License-Identifier: Apache-2.0 or MIT
//

use crate::systemd::error::Result;
use crate::systemd::TASKS_MAX;

pub fn max(max: i64) -> Result<(&'static str, u64)> {
    Ok((TASKS_MAX, max as u64))
}