Lines Matching refs:hfsc_fd
82 static int hfsc_fd = -1;
995 if (hfsc_fd < 0 &&
996 (hfsc_fd = open(HFSC_DEVICE, O_RDWR)) < 0 &&
997 (hfsc_fd = open_module(HFSC_DEVICE, O_RDWR)) < 0) {
1007 if (ioctl(hfsc_fd, HFSC_IF_ATTACH, &attach) < 0)
1020 if (ioctl(hfsc_fd, HFSC_IF_DETACH, &iface) < 0)
1024 close(hfsc_fd);
1025 hfsc_fd = -1;
1038 if (ioctl(hfsc_fd, HFSC_CLEAR_HIERARCHY, &iface) < 0)
1051 if (ioctl(hfsc_fd, HFSC_ENABLE, &iface) < 0)
1064 if (ioctl(hfsc_fd, HFSC_DISABLE, &iface) < 0)
1091 if (ioctl(hfsc_fd, HFSC_ADD_CLASS, &class_add) < 0) {
1122 if (ioctl(hfsc_fd, HFSC_MOD_CLASS, &class_mod) < 0)
1140 if (ioctl(hfsc_fd, HFSC_DEL_CLASS, &class_delete) < 0)
1156 if (ioctl(hfsc_fd, HFSC_ADD_FILTER, &fltr_add) < 0)
1172 if (ioctl(hfsc_fd, HFSC_DEL_FILTER, &fltr_del) < 0)