kparams: Extracts values from /proc/cmdline.

[ library, mit, program, text ] [ Propose Tags ]

Extracts values from /proc/cmdline, honoring quotes and \ sequences.

[Skip to Readme]
Versions [RSS] [faq]
Change log
Dependencies base (==4.13.*) [details]
License MIT
Author Josh McSavaney
Category Text
Bug tracker
Source repo head: git clone
Uploaded by mcsaucy at 2021-02-05T02:59:41Z
Distributions NixOS:
Executables kparams
Downloads 40 total (3 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2021-02-05 [all 2 reports]


Maintainer's Corner

For package maintainers and hackage trustees


Readme for kparams-

[back to package description]

kparams (in Haskell)

Extracts kernel parameter values from /proc/cmdline. Handles bare and quoted parameters. This is a rewrite of the original kparams in Haskell.

See's docs on kernel parameters for more information. While the docs mention using double-quotes to protect values with spaces, we also recognize single-quotes and certain escape sequences to support things like quoted="\"value\"".

Check out test/ to see examples of what we can extract.



What's the difference between the shell implementation of kparams and this?

They should be functionally similar. Error messages will differ, although they should error under the same conditions. Most significantly, this version is hundreds of times faster.