summaryrefslogtreecommitdiff
path: root/libkmod/libkmod.h
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2011-12-12 13:49:27 -0200
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2011-12-12 13:50:19 -0200
commita102e262e61de9a7655210aceb24d2024e9ceeda (patch)
tree349e30d6954a291518892927a8eb74dbafd0030d /libkmod/libkmod.h
parent7c41c2dd8c1357d10cdee912c43614fa47c8d4ec (diff)
downloadkmod-a102e262e61de9a7655210aceb24d2024e9ceeda.tar.gz
kmod-a102e262e61de9a7655210aceb24d2024e9ceeda.tar.bz2
kmod-a102e262e61de9a7655210aceb24d2024e9ceeda.zip
Rename kmod_loaded_get_list() to kmod_module_new_from_loaded()
Be consistent with other similar functions already present and improve documentation.
Diffstat (limited to 'libkmod/libkmod.h')
-rw-r--r--libkmod/libkmod.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/libkmod/libkmod.h b/libkmod/libkmod.h
index 3a13b9f..f0830f3 100644
--- a/libkmod/libkmod.h
+++ b/libkmod/libkmod.h
@@ -66,8 +66,6 @@ struct kmod_list *kmod_list_prev(const struct kmod_list *first_entry,
list_entry != NULL; \
list_entry = kmod_list_next(first_entry, list_entry))
-int kmod_loaded_get_list(struct kmod_ctx *ctx, struct kmod_list **list);
-
enum kmod_remove {
KMOD_REMOVE_FORCE = O_TRUNC,
KMOD_REMOVE_NOWAIT = O_NONBLOCK,
@@ -92,6 +90,7 @@ int kmod_module_new_from_path(struct kmod_ctx *ctx, const char *path,
struct kmod_module **mod);
int kmod_module_new_from_lookup(struct kmod_ctx *ctx, const char *alias,
struct kmod_list **list);
+int kmod_module_new_from_loaded(struct kmod_ctx *ctx, struct kmod_list **list);
struct kmod_module *kmod_module_ref(struct kmod_module *mod);
struct kmod_module *kmod_module_unref(struct kmod_module *mod);