Lines Matching defs:jobs_fd
124 static int jobs_fd = -1;
521 if (jobs_fd < 0 &&
522 (jobs_fd = open(JOBS_DEVICE, O_RDWR)) < 0 &&
523 (jobs_fd = open_module(JOBS_DEVICE, O_RDWR)) < 0) {
535 if (ioctl(jobs_fd, JOBS_IF_ATTACH, (struct jobs_attach*) &attach) < 0)
556 if (ioctl(jobs_fd, JOBS_IF_DETACH, &iface) < 0)
560 close(jobs_fd);
561 jobs_fd = -1;
574 if (ioctl(jobs_fd, JOBS_ENABLE, &iface) < 0)
587 if (ioctl(jobs_fd, JOBS_DISABLE, &iface) < 0)
600 if (ioctl(jobs_fd, JOBS_CLEAR, &iface) < 0)
622 if (ioctl(jobs_fd
650 if (ioctl(jobs_fd, JOBS_MOD_CLASS, &class_mod) < 0)
668 if (ioctl(jobs_fd, JOBS_DEL_CLASS, &class_delete) < 0)
684 if (ioctl(jobs_fd, JOBS_ADD_FILTER, &fltr_add) < 0)
700 if (ioctl(jobs_fd, JOBS_DEL_FILTER, &fltr_del) < 0)