kmod

High-level wrapper for Linux's kmod library

Wrapper score 15/100 · tests present · no docs generated

Wraps a native library — check OS Compatibility below for platform-specific linking notes.

Summary

Latest Version Unknown
License ISC
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:24

Tags

Installation

nimble install kmod
choosenim install kmod
git clone https://github.com/alaviss/kmod

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
kmod - - - - - - -

Source

Repository https://github.com/alaviss/kmod
Homepage https://github.com/alaviss/kmod
Registry Source nimble_official

README

Linux's libkmod high-level wrapper in Nim

Documentation is currently missing, but the API does not stray too far from libkmod's own API, so their documentation can be used. (not available pre-built online, but one can read the documentation in libkmod c sources)

Differences from libkmod's C API: - No resource cleanup needed! These are automatically done via destructors. - Most get/set APIs are implemented as getter/setter. - Logging APIs are not available. - Lists are typesafe! With iterators support so they can be easily iterated over.

Examples can be found in the examples/ folder.

Dependencies

This wrapper depends on the existance of libkmod headers in the system. Consult your distribution's package repository for them (libkmod-dev on Debian-based distribution).

Licenses

This wrapper is licensed under the ISC (to allow static linking), but the actual libkmod library is licensed under LGPL-2.1.