Skip to content
jc-rs
GitHub

proc-consoles

--proc-consolesv1.0.0

Converts `/proc/consoles` file to JSON

Linuxfileslurpable
$ jc-rs /proc/consoles

A real pair

From the reference corpus (linux-proc/consoles.json). The left pane is the input the fixture ships; the right pane is the corpus's expected JSON. CI compares jc-rs with it field by field under the published differential. Hover a value to see where it came from.

/proc/consoleslinux-proc
tty0                 -WU (EC p  )    4:1
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
[
  {
    "device": "tty0",
    "operations": "-WU",
    "operations_list": [
      "write",
      "unblank"
    ],
    "flags": "EC p  ",
    "flags_list": [
      "enabled",
      "preferred",
      "printk buffer"
    ],
    "major": 4,
    "minor": 1
  }
]

Fixture coverage

2/2oracle-valid pairs match under the published structural JSON comparison

Magic syntax

jc-rs /proc/consolesjc-rs reads this kernel-interface file directly and dispatches it through the matching /proc parser.

Source: crates/jc-rs-parsers/src/proc/proc_consoles.rs. jc-rs targets the schemas defined by the original Python tool. Fixture coverage above is the measured evidence for this parser; test the inputs your pipeline depends on. Compare