Home | History | Annotate | Download | only in libaltq

Lines Matching defs:red_fd

60 static int red_fd = -1;
233 if (red_fd < 0 &&
234 (red_fd = open(RED_DEVICE, O_RDWR)) < 0 &&
235 (red_fd = open_module(RED_DEVICE, O_RDWR)) < 0) {
244 if (ioctl(red_fd, RED_IF_ATTACH, &iface) < 0)
257 if (ioctl(red_fd, RED_CONFIG, &conf) < 0)
274 if (ioctl(red_fd, RED_IF_DETACH, &iface) < 0)
278 close(red_fd);
279 red_fd = -1;
292 if (ioctl(red_fd, RED_ENABLE, &iface) < 0)
305 if (ioctl(red_fd, RED_DISABLE, &iface) < 0)