Home

libmodulesuname

Libmodulesuname is a cross-platform C library that provides a unified API for querying kernel module metadata alongside system identity information. The library merges data about currently loaded kernel modules with uname-style host data to support tools that diagnose, audit, or report on a system’s runtime configuration. It is intended for use by system administrators, packaging tools, and diagnostic utilities that must reflect both module state and host identity in a consistent way.

Key features include enumeration of loaded modules with per-module attributes such as name, version, license, author,

The API provides initialization and cleanup functions, module iteration callbacks or iterator objects, and accessors for

Typical usage involves creating a context, enumerating modules, querying desired attributes, and releasing resources. Applications can

Libmodulesuname is distributed under a permissive license (e.g., BSD-3-Clause). See the project repository for exact terms,

size,
and
module
dependencies;
retrieval
of
uname
data
including
system
name,
release,
version,
machine,
and
nodename;
and
thread-safe
access
with
a
simple,
well-defined
lifecycle.
The
library
reads
data
from
standard
kernel
interfaces
where
available,
and
gracefully
handles
environments
with
limited
module
information.
module
records
and
uname
fields.
Error
reporting
is
standardized
through
return
codes
and
an
optional
error
string.
The
interface
is
designed
to
be
portable
across
Unix-like
platforms
that
expose
module
data
through
/proc,
/sys,
or
equivalent
interfaces.
format
results
for
human
readers
or
downstream
tooling,
and
can
export
data
in
formats
such
as
JSON
or
YAML
through
separate
utilities.
API
documentation,
and
compatibility
notes.
See
also
libkmod,
uname,
and
kernel
module
tooling.