Lines Matching refs:fd

76 static int open_driver(int *fd);
168 int fd;
177 if ((status = open_driver(&fd))) {
183 (void) close(fd);
195 if (ioctl(fd, ISCSI_DISCOVERY_ADDR_LIST_GET, ialp) != 0) {
196 (void) close(fd);
216 (void) close(fd);
226 if (ioctl(fd, ISCSI_DISCOVERY_ADDR_LIST_GET, ialp) != 0) {
229 (void) close(fd);
243 (void) close(fd);
279 (void) close(fd);
288 int fd;
294 if ((status = open_driver(&fd))) {
301 if (ioctl(fd, ISCSI_STATIC_GET, &prop) != 0) {
303 (void) close(fd);
312 (void) close(fd);
365 int fd;
423 if ((status = open_driver(&fd))) {
427 if (ioctl(fd, ISCSI_STATIC_SET, &target)) {
434 (void) close(fd);
442 (void) close(fd);
451 int fd;
455 if ((status = open_driver(&fd))) {
463 if (ioctl(fd, ISCSI_TARGET_PROPS_GET, &prop) != 0) {
466 (void) close(fd);
524 (void) close(fd);
537 int fd;
543 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
564 if (ioctl(fd, ISCSI_CHAP_SET, &chap_p) != 0) {
567 (void) close(fd);
594 int fd;
602 if ((status = open_driver(&fd))) {
610 if (ioctl(fd, ISCSI_RADIUS_GET, &radius) != 0) {
647 if (ioctl(fd, ISCSI_RADIUS_SET, &radius) != 0) {
650 (void) close(fd);
654 (void) close(fd);
664 int fd;
668 if ((status = open_driver(&fd))) {
676 if (ioctl(fd, ISCSI_RADIUS_GET, &radius) != 0) {
677 (void) close(fd);
695 (void) close(fd);
706 (void) close(fd);
715 int fd;
719 if ((status = open_driver(&fd))) {
727 if (ioctl(fd, ISCSI_RADIUS_GET, &radius) != 0) {
736 (void) close(fd);
754 (void) close(fd);
762 if (ioctl(fd, ISCSI_RADIUS_SET, &radius) != 0) {
765 (void) close(fd);
769 (void) close(fd);
778 int fd;
782 if ((status = open_driver(&fd))) {
790 if (ioctl(fd, ISCSI_RADIUS_GET, &radius) != 0) {
791 (void) close(fd);
802 (void) close(fd);
815 int fd;
853 if ((status = open_driver(&fd))) {
861 if (ioctl(fd, ISCSI_SENDTGTS_GET, stl_hdr) != 0) {
864 (void) close(fd);
878 (void) close(fd);
897 (void) close(fd);
947 int fd;
951 if ((status = open_driver(&fd))) {
959 if (ioctl(fd, ISCSI_AUTH_GET, &auth) != 0) {
964 if (ioctl(fd, ISCSI_AUTH_SET, &auth) != 0) {
967 (void) close(fd);
971 (void) close(fd);
980 int fd;
984 if ((status = open_driver(&fd))) {
992 if (ioctl(fd, ISCSI_AUTH_GET, &auth) != 0) {
993 (void) close(fd);
1000 (void) close(fd);
1009 int fd;
1013 if ((status = open_driver(&fd))) {
1021 if (ioctl(fd, ISCSI_CREATE_OID, &oid) == -1) {
1024 (void) close(fd);
1032 (void) close(fd);
1041 int fd;
1046 if ((status = open_driver(&fd))) {
1053 if (ioctl(fd, ISCSI_TARGET_PARAM_CLEAR, &entry)) {
1066 if (ioctl(fd, ISCSI_CHAP_CLEAR, &chap_p) != 0) {
1083 if (ioctl(fd, ISCSI_AUTH_CLEAR, &auth_p) != 0) {
1092 (void) close(fd);
1189 int fd;
1236 if ((openStatus = open_driver(&fd))) {
1240 if (ioctl(fd, ISCSI_LUN_PROPS_GET, &lun)) {
1246 (void) close(fd);
1590 int fd;
1606 if ((status = open_driver(&fd))) {
1611 if (ioctl(fd, ISCSI_GET_CONFIG_SESSIONS, ics) != 0) {
1615 (void) close(fd);
1636 if (ioctl(fd, ISCSI_GET_CONFIG_SESSIONS, ics) != 0) {
1640 (void) close(fd);
1645 (void) close(fd);
1691 int fd;
1733 if ((status = open_driver(&fd))) {
1739 if (ioctl(fd, ISCSI_SET_CONFIG_SESSIONS, ics) != 0) {
1743 (void) close(fd);
1747 (void) close(fd);
1761 int fd;
1765 if ((status = open_driver(&fd))) {
1775 if (ioctl(fd, ISCSI_PARAM_GET, &pg) != 0) {
1778 (void) close(fd);
1814 if (ioctl(fd, ISCSI_PARAM_GET, &pg) != 0) {
1817 (void) close(fd);
1821 (void) close(fd);
1834 int fd;
1838 if ((status = open_driver(&fd))) {
1865 if (ioctl(fd, ISCSI_PARAM_SET, &ps)) {
1866 (void) close(fd);
1872 (void) close(fd);
1922 int fd, status;
1924 if ((status = open_driver(&fd))) {
1929 if (ioctl(fd, ISCSI_DISCOVERY_CLEAR, &method)) {
1931 (void) close(fd);
1942 (void) close(fd);
1946 if (ioctl(fd, ISCSI_DISCOVERY_SET, &method)) {
1948 (void) close(fd);
1955 (void) close(fd);
1982 int fd;
1989 if ((status = open_driver(&fd))) {
1995 (void) close(fd);
2007 if (ioctl(fd, ISCSI_TARGET_OID_LIST_GET, idlp) != 0) {
2008 (void) close(fd);
2022 (void) close(fd);
2030 if (ioctl(fd, ISCSI_TARGET_OID_LIST_GET, idlp) != 0) {
2033 (void) close(fd);
2052 (void) close(fd);
2060 int fd;
2065 if ((status = open_driver(&fd))) {
2071 (void) close(fd);
2090 if (ioctl(fd, ISCSI_LUN_OID_LIST_GET, illp) != 0) {
2091 (void) close(fd);
2104 (void) close(fd);
2115 if (ioctl(fd, ISCSI_LUN_OID_LIST_GET, illp) != 0) {
2117 (void) close(fd);
2128 (void) close(fd);
2230 int fd;
2238 if ((status = open_driver(&fd))) {
2245 (void) close(fd);
2263 if (ioctl(fd, ISCSI_CONN_OID_LIST_GET, iscsiConnList) != 0) {
2267 (void) close(fd);
2279 (void) close(fd);
2292 if (ioctl(fd, ISCSI_CONN_OID_LIST_GET, iscsiConnList) != 0) {
2299 (void) close(fd);
2316 (void) close(fd);
2330 int fd;
2334 if ((status = open_driver(&fd))) {
2342 (void) close(fd);
2352 if (ioctl(fd, ISCSI_CONN_PROPS_GET, iscsiConnProps) != 0) {
2357 (void) close(fd);
2360 (void) close(fd);
2373 int fd;
2378 if ((status = open_driver(&fd))) {
2389 if (ioctl(fd, ISCSI_AUTH_GET, &auth) != 0) {
2405 if (ioctl(fd, ISCSI_AUTH_SET, &auth) != 0) {
2408 (void) close(fd);
2412 (void) close(fd);
2423 int fd;
2427 if ((status = open_driver(&fd))) {
2435 if (ioctl(fd, ISCSI_AUTH_GET, &auth) != 0) {
2438 (void) close(fd);
2453 (void) close(fd);
2459 int *fd
2463 if ((*fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
2481 int fd;
2486 if ((status = open_driver(&fd))) {
2492 (void) close(fd);
2502 if (ioctl(fd, ISCSI_DISCOVERY_ADDR_LIST_GET, &al_info) != 0) {
2506 (void) close(fd);
2511 (void) close(fd);
2523 (void) close(fd);
2531 if (ioctl(fd, ISCSI_DISCOVERY_ADDR_LIST_GET, idlp) != 0) {
2536 (void) close(fd);
2568 (void) close(fd);
2572 if (ioctl(fd, ISCSI_DISCOVERY_ADDR_CLEAR, &entry)) {
2574 (void) close(fd);
2585 (void) close(fd);
2660 int fd;
2669 if ((status = open_driver(&fd))) {
2675 (void) close(fd);
2686 if (ioctl(fd, ISCSI_ISNS_SERVER_ADDR_LIST_GET, ialp) != 0) {
2687 (void) close(fd);
2704 (void) close(fd);
2714 if (ioctl(fd, ISCSI_ISNS_SERVER_ADDR_LIST_GET, ialp) != 0) {
2716 (void) close(fd);
2730 (void) close(fd);
2760 (void) close(fd);
2773 int fd, status;
2775 if ((status = open_driver(&fd))) {
2781 (void) close(fd);
2785 if (ioctl(fd, ISCSI_ISNS_SERVER_ADDR_CLEAR, &entry)) {
2787 (void) close(fd);
2798 (void) close(fd);
2808 int fd;
2811 if ((status = open_driver(&fd))) {
2817 (void) close(fd);
2821 if (ioctl(fd, ISCSI_ISNS_SERVER_ADDR_SET, &entry)) {
2825 (void) close(fd);
2832 (void) close(fd);
2841 int fd;
2879 if ((status = open_driver(&fd))) {
2888 if (ioctl(fd, ISCSI_ISNS_SERVER_GET, server_pg_list) != 0) {
2899 (void) close(fd);
2914 (void) close(fd);
2934 (void) close(fd);
2994 int fd;
3009 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
3019 if (ioctl(fd, ISCSI_CHAP_GET, &chap_p) != 0) {
3024 (void) close(fd);
3044 int fd;
3052 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
3058 if (ioctl(fd, ISCSI_BOOTPROP_GET, &bootProp) != 0) {
3062 (void) close(fd);
3084 int fd;
3092 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
3098 if (ioctl(fd, ISCSI_BOOTPROP_GET, &bootProp) != 0) {
3102 (void) close(fd);
3128 int fd;
3134 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
3140 if (ioctl(fd, ISCSI_BOOTPROP_GET, &bootProp) != 0) {
3144 (void) close(fd);
3154 (void) close(fd);
3162 int fd;
3168 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
3174 if (ioctl(fd, ISCSI_BOOTPROP_GET, &bootProp) != 0) {
3178 (void) close(fd);
3184 (void) close(fd);
3191 int fd;
3198 if ((fd = open(ISCSI_DRIVER_DEVCTL, O_RDONLY)) == -1) {
3204 if (ioctl(fd, ISCSI_SMF_GET, &status) != 0) {
3208 (void) close(fd);
3216 (void) close(fd);
3224 int fd;
3231 if ((status = open_driver(&fd))) {
3235 (void) ioctl(fd, ISCSI_TARGET_REENUM, &reet);
3237 (void) close(fd);