Lines Matching refs:ds_fd
65 static int ds_fd = -1;
335 if (ds_fd >= 0)
338 if ((ds_fd = open(vlds_device, 0)) < 0)
374 if (ds_fd < 0 && (errno = ds_init()) != 0) {
420 if (ioctl(ds_fd, VLDS_SVC_REG, &vlds_arg) < 0) {
431 (void) ioctl(ds_fd, VLDS_UNREG_HDL, &vlds_arg);
485 if (ds_fd < 0) {
499 if (ioctl(ds_fd, VLDS_HDL_LOOKUP, &vlds_arg) < 0) {
516 if (ds_fd < 0) {
523 if (ioctl(ds_fd, VLDS_DMN_LOOKUP, &vlds_arg) < 0) {
550 if (ds_fd >= 0) {
552 (void) ioctl(ds_fd, VLDS_UNREG_HDL, &vlds_arg);
573 if (ds_fd < 0) {
581 if (ioctl(ds_fd, VLDS_SEND_MSG, &vlds_arg) < 0) {
599 if (ds_fd < 0) {
608 if (ioctl(ds_fd, VLDS_RECV_MSG, &vlds_arg) < 0) {
628 if (ds_fd < 0) {
635 if (ioctl(ds_fd, VLDS_HDL_ISREADY, &vlds_arg) < 0) {
652 if (ds_fd < 0) {
659 if (ioctl(ds_fd, VLDS_DOM_NAM2HDL, &vlds_arg) < 0) {
678 if (ds_fd < 0) {
686 if (ioctl(ds_fd, VLDS_DOM_HDL2NAM, &vlds_arg) < 0) {
711 if (ds_fd >= 0) {
712 (void) close(ds_fd);
713 ds_fd = -1;