README
1python-kmod
2===========
3
4Python bindings for kmod/libkmod
5
6python-kmod is a Python wrapper module for libkmod, exposing common
7module operations: listing installed modules, modprobe, and rmmod.
8It is at:
9
10Example (python invoked as root)
11--------------------------------
12
13::
14
15 >>> import kmod
16 >>> km = kmod.Kmod()
17 >>> [(m.name, m.size) for m in km.loaded()]
18 [(u'nfs', 407706),
19 (u'nfs_acl', 12741)
20 ...
21 (u'virtio_blk', 17549)]
22 >>> km.modprobe("btrfs")
23 >>> km.rmmod("btrfs")
24