Searched refs:disk_fd (Results 1 – 2 of 2) sorted by relevance
/freebsd/stand/userboot/test/ |
H A D | test.c | 59 int *disk_fd; 374 if (unit > disk_index || disk_fd[unit] == -1) in test_delay() 376 n = pread(disk_fd[unit], dst, size, offset); in test_delay() 394 if (unit > disk_index || disk_fd[unit] == -1) 396 n = pwrite(disk_fd[unit], src, size, offset); in test_getenv() 408 if (unit > disk_index || disk_fd[unit] == -1) 415 if (fstat(disk_fd[unit], &sb) == 0) 589 disk_fd = reallocarray(disk_fd, disk_index + 1, 591 disk_fd[disk_inde 54 int *disk_fd; global() variable [all...] |
/freebsd/usr.sbin/bhyveload/ |
H A D | bhyveload.c | 103 static int disk_fd[NDISKS]; variable 333 n = pread(disk_fd[unit], to, size, from); in cb_diskread() 348 n = pwrite(disk_fd[unit], src, size, offset); in cb_diskwrite() 368 if (fstat(disk_fd[unit], &sb) != 0) in cb_diskioctl() 371 ioctl(disk_fd[unit], DIOCGMEDIASIZE, &sb.st_size) != 0) in cb_diskioctl() 728 disk_fd[ndisks] = fd; in disk_open()
|