Searched refs:targ_fd (Results 1 – 2 of 2) sorted by relevance
| /src/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 …]
|
| /src/cddl/contrib/opensolaris/tests/os-tests/tests/oclo/ |
| H A D | ocloexec_verify.c | 139 int targ_fd = i + STDERR_FILENO; in main() local 149 if (!verify_flags(targ_fd, (int)val)) in main()
|