*/
struct kmod_loaded {
struct kmod_ctx *ctx;
- int refcount;
struct kmod_list *modules;
+ int refcount;
bool parsed;
};
struct kmod_loaded_module {
char *name;
long size;
- int use_count;
char *deps;
uintptr_t addr;
+ int use_count;
};
KMOD_EXPORT int kmod_loaded_new(struct kmod_ctx *ctx, struct kmod_loaded **mod)
*/
struct kmod_ctx {
int refcount;
+ int log_priority;
void (*log_fn)(struct kmod_ctx *ctx,
int priority, const char *file, int line,
const char *fn, const char *format, va_list args);
const void *userdata;
char *dirname;
- int log_priority;
struct kmod_config config;
};