Lines Matching full:ioctl
35 #include <sys/ioctl.h>
119 rv = ioctl(mpfd, DEVFSIO_RADD, &dr); in rule_add()
121 err(1, "ioctl DEVFSIO_RADD"); in rule_add()
141 rv = ioctl(mpfd, DEVFSIO_RAPPLY, &dr); in rule_apply()
143 err(1, "ioctl DEVFSIO_RAPPLY"); in rule_apply()
147 rv = ioctl(mpfd, DEVFSIO_RAPPLYID, &rid); in rule_apply()
149 err(1, "ioctl DEVFSIO_RAPPLYID"); in rule_apply()
161 rv = ioctl(mpfd, DEVFSIO_SAPPLY, &in_rsnum); in rule_applyset()
163 err(1, "ioctl DEVFSIO_SAPPLY"); in rule_applyset()
176 rv = ioctl(mpfd, DEVFSIO_RDEL, &rid); in rule_del()
178 err(1, "ioctl DEVFSIO_RDEL"); in rule_del()
193 while (ioctl(mpfd, DEVFSIO_RGETNEXT, &dr) != -1) { in rule_delset()
194 rv = ioctl(mpfd, DEVFSIO_RDEL, &dr.dr_id); in rule_delset()
196 err(1, "ioctl DEVFSIO_RDEL"); in rule_delset()
199 err(1, "ioctl DEVFSIO_RGETNEXT"); in rule_delset()
215 rv = ioctl(mpfd, DEVFSIO_RGETNEXT, &dr); in rule_show()
217 err(1, "ioctl DEVFSIO_RGETNEXT"); in rule_show()
222 while (ioctl(mpfd, DEVFSIO_RGETNEXT, &dr) != -1) in rule_show()
225 err(1, "ioctl DEVFSIO_RGETNEXT"); in rule_show()
238 while (ioctl(mpfd, DEVFSIO_SGETNEXT, &rsnum) != -1) in rule_showsets()
241 err(1, "ioctl DEVFSIO_SGETNEXT"); in rule_showsets()
255 rv = ioctl(mpfd, DEVFSIO_SUSE, &rsnum); in ruleset_main()
257 err(1, "ioctl DEVFSIO_SUSE"); in ruleset_main()
265 * calls ioctl() for the rules, since it is impractical (and not very
267 * can call ioctl() for each of them.
279 rv = ioctl(mpfd, request, &dr); in rulespec_infp()
281 err(1, "ioctl"); in rulespec_infp()