• Home
Name Date Size #Lines LOC

..--

kmod/03-May-2024-631502

.gitignoreD03-May-202448 76

READMED03-May-2024492 2418

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