Home
last modified time | relevance | path

Searched refs:guestfd_array (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/semihosting/
H A Dguestfd.c19 static GArray *guestfd_array; variable
29 guestfd_array = g_array_new(FALSE, TRUE, sizeof(GuestFD)); in qemu_semihosting_guestfd_init()
44 guestfd_array = g_array_set_size(guestfd_array, 3); in qemu_semihosting_guestfd_init()
47 GuestFD *gf = &g_array_index(guestfd_array, GuestFD, 0); in qemu_semihosting_guestfd_init()
72 for (i = 1; i < guestfd_array->len; i++) { in alloc_guestfd()
73 GuestFD *gf = &g_array_index(guestfd_array, GuestFD, i); in alloc_guestfd()
81 g_array_set_size(guestfd_array, i + 1); in alloc_guestfd()
97 if (guestfd < 0 || guestfd >= guestfd_array->len) { in do_get_guestfd()
101 return &g_array_index(guestfd_array, GuestFD, guestfd); in do_get_guestfd()