Searched refs:targ_fd (Results 1 – 1 of 1) sorted by relevance
/freebsd/share/examples/scsi_target/ |
H A D | scsi_target.c | 71 static int targ_fd; variable 114 targ_fd = file_fd = kq_fd = -1; in main() 290 targ_fd = open("/dev/targ", O_RDWR); in main() 291 if (targ_fd < 0) in main() 309 if (ioctl(targ_fd, TARGIOCENABLE, &ioc_enlun) != 0) in main() 314 if (ioctl(targ_fd, TARGIOCDEBUG, &debug) != 0) in main() 345 ioctl(targ_fd, TARGIOCDEBUG, &debug); in cleanup() 347 ioctl(targ_fd, TARGIOCDISABLE, NULL); in cleanup() 348 close(targ_fd); in cleanup() 416 EV_SET(&events[3], targ_fd, EVFILT_READ, EV_ADD|EV_ENABLE, 0, 0, 0); in request_loop() [all …]
|