kconfq: A C library written in Rust for querying kernel configuration on a live system
github.com·2d·
Preview
Report Post

kconfq

A portable way to query kernel configuration on a live system (/boot/config-* or /proc/config.gz).

It provides:

  • A CLI (kconfq)
  • A C-API library (libkconfq.so, kconfq.h, kconfq.pc)
  • A Rust crate

Usage (as a CLI)

Instaling via cargo:

cargo install kconfq

Instaling via Nix:

nix profile install github:synalice/kconfq

Running without installation:

nix run github:synalice/kconfq

Usage as a C-API library

Even though the core of the library is written in Rust, it can be compiled as a cdynlib with C ABI.

The project will generate:

  • libkconfq.so
  • kconfq.h
  • kconfq.pc

All of this makes it possible to use library as any normal C dependency. Here is an example of how this would look like in Meson

kconfq...

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help