Lines Matching refs:ds_fd
66 static int ds_fd = -1;
329 if (ds_fd >= 0)
332 if ((ds_fd = open(vlds_device, 0)) < 0)
368 if (ds_fd < 0 && (errno = ds_init()) != 0) {
414 if (ioctl(ds_fd, VLDS_SVC_REG, &vlds_arg) < 0) {
425 (void) ioctl(ds_fd, VLDS_UNREG_HDL, &vlds_arg);
479 if (ds_fd < 0) {
493 if (ioctl(ds_fd, VLDS_HDL_LOOKUP, &vlds_arg) < 0) {
510 if (ds_fd < 0) {
517 if (ioctl(ds_fd, VLDS_DMN_LOOKUP, &vlds_arg) < 0) {
544 if (ds_fd >= 0) {
546 (void) ioctl(ds_fd, VLDS_UNREG_HDL, &vlds_arg);
567 if (ds_fd < 0) {
575 if (ioctl(ds_fd, VLDS_SEND_MSG, &vlds_arg) < 0) {
593 if (ds_fd < 0) {
602 if (ioctl(ds_fd, VLDS_RECV_MSG, &vlds_arg) < 0) {
622 if (ds_fd < 0) {
629 if (ioctl(ds_fd, VLDS_HDL_ISREADY, &vlds_arg) < 0) {
646 if (ds_fd < 0) {
653 if (ioctl(ds_fd, VLDS_DOM_NAM2HDL, &vlds_arg) < 0) {
672 if (ds_fd < 0) {
680 if (ioctl(ds_fd, VLDS_DOM_HDL2NAM, &vlds_arg) < 0) {
705 if (ds_fd >= 0) {
706 (void) close(ds_fd);
707 ds_fd = -1;