mirror of
https://github.com/AuxXxilium/kmod.git
synced 2024-11-23 23:10:53 +07:00
5ad36e5222
Acked-by: Andy Grover <agrover@redhat.com>
24 lines
492 B
Plaintext
24 lines
492 B
Plaintext
python-kmod
|
|
===========
|
|
|
|
Python bindings for kmod/libkmod
|
|
|
|
python-kmod is a Python wrapper module for libkmod, exposing common
|
|
module operations: listing installed modules, modprobe, and rmmod.
|
|
It is at:
|
|
|
|
Example (python invoked as root)
|
|
--------------------------------
|
|
|
|
::
|
|
|
|
>>> import kmod
|
|
>>> km = kmod.Kmod()
|
|
>>> [(m.name, m.size) for m in km.loaded()]
|
|
[(u'nfs', 407706),
|
|
(u'nfs_acl', 12741)
|
|
...
|
|
(u'virtio_blk', 17549)]
|
|
>>> km.modprobe("btrfs")
|
|
>>> km.rmmod("btrfs")
|