Home
last modified time | relevance | path

Searched refs:kmod_ctx (Results 1 – 25 of 30) sorted by relevance

12

/external/kmod/libkmod/
Dlibkmod.h39 struct kmod_ctx;
40 struct kmod_ctx *kmod_new(const char *dirname, const char * const *config_paths);
41 struct kmod_ctx *kmod_ref(struct kmod_ctx *ctx);
42 struct kmod_ctx *kmod_unref(struct kmod_ctx *ctx);
43 void kmod_set_log_fn(struct kmod_ctx *ctx,
49 int kmod_get_log_priority(const struct kmod_ctx *ctx);
50 void kmod_set_log_priority(struct kmod_ctx *ctx, int priority);
51 void *kmod_get_userdata(const struct kmod_ctx *ctx);
52 void kmod_set_userdata(struct kmod_ctx *ctx, const void *userdata);
54 const char *kmod_get_dirname(const struct kmod_ctx *ctx);
[all …]
Dlibkmod.c75 struct kmod_ctx { struct
90 void kmod_log(const struct kmod_ctx *ctx, in kmod_log() argument
157 KMOD_EXPORT const char *kmod_get_dirname(const struct kmod_ctx *ctx) in kmod_get_dirname()
171 KMOD_EXPORT void *kmod_get_userdata(const struct kmod_ctx *ctx) in kmod_get_userdata()
185 KMOD_EXPORT void kmod_set_userdata(struct kmod_ctx *ctx, const void *userdata) in kmod_set_userdata()
249 KMOD_EXPORT struct kmod_ctx *kmod_new(const char *dirname, in kmod_new()
253 struct kmod_ctx *ctx; in kmod_new()
256 ctx = calloc(1, sizeof(struct kmod_ctx)); in kmod_new()
306 KMOD_EXPORT struct kmod_ctx *kmod_ref(struct kmod_ctx *ctx) in kmod_ref()
323 KMOD_EXPORT struct kmod_ctx *kmod_unref(struct kmod_ctx *ctx) in kmod_unref()
[all …]
Dlibkmod-internal.h14 kmod_log_null(struct kmod_ctx *ctx, const char *format, ...) {} in kmod_log_null()
49 void kmod_log(const struct kmod_ctx *ctx,
88 int kmod_lookup_alias_from_config(struct kmod_ctx *ctx, const char *name, struct kmod_list **list) …
89 int kmod_lookup_alias_from_symbols_file(struct kmod_ctx *ctx, const char *name, struct kmod_list **…
90 int kmod_lookup_alias_from_aliases_file(struct kmod_ctx *ctx, const char *name, struct kmod_list **…
91 int kmod_lookup_alias_from_moddep_file(struct kmod_ctx *ctx, const char *name, struct kmod_list **l…
92 int kmod_lookup_alias_from_builtin_file(struct kmod_ctx *ctx, const char *name, struct kmod_list **…
93 bool kmod_lookup_alias_is_builtin(struct kmod_ctx *ctx, const char *name) __attribute__((nonnull(1,…
94 int kmod_lookup_alias_from_commands(struct kmod_ctx *ctx, const char *name, struct kmod_list **list…
95 void kmod_set_modules_visited(struct kmod_ctx *ctx, bool visited) __attribute__((nonnull((1))));
[all …]
Dlibkmod-config.c576 struct kmod_ctx *ctx = config->ctx; in kmod_config_parse()
699 static bool conf_files_filter_out(struct kmod_ctx *ctx, DIR *d, in conf_files_filter_out()
729 static int conf_files_insert_sorted(struct kmod_ctx *ctx, in conf_files_insert_sorted()
787 static int conf_files_list(struct kmod_ctx *ctx, struct kmod_list **list, in conf_files_list()
826 int kmod_config_new(struct kmod_ctx *ctx, struct kmod_config **p_config, in kmod_config_new()
935 static struct kmod_config_iter *kmod_config_iter_new(const struct kmod_ctx* ctx, in kmod_config_iter_new()
999 KMOD_EXPORT struct kmod_config_iter *kmod_config_get_blacklists(const struct kmod_ctx *ctx) in kmod_config_get_blacklists()
1019 KMOD_EXPORT struct kmod_config_iter *kmod_config_get_install_commands(const struct kmod_ctx *ctx) in kmod_config_get_install_commands()
1039 KMOD_EXPORT struct kmod_config_iter *kmod_config_get_remove_commands(const struct kmod_ctx *ctx) in kmod_config_get_remove_commands()
1059 KMOD_EXPORT struct kmod_config_iter *kmod_config_get_aliases(const struct kmod_ctx *ctx) in kmod_config_get_aliases()
[all …]
Dlibkmod-module.c64 struct kmod_ctx *ctx;
139 struct kmod_ctx *ctx = mod->ctx; in kmod_module_parse_depline()
262 static int kmod_module_new(struct kmod_ctx *ctx, const char *key, in kmod_module_new()
329 KMOD_EXPORT int kmod_module_new_from_name(struct kmod_ctx *ctx, in kmod_module_new_from_name()
344 int kmod_module_new_from_alias(struct kmod_ctx *ctx, const char *alias, in kmod_module_new_from_alias()
387 KMOD_EXPORT int kmod_module_new_from_path(struct kmod_ctx *ctx, in kmod_module_new_from_path()
536 KMOD_EXPORT int kmod_module_new_from_lookup(struct kmod_ctx *ctx, in kmod_module_new_from_lookup()
624 KMOD_EXPORT int kmod_module_get_filtered_blacklist(const struct kmod_ctx *ctx, in kmod_module_get_filtered_blacklist()
893 struct kmod_ctx *ctx = mod->ctx; in module_is_blacklisted()
923 KMOD_EXPORT int kmod_module_apply_filter(const struct kmod_ctx *ctx, in kmod_module_apply_filter()
[all …]
Dlibkmod-index.h43 struct index_mm *index_mm_open(struct kmod_ctx *ctx, const char *filename,
Dlibkmod-file.c59 const struct kmod_ctx *ctx;
284 struct kmod_file *kmod_file_open(const struct kmod_ctx *ctx, in kmod_file_open()
DREADME19 struct kmod_ctx *ctx = kmod_new(kernel_dirname);
/external/kmod/libkmod/python/kmod/
D_libkmod_h.pxd34 cdef struct kmod_ctx:
37 kmod_ctx *kmod_new(
39 kmod_ctx *kmod_ref(kmod_ctx *ctx)
40 kmod_ctx *kmod_unref(kmod_ctx *ctx)
43 int kmod_load_resources(kmod_ctx *ctx)
44 void kmod_unload_resources(kmod_ctx *ctx)
61 kmod_ctx *ctx, const_char_ptr name, kmod_module **mod)
63 kmod_ctx *ctx, const_char_ptr given_alias, kmod_list **list)
64 int kmod_module_new_from_loaded(kmod_ctx *ctx, kmod_list **list)
Dkmod.pxd21 cdef _libkmod_h.kmod_ctx *_kmod_ctx
/external/kmod/testsuite/
Dtest-init.c34 struct kmod_ctx *ctx; in test_initlib()
50 struct kmod_ctx *ctx; in test_insert()
85 struct kmod_ctx *ctx; in test_remove()
Dtest-new-module.c41 struct kmod_ctx *ctx; in from_name()
80 struct kmod_ctx *ctx; in from_alias()
Dtest-initstate.c37 struct kmod_ctx *ctx; in test_initstate_from_lookup()
83 struct kmod_ctx *ctx; in test_initstate_from_name()
Dtest-dependencies.c36 struct kmod_ctx *ctx; in test_dependencies()
Dtest-loaded.c32 struct kmod_ctx *ctx; in loaded_1()
Dtest-blacklist.c40 struct kmod_ctx *ctx; in blacklist_1()
/external/kmod/tools/
Dlog.h36 struct kmod_ctx;
37 void log_setup_kmod_log(struct kmod_ctx *ctx, int priority);
Dmodprobe.c163 static int show_config(struct kmod_ctx *ctx) in show_config()
167 struct kmod_config_iter *(*get_iter)(const struct kmod_ctx *ctx); in show_config()
209 static int show_modversions(struct kmod_ctx *ctx, const char *filename) in show_modversions()
237 static int show_exports(struct kmod_ctx *ctx, const char *filename) in show_exports()
449 static int rmmod(struct kmod_ctx *ctx, const char *alias) in rmmod()
475 static int rmmod_all(struct kmod_ctx *ctx, char **args, int nargs) in rmmod_all()
512 static int insmod(struct kmod_ctx *ctx, const char *alias, in insmod()
588 static int insmod_all(struct kmod_ctx *ctx, char **args, int nargs) in insmod_all()
748 struct kmod_ctx *ctx; in do_modprobe()
Dmodinfo.c264 static int modinfo_path_do(struct kmod_ctx *ctx, const char *path) in modinfo_path_do()
277 static int modinfo_alias_do(struct kmod_ctx *ctx, const char *alias) in modinfo_alias_do()
362 struct kmod_ctx *ctx; in do_modinfo()
Dlsmod.c33 struct kmod_ctx *ctx; in do_lsmod()
Dinsert.c61 struct kmod_ctx *ctx; in do_insert()
Dremove.c87 struct kmod_ctx *ctx; in do_remove()
Dlog.c143 void log_setup_kmod_log(struct kmod_ctx *ctx, int priority) in log_setup_kmod_log()
Dinsmod.c67 struct kmod_ctx *ctx; in do_insmod()
/external/kmod/libkmod/docs/
Dlibkmod-sections.txt3 kmod_ctx

12