Lines Matching refs:ctl_fd

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()
662 error = ioctl(ctl_fd, CTL_LUN_REQ, &req); in kernel_add()
710 error = ioctl(ctl_fd, CTL_LUN_REQ, &req); in kernel_modify()
748 if (ioctl(ctl_fd, CTL_LUN_REQ, &req) == -1) { in kernel_remove()
789 error = ioctl(ctl_fd, CTL_PORT_REQ, &req); in ctl_create_port()
843 if (ioctl(ctl_fd, CTL_SET_PORT_WWNS, &entry) == -1) in kernel_create_port()
864 error = ioctl(ctl_fd, CTL_LUN_MAP, &lm); in kernel_add()
875 error = ioctl(ctl_fd, CTL_LUN_MAP, &lm); in kernel_add()
883 error = ioctl(ctl_fd, CTL_ENABLE_PORT, &entry); in kernel_add()
917 error = ioctl(ctl_fd, CTL_LUN_MAP, &lm); in kernel_update()
938 error = ioctl(ctl_fd, CTL_PORT_REQ, &req); in ctl_remove_port()
976 error = ioctl(ctl_fd, CTL_LUN_MAP, &lm); in kernel_remove_port()
991 error = ioctl(ctl_fd, CTL_DISABLE_PORT, &entry); in kernel_remove()
1017 if (ioctl(ctl_fd, CTL_ISCSI, &req) == -1) in kernel_listen()
1038 if (ioctl(ctl_fd, CTL_ISCSI, &req) == -1) in kernel_accept()
1065 if (ioctl(ctl_fd, CTL_ISCSI, &req) == -1) { in kernel_send()
1096 if (ioctl(ctl_fd, CTL_ISCSI, &req) == -1) { in kernel_receive()
1120 if (caph_rights_limit(ctl_fd, &rights) < 0) in kernel_capsicate()
1123 if (caph_ioctls_limit(ctl_fd, cmds, nitems(cmds)) < 0) in kernel_capsicate()