|
|
|
|
|
by ilyt
1274 days ago
|
|
Realistically it could stay mostly as-is, some text values with separators, just define exactly how to quote stuff and what the separator. Then you could just have "load a single value" function that does the unquoting, "load K/V" function for stuff like /proc/meminfo, and "load table" for stuff like /proc/<pid>/stat. Maybe "load records" for stuff like /proc/net/nf_conntrack which is essentially list of KV pairs. |
|