libhd 5.0
Hardware abstraction (HAL) information

Functions

static void read_hal (hd_data_t *hd_data)
static void add_pci (hd_data_t *hd_data)
static void link_hal_tree (hd_data_t *hd_data)
static int hal_match_str (hal_prop_t *prop, const char *key, const char *val)
static int check_udi (const char *udi)
static FILE * hd_open_properties (const char *udi, const char *mode)
static char * skip_space (char *s)
static char * skip_non_eq_or_space (char *s)
static char * skip_nonquote (char *s)
static void parse_property (hal_prop_t *prop, char *str)
static void find_udi (hd_data_t *hd_data, hd_t *hd, int match)
void hd_scan_hal (hd_data_t *hd_data)
void hd_scan_hal_basic (hd_data_t *hd_data)
hal_device_thal_find_device (hd_data_t *hd_data, char *udi)
void hal_invalidate (hal_prop_t *prop)
void hal_invalidate_all (hal_prop_t *prop, const char *key)
hal_prop_thal_get_any (hal_prop_t *prop, const char *key)
hal_prop_thal_get_bool (hal_prop_t *prop, const char *key)
hal_prop_thal_get_int32 (hal_prop_t *prop, const char *key)
hal_prop_thal_get_str (hal_prop_t *prop, const char *key)
char * hal_get_useful_str (hal_prop_t *prop, const char *key)
hal_prop_thal_get_list (hal_prop_t *prop, const char *key)
hal_prop_thal_add_new (hal_prop_t **prop)
char * hd_hal_print_prop (hal_prop_t *prop)
API_SYM int hd_write_properties (const char *udi, hal_prop_t *prop)
API_SYM hal_prop_thd_read_properties (const char *udi)
void hd_scan_hal_assign_udi (hd_data_t *hd_data)

Detailed Description

Function Documentation

◆ add_pci()

◆ check_udi()

int check_udi ( const char * udi)
static

◆ find_udi()

◆ hal_add_new()

hal_prop_t * hal_add_new ( hal_prop_t ** prop)

References hal_invalidate(), new_mem(), and hal_prop_s::next.

Referenced by set_probe_val().

◆ hal_find_device()

hal_device_t * hal_find_device ( hd_data_t * hd_data,
char * udi )

◆ hal_get_any()

hal_prop_t * hal_get_any ( hal_prop_t * prop,
const char * key )

◆ hal_get_bool()

hal_prop_t * hal_get_bool ( hal_prop_t * prop,
const char * key )

◆ hal_get_int32()

hal_prop_t * hal_get_int32 ( hal_prop_t * prop,
const char * key )

◆ hal_get_list()

hal_prop_t * hal_get_list ( hal_prop_t * prop,
const char * key )

◆ hal_get_str()

◆ hal_get_useful_str()

char * hal_get_useful_str ( hal_prop_t * prop,
const char * key )

◆ hal_invalidate()

◆ hal_invalidate_all()

void hal_invalidate_all ( hal_prop_t * prop,
const char * key )

◆ hal_match_str()

int hal_match_str ( hal_prop_t * prop,
const char * key,
const char * val )
static

References hal_get_str(), hal_prop_s::str, and hal_prop_s::val.

Referenced by add_pci().

◆ hd_hal_print_prop()

◆ hd_open_properties()

FILE * hd_open_properties ( const char * udi,
const char * mode )
static

◆ hd_read_properties()

◆ hd_scan_hal()

◆ hd_scan_hal_assign_udi()

void hd_scan_hal_assign_udi ( hd_data_t * hd_data)

References find_udi(), hd_data, s_hd_t::next, and PROGRESS.

Referenced by hd_scan_no_hal().

◆ hd_scan_hal_basic()

void hd_scan_hal_basic ( hd_data_t * hd_data)

References hd_data, hd_free_hal_devices(), mod_hal, PROGRESS, and read_hal().

Referenced by hd_scan().

◆ hd_write_properties()

API_SYM int hd_write_properties ( const char * udi,
hal_prop_t * prop )

◆ link_hal_tree()

◆ parse_property()

◆ read_hal()

◆ skip_non_eq_or_space()

char * skip_non_eq_or_space ( char * s)
static

Referenced by parse_property().

◆ skip_nonquote()

char * skip_nonquote ( char * s)
static

Referenced by parse_property().

◆ skip_space()

char * skip_space ( char * s)
static

Referenced by parse_property().