Function shares

Source
pub fn shares(shares: u64, v2: bool) -> Result<(&'static str, u64)>
Expand description

Returns the property for CPU shares.

Please note that if the shares is obtained from OCI runtime spec, it MUST be converted, see [1] and convert_shares_to_v2().

1: https://github.com/containers/crun/blob/main/crun.1.md#cgroup-v2