Home | History | Annotate | only in /external/kmod/libkmod/python
Up to higher level directory
NameDateSize
.gitignore05-Oct-201748
kmod/05-Oct-2017
README05-Oct-2017492

README

      1 python-kmod
      2 ===========
      3 
      4 Python bindings for kmod/libkmod
      5 
      6 python-kmod is a Python wrapper module for libkmod, exposing common
      7 module operations: listing installed modules, modprobe, and rmmod.
      8 It is at:
      9 
     10 Example (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