# `Linx.Sysctl.Entry`
[🔗](https://github.com/oshlabs/linx/blob/v0.2.0/lib/linx/sysctl/entry.ex#L1)

A single sysctl read by `Linx.Sysctl.list/0` or
`Linx.Sysctl.list/1` — one key/value pair from the `/proc/sys/`
tree.

  * `:key` — the dot-form sysctl key, e.g. `"net.ipv4.ip_forward"`.
  * `:value` — the file's contents with the kernel's trailing
    newline trimmed.

Both fields are `@enforce_keys`-required; an `%Entry{}` always
represents a real read.

## Inspect

Renders compactly:

    #Linx.Sysctl.Entry<net.ipv4.ip_forward = "0">

Values over 60 bytes are truncated with `"..."` for legibility when
inspecting large lists (the `kernel.printk` / `tcp_*` tuple-shaped
knobs stay well under the limit; the occasional pathological knob
like `kernel.version` would hit it). The `:value` field always
carries the full untruncated string — pattern-match on it directly
if you need the whole thing.

# `t`

```elixir
@type t() :: %Linx.Sysctl.Entry{key: String.t(), value: binary()}
```

---

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