summaryrefslogtreecommitdiff
path: root/libkmod/libkmod-module.c
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2012-01-04 08:19:34 -0200
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2012-01-04 08:49:15 -0200
commitc68e92f73133d4220bc6dfe1ca960cf58da7a4b3 (patch)
tree44f797f718e38bef885a99486795a5fdcb415931 /libkmod/libkmod-module.c
parent29b69c0b98bdf43907206bfcdaadadcb4a1ea195 (diff)
downloadkmod-c68e92f73133d4220bc6dfe1ca960cf58da7a4b3.tar.gz
kmod-c68e92f73133d4220bc6dfe1ca960cf58da7a4b3.tar.bz2
kmod-c68e92f73133d4220bc6dfe1ca960cf58da7a4b3.zip
file: take a weakref to ctx
Diffstat (limited to 'libkmod/libkmod-module.c')
-rw-r--r--libkmod/libkmod-module.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libkmod/libkmod-module.c b/libkmod/libkmod-module.c
index b0cee36..1279759 100644
--- a/libkmod/libkmod-module.c
+++ b/libkmod/libkmod-module.c
@@ -762,7 +762,7 @@ KMOD_EXPORT int kmod_module_insert_module(struct kmod_module *mod,
return -ENOSYS;
}
- file = kmod_file_open(path);
+ file = kmod_file_open(mod->ctx, path);
if (file == NULL) {
err = -errno;
return err;
@@ -1938,7 +1938,7 @@ KMOD_EXPORT int kmod_module_get_info(const struct kmod_module *mod, struct kmod_
if (path == NULL)
return -ENOENT;
- file = kmod_file_open(path);
+ file = kmod_file_open(mod->ctx, path);
if (file == NULL)
return -errno;
@@ -2116,7 +2116,7 @@ KMOD_EXPORT int kmod_module_get_versions(const struct kmod_module *mod, struct k
if (path == NULL)
return -ENOENT;
- file = kmod_file_open(path);
+ file = kmod_file_open(mod->ctx, path);
if (file == NULL)
return -errno;
@@ -2281,7 +2281,7 @@ KMOD_EXPORT int kmod_module_get_symbols(const struct kmod_module *mod, struct km
if (path == NULL)
return -ENOENT;
- file = kmod_file_open(path);
+ file = kmod_file_open(mod->ctx, path);
if (file == NULL)
return -errno;
@@ -2449,7 +2449,7 @@ KMOD_EXPORT int kmod_module_get_dependency_symbols(const struct kmod_module *mod
if (path == NULL)
return -ENOENT;
- file = kmod_file_open(path);
+ file = kmod_file_open(mod->ctx, path);
if (file == NULL)
return -errno;