Lines Matching refs:targ_fd
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()
547 ccb_count = read(targ_fd, ccb_array, sizeof(ccb_array)); in handle_read()
839 if (write(targ_fd, &ccb, sizeof(ccb)) != sizeof(ccb)) { in send_ccb()