Get list of SCSI controllers
Get primary display controller
Get list of SCSI controllers
#include <stdio.h>
#include <stdlib.h>
int main(
int argc,
char **argv)
{
for(; hd; hd = hd->
next) {
}
return 0;
}
void hd_dump_entry(hd_data_t *hd_data, hd_t *hd, FILE *f)
Definition hdp.c:46
@ hw_scsi
Definition hd.h:145
API_SYM hd_t * hd_free_hd_list(hd_t *hd)
Free hardware items returned by e.g. hd_list().
Definition hd.c:1207
API_SYM hd_data_t * hd_free_hd_data(hd_data_t *hd_data)
Free all data.
Definition hd.c:981
API_SYM hd_t * hd_list(hd_data_t *hd_data, hd_hw_item_t item, int rescan, hd_t *hd_old)
Definition hd.c:3291
struct s_hd_t * next
Link to next hardware item.
Definition hd.h:2204
int main(int argc, char **argv)
Definition isdn_cdb.c:164
static hd_data_t * hd_data
Definition pppoe.c:30
Holds all data accumulated during hardware probing.
Definition hd.h:2611
Individual hardware item.
Definition hd.h:2203
Get primary display controller
#include <stdio.h>
#include <stdlib.h>
int main(
int argc,
char **argv)
{
unsigned display_idx;
return 0;
}
@ hw_display
Definition hd.h:142
API_SYM hd_t * hd_get_device_by_idx(hd_data_t *hd_data, unsigned idx)
Definition hd.c:2302
API_SYM unsigned hd_display_adapter(hd_data_t *hd_data)
Definition hd.c:3046