| /dflybsd-src/usr.sbin/pfctl/ |
| H A D | pfctl.c | 119 int dev_fd = -1; variable 1814 if (ioctl(dev_fd, DIOCSETHOSTID, &hostid)) { in pfctl_load_hostid() 1845 if (ioctl(dev_fd, DIOCSETDEBUG, &level)) in pfctl_set_debug() 2170 dev_fd = open(pf_device, mode); in main() 2171 if (dev_fd == -1) in main() 2173 altqsupport = pfctl_test_altqsupport(dev_fd, opts); in main() 2175 dev_fd = open(pf_device, O_RDONLY); in main() 2176 if (dev_fd >= 0) in main() 2185 if (pfctl_disable(dev_fd, opts)) in main() 2191 pfctl_show_anchors(dev_fd, opts, anchorname); in main() [all …]
|
| H A D | pfctl_radix.c | 52 extern int dev_fd; 66 if (ioctl(dev_fd, DIOCRCLRTABLES, &io)) in pfr_clr_tables() 87 if (ioctl(dev_fd, DIOCRADDTABLES, &io)) in pfr_add_tables() 108 if (ioctl(dev_fd, DIOCRDELTABLES, &io)) in pfr_del_tables() 132 if (ioctl(dev_fd, DIOCRGETTABLES, &io)) in pfr_get_tables() 155 if (ioctl(dev_fd, DIOCRGETTSTATS, &io)) in pfr_get_tstats() 173 if (ioctl(dev_fd, DIOCRCLRADDRS, &io)) in pfr_clr_addrs() 196 if (ioctl(dev_fd, DIOCRADDADDRS, &io)) in pfr_add_addrs() 219 if (ioctl(dev_fd, DIOCRDELADDRS, &io)) in pfr_del_addrs() 243 if (ioctl(dev_fd, DIOCRSETADDRS, &io)) in pfr_set_addrs() [all …]
|
| /dflybsd-src/usr.sbin/authpf/ |
| H A D | authpf.c | 58 int dev_fd; /* pf device */ variable 126 dev_fd = open(PATH_DEVFILE, O_RDWR); in main() 127 if (dev_fd == -1) { in main() 580 if (ioctl(dev_fd, DIOCGETRULESETS, &prs)) { in remove_stale_rulesets() 594 if (ioctl(dev_fd, DIOCGETRULESET, &prs)) in remove_stale_rulesets() 651 if (asprintf(&fdpath, "/dev/fd/%d", dev_fd) == -1) in change_filter() 751 if (ioctl(dev_fd, add ? DIOCRADDADDRS : DIOCRDELADDRS, &io) && in change_table() 791 if (ioctl(dev_fd, DIOCKILLSTATES, &psk)) in authpf_kill_states() 800 if (ioctl(dev_fd, DIOCKILLSTATES, &psk)) in authpf_kill_states()
|
| /dflybsd-src/sbin/devfsctl/ |
| H A D | devfsctl.c | 93 static int dev_fd; variable 462 if (ioctl(dev_fd, cmd, rule) == -1) in rule_ioctl() 767 dev_fd = open("/dev/devfs", O_RDWR); 768 if (dev_fd == -1) 790 close(dev_fd); 916 dev_fd = open("/dev/devfs", O_RDWR); in main() 917 if (dev_fd == -1) in main() 929 close(dev_fd); in main()
|
| /dflybsd-src/contrib/lvm2/dist/lib/device/ |
| H A D | dev-io.c | 71 int fd = dev_fd(where->dev); in _io() 145 if (ioctl(dev_fd(dev), DIOCGDINFO, &lab) < 0) { in _get_block_size() 150 if (ioctl(dev_fd(dev), DIOCGPART, &pinfo) < 0) { in _get_block_size() 155 if (ioctl(dev_fd(dev), BLKBSZGET, &dev->block_size) < 0) { in _get_block_size()
|
| H A D | device.h | 81 int dev_fd(struct device *dev);
|
| H A D | dev-cache.c | 805 int dev_fd(struct device *dev) in dev_fd() function
|
| /dflybsd-src/contrib/lvm2/dist/include/ |
| H A D | device.h | 81 int dev_fd(struct device *dev);
|
| /dflybsd-src/contrib/dhcpcd/src/ |
| H A D | dhcpcd.h | 247 int dev_fd; member
|
| H A D | dhcpcd.c | 2000 ctx.dev_fd = -1; in main()
|
| /dflybsd-src/contrib/lvm2/dist/lib/config/ |
| H A D | config.c | 227 MAP_PRIVATE, dev_fd(dev), offset - mmap_offset); in read_config_fd()
|