Lines Matching refs:ioctls
107 ioctlsort(struct ioctlent *ioctls, size_t nioctls) in ioctlsort() argument
111 qsort(ioctls, nioctls, sizeof(ioctls[0]), compare_name_info); in ioctlsort()
114 if (!strcmp(ioctls[i-1].name, ioctls[i].name)) { in ioctlsort()
120 ioctls[i].info = NULL; in ioctlsort()
124 if (!ioctls[i].info) { in ioctlsort()
129 ioctls[i].dir = in ioctlsort()
130 ioctls[i].type_nr = in ioctlsort()
131 ioctls[i].size = 0xffffffffu; in ioctlsort()
134 qsort(ioctls, nioctls, sizeof(ioctls[0]), compare_code_name); in ioctlsort()
138 if (!ioctls[i].info) { in ioctlsort()
144 if (i == 0 || code(&ioctls[i-1]) != code(&ioctls[i]) || in ioctlsort()
145 !is_prefix(ioctls[i-1].name, ioctls[i].name)) in ioctlsort()
147 ioctls[i].name, code(ioctls+i)); in ioctlsort()
151 static struct ioctlent ioctls[] = { variable
163 ioctlsort(ioctls, sizeof(ioctls) / sizeof(ioctls[0])); in main()