From fff6637589932feaa8b24f05a287c3572ac4fcb8 Mon Sep 17 00:00:00 2001 From: Andy Grover Date: Fri, 14 Dec 2012 09:27:36 -0800 Subject: [PATCH] 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 --- README | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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") -- 2.26.2