summaryrefslogtreecommitdiff
path: root/libkmod/libkmod.h
AgeCommit message (Collapse)AuthorFilesLines
2011-12-15Add comment in public header about flags not implementedLucas De Marchi1-0/+2
2011-12-15Remove flags that likely will not be usedLucas De Marchi1-2/+0
2011-12-13Remove function kmod_resolve_alias_options()Lucas De Marchi1-2/+0
Remove function kmod_resolve_alias_options since it's not needed anymore. Test is using the following configuration file: alias blablabla ac options ac test=1 options blablabla test=2 Lookup test by module name: $ ./test/test-lookup ac libkmod version 1 Alias: 'ac' Modules matching: ac options: 'test=1' Lookup test by alias: $ ./test/test-lookup blablabla libkmod version 1 Alias: 'blablabla' Modules matching: ac options: 'test=1 test=2'
2011-12-12Change licensesLucas De Marchi1-1/+2
libkmod is under LGPL 2.1 or later tools/* are under GPL
2011-12-12Rename kmod_loaded_get_list() to kmod_module_new_from_loaded()Lucas De Marchi1-2/+1
Be consistent with other similar functions already present and improve documentation.
2011-12-11API-BREAK: kmod_new() takes a second parameter for configuration directory.Gustavo Sverzut Barbieri1-1/+1
This is required by modprobe and also to help doing unit tests in future.
2011-12-11insmod: allows providing option to module.Gustavo Sverzut Barbieri1-1/+1
2011-12-11export module's options and commands.Gustavo Sverzut Barbieri1-0/+6
This will be required to implement modprobe later. The implementation follows "man modprobe.conf" and allows options to be specified for alias as well, thus the need for kmod_resolve_alias_options(). Example mod-a.conf: options mod-a a=1 b=2 options mod-a c=3 alias mymod-a mod-a options mymod-a d=4 Results in: options mod-a a=1 b=2 c=3 options mymod-a a=1 b=2 c=3 d=4 Install commands are being concatenated with ";", but manpage is not clean about this behavior.
2011-12-08Load and unload resourcesLucas De Marchi1-0/+2
This call will mmap all the index files and in future some of the work done in ctx creation can be put here.
2011-12-08log: give log function its data instead of kmod_ctx.Gustavo Sverzut Barbieri1-2/+3
This will be the most common use case for logging, also changed log_stderr() to log_filep() with data being stderr to test it.
2011-12-08add kmod_module_get_filtered_blacklist()Gustavo Sverzut Barbieri1-0/+2
This function will filter the given list against the known blacklist, returning a new list with remaining modules with the reference incremented.
2011-12-06kmod_module: return a new list and increase ref of dependenciesLucas De Marchi1-1/+1
kmod_module_get_dependency is renamed to kmod_module_get_dependencies since it's returning a list. To match other APIs, now it returns a new list that user must free with kmod_module_unref_list().
2011-12-05Add padding to enum to make sure it's an intLucas De Marchi1-1/+3
2011-12-04no more kmod_loaded and kmod_loaded_module.Gustavo Sverzut Barbieri1-16/+2
kmod_loaded_get_list() now returns a regular list of kmod_modules, use kmod_module_get_module(), kmod_module_unref() and kmod_module_unref_list() to operate on it.
2011-12-04kmod_module: extended information gathering.Gustavo Sverzut Barbieri1-0/+17
provide means to get: * refcount * initstate * holders * sections this can be used to individually query properties from modules, similar to /proc/modules (kmod_loaded / kmod_loaded_module).
2011-12-04kmod_module_get_module: safety against NULL pointersGustavo Sverzut Barbieri1-1/+1
2011-12-03improve "const" keyword usage.Gustavo Sverzut Barbieri1-9/+9
functions that do not modify their parameters get them as const pointers. special cases: * kmod_get_userdata/kmod_set_userdata: return as void* for user convenience. * kmod_list_append/kmod_list_prepend: take const void* for user convenience.
2011-12-01Add fucntion to API to get dependenciesLucas De Marchi1-0/+1
2011-12-01Add kmod_list_prev to exported functionsLucas De Marchi1-0/+2
2011-11-30Add lookup to create modules list from aliasLucas De Marchi1-0/+4
We return a kmod_list when searching for an alias. Right now, it only search for aliases in config files. To use it, we create a list: list = NULL; kmod_module_new_from_lookup(..., &list); And iterate over it to get the modules and their details: kmod_list_foreach(l, list) { struct kmod_mod *mod = kmod_module_get_module(l); ... ... kmod_module_get_name(mod); ... kmod_module_get_path(mod); } Aliases might contain globs and are match by using fnmatch().
2011-11-30Add name() and path() getters for kmod_moduleLucas De Marchi1-0/+3
2011-11-28Fix wrong copyrightLucas De Marchi1-1/+0
I'm the author, not the copyright owner.
2011-11-28Move down the ifdef for c++Lucas De Marchi1-4/+3
2011-11-25Add functions to operate on modulesLucas De Marchi1-0/+30
2011-11-24Accept dir where we should lookup for modulesLucas De Marchi1-1/+1
2011-11-24Format enumLucas De Marchi1-1/+1
2011-11-23Implement function to remove moduleLucas De Marchi1-0/+8
2011-11-23Rename leftover libabc referenceLucas De Marchi1-2/+2
2011-11-23Constify APILucas De Marchi1-5/+5
2011-11-23Add libkmod-loaded to handle live modules informationLucas De Marchi1-0/+10
All the functions needed by a lsmod binary are in place. test/test-loaded.c implements it with the same output of lsmod.
2011-11-23Implement circular double-linked listLucas De Marchi1-4/+5
2011-11-21Remove unused functionsLucas De Marchi1-14/+0
2011-11-21Make kmod_new return a pointerLucas De Marchi1-1/+1
2011-11-21Convert spaces to tabsLucas De Marchi1-5/+6
2011-11-21Rename libabc to libkmodLucas De Marchi1-0/+79