# `Sys.Linux.Cgroup.V2.Config`
[🔗](https://github.com/harmont-dev/hyper/blob/main/lib/sys/linux/cgroup/v2.ex#L10)

Map which represents the possible configurations of a cgroup

# `cpu_spec`

```elixir
@type cpu_spec() :: %{quota_us: pos_integer(), period_us: pos_integer()}
```

# `linux_t`

```elixir
@type linux_t() :: %{
  optional(:&quot;cpu.max&quot;) =&gt; String.t(),
  optional(:&quot;memory.max&quot;) =&gt; String.t()
}
```

# `t`

```elixir
@type t() :: %{
  optional(:cpu_max) =&gt; cpu_spec(),
  optional(:memory_max) =&gt; pos_integer()
}
```

# `as_linux`

```elixir
@spec as_linux(t()) :: linux_t()
```

Render the config into cgroup v2 interface-file => value pairs.

# `cpu_max`

```elixir
@spec cpu_max(t(), pos_integer(), pos_integer()) :: t()
```

# `memory_max`

```elixir
@spec memory_max(t(), pos_integer()) :: t()
```

# `new`

```elixir
@spec new() :: t()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
