| #define BLKSSZGET _IO(0x12,104) |
| #define INT_CRC | ( | a, | |||
| b | ) | crc64(&a, &hd->b, sizeof hd->b); |
| #define STR_CRC | ( | a, | |||
| b | ) | if(hd->b) crc64(&a, hd->b, strlen(hd->b) + 1); |
| #define u64 uint64_t |
| void* add_mem | ( | void * | p, | |
| size_t | elem_size, | |||
| size_t | n | |||
| ) |
| str_list_t * add_str_list | ( | str_list_t ** | sl, | |
| char * | str | |||
| ) | [related, inherited] |
Add a string to a string list.
The new string (str) will be *copied*!
| char* canon_str | ( | char * | s, | |
| int | len | |||
| ) |
| void crc64 | ( | uint64_t * | id, | |
| void * | p, | |||
| int | len | |||
| ) |
| int dev_name_duplicate | ( | disk_t * | dl, | |
| char * | dev_name | |||
| ) |
| char* eisa_vendor_str | ( | unsigned | v | ) |
| void fix_probe_features | ( | hd_data_t * | hd_data | ) | [static] |
| char* float2str | ( | int | f, | |
| int | n | |||
| ) |
| driver_info_t* free_driver_info | ( | driver_info_t * | di | ) |
| hd_detail_t* free_hd_detail | ( | hd_detail_t * | d | ) |
| void* free_mem | ( | void * | p | ) |
| void free_old_hd_entries | ( | hd_data_t * | hd_data | ) | [static] |
| str_list_t * free_str_list | ( | str_list_t * | list | ) | [related, inherited] |
Free the memory allocated by a string list.
| char* get_cmd_param | ( | hd_data_t * | hd_data, | |
| int | field | |||
| ) |
| str_list_t* get_cmdline | ( | hd_data_t * | hd_data, | |
| char * | key | |||
| ) |
| unsigned get_disk_crc | ( | unsigned char * | data, | |
| unsigned | len | |||
| ) |
| void get_kernel_version | ( | hd_data_t * | hd_data | ) | [static] |
| struct s_pr_flags * get_pr_flags | ( | enum probe_feature | feature | ) | [static] |
| void get_probe_env | ( | hd_data_t * | hd_data | ) | [static] |
| char* get_sysfs_attr | ( | const char * | bus, | |
| const char * | device, | |||
| const char * | attr | |||
| ) |
| char* get_sysfs_attr_by_path | ( | const char * | path, | |
| const char * | attr | |||
| ) |
| int has_hw_class | ( | hd_t * | hd, | |
| hd_hw_item_t * | items | |||
| ) | [static] |
| int has_item | ( | hd_hw_item_t * | items, | |
| hd_hw_item_t | item | |||
| ) | [static] |
| void hd_add_old_id | ( | hd_t * | hd | ) |
| int hd_apm_enabled | ( | hd_data_t * | hd_data | ) |
| str_list_t* hd_attr_list | ( | char * | str | ) |
| int hd_attr_uint | ( | char * | attr, | |
| uint64_t * | u, | |||
| int | base | |||
| ) |
| unsigned hd_boot_disk | ( | hd_data_t * | hd_data, | |
| int * | matches | |||
| ) |
| const char* hd_busid_to_hwcfg | ( | int | busid | ) |
| int hd_change_config_status | ( | hd_data_t * | hd_data, | |
| const char * | id, | |||
| hd_status_t | status, | |||
| const char * | config_string | |||
| ) |
| int hd_change_status | ( | const char * | id, | |
| hd_status_t | status, | |||
| const char * | config_string | |||
| ) |
| void hd_clear_probe_feature | ( | hd_data_t * | hd_data, | |
| enum probe_feature | feature | |||
| ) |
| int hd_color | ( | hd_data_t * | hd_data | ) |
| unsigned hd_display_adapter | ( | hd_data_t * | hd_data | ) |
| void hd_fork | ( | hd_data_t * | hd_data, | |
| int | timeout, | |||
| int | total_timeout | |||
| ) |
| void hd_fork_done | ( | hd_data_t * | hd_data | ) |
| hal_device_t* hd_free_hal_devices | ( | hal_device_t * | dev | ) |
| hal_prop_t* hd_free_hal_properties | ( | hal_prop_t * | prop | ) |
| hd_manual_t* hd_free_manual | ( | hd_manual_t * | manual | ) |
| hd_sysfsdrv_t * hd_free_sysfsdrv | ( | hd_sysfsdrv_t * | sf | ) | [static] |
| hd_udevinfo_t * hd_free_udevinfo | ( | hd_udevinfo_t * | ui | ) | [static] |
| char* hd_get_hddb_dir | ( | void | ) |
| char* hd_get_hddb_path | ( | char * | sub | ) |
| int hd_has_pcmcia | ( | hd_data_t * | hd_data | ) |
| int hd_is_hw_class | ( | hd_t * | hd, | |
| hd_hw_item_t | hw_class | |||
| ) |
| int hd_is_iseries | ( | hd_data_t * | hd_data | ) |
| int hd_is_sgi_altix | ( | hd_data_t * | hd_data | ) |
| int hd_is_shm_ptr | ( | hd_data_t * | hd_data, | |
| void * | ptr | |||
| ) |
| int hd_is_uml | ( | hd_data_t * | hd_data | ) |
| char* hd_join | ( | char * | del, | |
| str_list_t * | str | |||
| ) |
| hd_t* hd_list | ( | hd_data_t * | hd_data, | |
| hd_hw_item_t | item, | |||
| int | rescan, | |||
| hd_t * | hd_old | |||
| ) |
| hd_t* hd_list2 | ( | hd_data_t * | hd_data, | |
| hd_hw_item_t * | items, | |||
| int | rescan | |||
| ) |
| hd_t* hd_list_with_status | ( | hd_data_t * | hd_data, | |
| hd_hw_item_t | item, | |||
| hd_status_t | status | |||
| ) |
| hd_t* hd_list_with_status2 | ( | hd_data_t * | hd_data, | |
| hd_hw_item_t * | items, | |||
| hd_status_t | status | |||
| ) |
| int hd_mac_color | ( | hd_data_t * | hd_data | ) |
| int hd_mod_cmp | ( | char * | str1, | |
| char * | str2 | |||
| ) |
| int hd_module_is_active | ( | hd_data_t * | hd_data, | |
| char * | mod | |||
| ) |
| str_list_t* hd_module_list | ( | hd_data_t * | hd_data, | |
| unsigned | id | |||
| ) |
| void hd_move_to_shm | ( | hd_data_t * | hd_data | ) |
| int hd_probe_feature | ( | hd_data_t * | hd_data, | |
| enum probe_feature | feature | |||
| ) |
| enum probe_feature hd_probe_feature_by_name | ( | char * | name | ) |
| char* hd_probe_feature_by_value | ( | enum probe_feature | feature | ) |
| int hd_read_mmap | ( | hd_data_t * | hd_data, | |
| char * | name, | |||
| unsigned char * | buf, | |||
| off_t | start, | |||
| unsigned | size | |||
| ) |
| char* hd_read_symlink | ( | char * | link_name | ) |
| char* hd_read_sysfs_link | ( | char * | base_dir, | |
| char * | link_name | |||
| ) |
| void hd_scan | ( | hd_data_t * | hd_data | ) |
the actual hardware scan
| void hd_scan_no_hal | ( | hd_data_t * | hd_data | ) | [static] |
| void hd_scan_with_hal | ( | hd_data_t * | hd_data | ) | [static] |
| void hd_scan_xtra | ( | hd_data_t * | hd_data | ) | [static] |
| void hd_set_hw_class | ( | hd_t * | hd, | |
| hd_hw_item_t | hw_class | |||
| ) |
| void hd_set_probe_feature | ( | hd_data_t * | hd_data, | |
| enum probe_feature | feature | |||
| ) |
| void hd_set_probe_feature_hw | ( | hd_data_t * | hd_data, | |
| hd_hw_item_t | item | |||
| ) |
| void* hd_shm_add | ( | hd_data_t * | hd_data, | |
| void * | ptr, | |||
| unsigned | len | |||
| ) |
| char * hd_shm_add_str | ( | hd_data_t * | hd_data, | |
| char * | str | |||
| ) | [static] |
| str_list_t * hd_shm_add_str_list | ( | hd_data_t * | hd_data, | |
| str_list_t * | sl | |||
| ) | [static] |
| void hd_shm_clean | ( | hd_data_t * | hd_data | ) |
| void hd_shm_done | ( | hd_data_t * | hd_data | ) |
| void hd_shm_init | ( | hd_data_t * | hd_data | ) |
| int hd_smp_support | ( | hd_data_t * | hd_data | ) |
| str_list_t* hd_split | ( | char | del, | |
| const char * | str | |||
| ) |
| char* hd_sysfs_dev2_name | ( | char * | str | ) |
| void hd_sysfs_driver_list | ( | hd_data_t * | hd_data | ) |
| char* hd_sysfs_id | ( | char * | path | ) |
| char* hd_sysfs_name2_dev | ( | char * | str | ) |
| int hd_timeout | ( | void(*)(void *) | func, | |
| void * | arg, | |||
| int | timeout | |||
| ) |
| int hd_usb_support | ( | hd_data_t * | hd_data | ) |
| char* hd_version | ( | void | ) |
| int hex | ( | char * | s, | |
| int | n | |||
| ) |
| void hexdump | ( | char ** | buf, | |
| int | with_ascii, | |||
| unsigned | data_len, | |||
| unsigned char * | data | |||
| ) |
| char* isa_id2str | ( | unsigned | id | ) |
| int load_module | ( | hd_data_t * | hd_data, | |
| char * | module | |||
| ) |
| int load_module_with_params | ( | hd_data_t * | hd_data, | |
| char * | module, | |||
| char * | params | |||
| ) |
| char* mod_name_by_idx | ( | unsigned | idx | ) |
| unsigned name2eisa_id | ( | char * | s | ) |
| void* new_mem | ( | size_t | size | ) |
| char* new_str | ( | const char * | s | ) |
| char* numid2str | ( | uint64_t | id, | |
| int | len | |||
| ) |
| int probe_module | ( | hd_data_t * | hd_data, | |
| char * | module | |||
| ) |
| void progress | ( | hd_data_t * | hd_data, | |
| unsigned | pos, | |||
| unsigned | count, | |||
| char * | msg | |||
| ) |
| unsigned char* read_block0 | ( | hd_data_t * | hd_data, | |
| char * | dev, | |||
| int * | timeout | |||
| ) |
| str_list_t* read_dir | ( | char * | dir_name, | |
| int | type | |||
| ) |
| str_list_t* read_file | ( | char * | file_name, | |
| unsigned | start_line, | |||
| unsigned | lines | |||
| ) |
| str_list_t* read_kmods | ( | hd_data_t * | hd_data | ) |
| void read_udevinfo | ( | hd_data_t * | hd_data | ) |
| void remove_hd_entries | ( | hd_data_t * | hd_data | ) |
| void remove_tagged_hd_entries | ( | hd_data_t * | hd_data | ) |
| void* resize_mem | ( | void * | p, | |
| size_t | n | |||
| ) |
| str_list_t * reverse_str_list | ( | str_list_t * | list | ) | [related, inherited] |
Reverse string list.
| int run_cmd | ( | hd_data_t * | hd_data, | |
| char * | cmd | |||
| ) |
| str_list_t * search_str_list | ( | str_list_t * | sl, | |
| char * | str | |||
| ) | [related, inherited] |
Search a string list for a string.
| void set_probe_feature | ( | hd_data_t * | hd_data, | |
| enum probe_feature | feature, | |||
| unsigned | val | |||
| ) | [static] |
| void short_vendor | ( | char * | vendor | ) | [static] |
| void sigchld_handler | ( | int | ) | [static] |
| int str2float | ( | char * | s, | |
| int | n | |||
| ) |
| void str_printf | ( | char ** | buf, | |
| int | offset, | |||
| char * | format, | |||
| ... | ||||
| ) |
| void test_read_block0_open | ( | void * | arg | ) | [static] |
| void timeout_alarm_handler | ( | int | signal | ) | [static] |
| int unload_module | ( | hd_data_t * | hd_data, | |
| char * | module | |||
| ) |
| void update_irq_usage | ( | hd_data_t * | hd_data | ) |
| char* vend_id2str | ( | unsigned | vend | ) |
volatile pid_t child [static] |
pid_t child_id [static] |
struct s_pr_flags pr_flags[] [static] |
struct s_mod_names pr_modules[] [static] |