From: Andy Grover Date: Fri, 14 Dec 2012 17:27:36 +0000 (-0800) Subject: Update README X-Git-Tag: v0.9.1~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fff6637589932feaa8b24f05a287c3572ac4fcb8;p=python-kmod.git Update README Last update changed API slightly: * loaded_modules renamed to modules * returns a module object instead of (name, size) Signed-off-by: Andy Grover --- diff --git a/README b/README index 8ca3aae..f031476 100644 --- a/README +++ b/README @@ -24,11 +24,11 @@ Example (python invoked as root) >>> import kmod >>> km = kmod.Kmod() - >>> km.loaded_modules() - [('nfs', 407706), - ('nfs_acl', 12741) + >>> [(m.name, m.size) for m in km.loaded()] + [(u'nfs', 407706), + (u'nfs_acl', 12741) ... - ('virtio_blk', 17549)] + (u'virtio_blk', 17549)] >>> km.modprobe("btrfs") >>> km.rmmod("btrfs")