drv_admin.h
Go to the documentation of this file.
#include "driver.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct driver* (*drv_guest_func)(struct driver*, void*);
typedef struct driver*
(* plugin_guest_func)(const char*, drv_guest_func, void*);
int hw_choose_driver(const char* name);
/* Print name of all drivers on FILE. */
void hw_print_drivers(FILE*);
struct driver* for_each_driver(drv_guest_func func,
void* arg,
const char* pluginpath);
void for_each_plugin(plugin_guest_func plugin_guest,
void* arg,
const char* pluginpath);
#ifdef __cplusplus
}
#endif
hw_print_drivers
void hw_print_drivers(FILE *)
Prints all drivers known to the system to the file given as argument.
Definition: drv_admin.c:238
plugin_guest_func
struct driver *(* plugin_guest_func)(const char *, drv_guest_func, void *)
Definition: drv_admin.h:41
hw_choose_driver
int hw_choose_driver(const char *name)
Definition: drv_admin.c:256
driver.h
Interface to the userspace drivers.
drv_guest_func
struct driver *(* drv_guest_func)(struct driver *, void *)
Definition: drv_admin.h:32
for_each_plugin
void for_each_plugin(plugin_guest_func plugin_guest, void *arg, const char *pluginpath)
Definition: drv_admin.c:226
driver
Definition: driver.h:127
driver::name
const char * name
Definition: driver.h:219
for_each_driver
struct driver * for_each_driver(drv_guest_func func, void *arg, const char *pluginpath)
Definition: drv_admin.c:218