Searched refs:ctl_fd (Results 1 – 9 of 9) sorted by relevance
| /src/contrib/ntp/libntp/ |
| H A D | audio.c | 81 static int ctl_fd; /* audio control file descriptor */ variable 275 ctl_fd = open(actl, O_RDWR); in audio_init() 276 if (ctl_fd < 0) { in audio_init() 280 return(ctl_fd); in audio_init() 327 if (ioctl(ctl_fd, SOUND_MIXER_READ_DEVMASK, &devmask) == -1) in audio_init() 329 if (ioctl(ctl_fd, SOUND_MIXER_READ_RECMASK, &recmask) == -1) in audio_init() 364 rval = ioctl(ctl_fd, AUDIO_SETINFO, (char *)&info); in audio_init() 367 close(ctl_fd); in audio_init() 409 rval = ioctl(ctl_fd, agc, &l); in audio_gain() 411 rval = ioctl(ctl_fd in audio_gain() [all …]
|
| /src/tools/tools/nvmf/nvmfd/ |
| H A D | ctl.c | 24 static int ctl_fd = -1; variable 30 if (ctl_fd > 0) in open_ctl() 33 ctl_fd = open(CTL_DEFAULT_DEV, O_RDWR); in open_ctl() 34 if (ctl_fd == -1 && errno == ENOENT) { in open_ctl() 37 ctl_fd = open(CTL_DEFAULT_DEV, O_RDWR); in open_ctl() 39 if (ctl_fd == -1) in open_ctl() 70 if (ioctl(ctl_fd, CTL_PORT_REQ, &req) != 0) in init_ctl_port() 87 if (ioctl(ctl_fd, CTL_ENABLE_PORT, &entry) != 0) in init_ctl_port() 109 if (ioctl(ctl_fd, CTL_PORT_REQ, &req) != 0) in shutdown_ctl_port() 135 if (ioctl(ctl_fd, CTL_NVMF, &req) != 0) in ctl_handoff_qpair()
|
| /src/contrib/ntp/util/ |
| H A D | audio-pcm.c | 38 static int ctl_fd; /* audio control file descriptor */ variable 110 ctl_fd = open(actl, O_RDWR); in main() 111 if (ctl_fd < 0) { in main() 114 return(ctl_fd); in main() 118 printf("control: <%s> %d\n", actl, ctl_fd); in main() 120 if (ioctl(ctl_fd, SOUND_MIXER_READ_DEVMASK, &devmask) == -1) in main() 122 if (ioctl(ctl_fd, SOUND_MIXER_READ_RECMASK, &recmask) == -1) in main() 124 if (ioctl(ctl_fd, SOUND_MIXER_READ_RECSRC, &recsrc) == -1) in main()
|
| /src/usr.sbin/ctld/ |
| H A D | kernel.cc | 78 int ctl_fd = 0; variable 85 ctl_fd = open(CTL_DEFAULT_DEV, O_RDWR); in kernel_init() 86 if (ctl_fd < 0 && errno == ENOENT) { in kernel_init() 90 ctl_fd = open(CTL_DEFAULT_DEV, O_RDWR); in kernel_init() 94 if (ctl_fd < 0) in kernel_init() 369 if (ioctl(ctl_fd, CTL_LUN_LIST, &list) == -1) { in parse_kernel_config() 408 if (ioctl(ctl_fd, CTL_PORT_LIST, &list) == -1) { in parse_kernel_config() 658 error = ioctl(ctl_fd, CTL_LUN_REQ, &req); in kernel_add() 706 error = ioctl(ctl_fd, CTL_LUN_REQ, &req); in kernel_modify() 744 if (ioctl(ctl_fd, CTL_LUN_REQ, &req) == -1) { in kernel_remove() [all …]
|
| H A D | nvmf.cc | 458 if (ioctl(ctl_fd, CTL_NVMF, &req) != 0) in handle_connection()
|
| H A D | iscsi.cc | 474 if (ioctl(ctl_fd, CTL_ISCSI, &req) == -1) { in kernel_handoff()
|
| H A D | ctld.hh | 592 extern int ctl_fd;
|
| H A D | login.cc | 67 if (ioctl(ctl_fd, CTL_ISCSI, &req) == -1) { in kernel_limits()
|
| /src/crypto/openssh/openbsd-compat/ |
| H A D | port-solaris.c | 143 int r, ctl_fd = -1, stat_fd = -1; in solaris_contract_post_fork_parent() local 173 if ((ctl_fd = open64(ctl_path, O_WRONLY)) < 0) { in solaris_contract_post_fork_parent() 178 if (ct_ctl_abandon(ctl_fd) < 0) { in solaris_contract_post_fork_parent() 183 close(ctl_fd); in solaris_contract_post_fork_parent() 193 if (ctl_fd != -1) in solaris_contract_post_fork_parent() 194 close(ctl_fd); in solaris_contract_post_fork_parent()
|