diff options
author | Andy Grover <agrover@redhat.com> | 2012-03-13 15:00:37 -0700 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2014-03-20 07:22:52 -0300 |
commit | 51a02d0d52f4fe79b7fb807c15a887cb9cb5b27e (patch) | |
tree | 2741f23d0f92b162a6e86d645ef9b5b9d7044da6 | |
parent | 607c37e6bd7b3bb37455ab518a0c87a8957f8571 (diff) | |
download | kmod-51a02d0d52f4fe79b7fb807c15a887cb9cb5b27e.tar.gz |
python: Add README
-rw-r--r-- | libkmod/python/README | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/libkmod/python/README b/libkmod/python/README new file mode 100644 index 0000000..9498ba0 --- /dev/null +++ b/libkmod/python/README @@ -0,0 +1,44 @@ +python-kmod +=========== + +Python bindings for libkmod + +libkmod is a C library to make inserting, removing, and listing +Linux kernel modules easier. It can be found at: + +http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary + +python-kmod is a Python wrapper module for libkmod, exposing common +module operations: listing installed modules, modprobe, and rmmod. +It is at: + +https://github.com/agrover/python-kmod + +Example (python invoked as root) +-------------------------------- + +>>>import kmod + +>>>km = kmod.Kmod() + +>>>km.loaded_modules() + +[('nfs', 407706), + ('nfs_acl', 12741) + +... + + ('virtio_blk', 17549)] + +>>>km.modprobe("btrfs") + +>>>km.rmmod("btrfs") + +Building +-------- + +Ensure Python and kmod headers are installed and run: + +python setup.py build + + |