Home
last modified time | relevance | path

Searched refs:dev_fd (Results 1 – 11 of 11) sorted by relevance

/dflybsd-src/usr.sbin/pfctl/
H A Dpfctl.c119 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 Dpfctl_radix.c52 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 Dauthpf.c58 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 Ddevfsctl.c93 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 Ddev-io.c71 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 Ddevice.h81 int dev_fd(struct device *dev);
H A Ddev-cache.c805 int dev_fd(struct device *dev) in dev_fd() function
/dflybsd-src/contrib/lvm2/dist/include/
H A Ddevice.h81 int dev_fd(struct device *dev);
/dflybsd-src/contrib/dhcpcd/src/
H A Ddhcpcd.h247 int dev_fd; member
H A Ddhcpcd.c2000 ctx.dev_fd = -1; in main()
/dflybsd-src/contrib/lvm2/dist/lib/config/
H A Dconfig.c227 MAP_PRIVATE, dev_fd(dev), offset - mmap_offset); in read_config_fd()