Searched refs:state_fd (Results 1 – 3 of 3) sorted by relevance
| /freebsd-13.1/sys/contrib/openzfs/cmd/zed/ |
| H A D | zed_conf.c | 66 if (zcp->state_fd >= 0) { in zed_conf_destroy() 67 if (close(zcp->state_fd) < 0) in zed_conf_destroy() 71 zcp->state_fd = -1; in zed_conf_destroy() 558 if (zcp->state_fd >= 0) { in zed_conf_open_state() 559 if (close(zcp->state_fd) < 0) { in zed_conf_open_state() 569 zcp->state_fd = open(zcp->state_file, in zed_conf_open_state() 571 if (zcp->state_fd < 0) { in zed_conf_open_state() 576 rv = zed_file_lock(zcp->state_fd); in zed_conf_open_state() 635 n = readv(zcp->state_fd, iov, 3); in zed_conf_read_state() 685 n = writev(zcp->state_fd, iov, 3); in zed_conf_write_state() [all …]
|
| H A D | zed_conf.h | 32 int state_fd; /* fd to state file */ member
|
| /freebsd-13.1/sbin/ipf/ipfstat/ |
| H A D | ipfstat.c | 65 int state_fd = -1; variable 248 if ((state_fd = open(IPSTATE_NAME, O_RDONLY)) == -1) { in main() 489 if ((ioctl(state_fd, SIOCGETFS, &ipfo) == -1)) { in ipfstate_live() 490 ipferror(state_fd, "ioctl(state:SIOCGETFS)"); in ipfstate_live() 493 if (ioctl(state_fd, SIOCGETLG, &state_logging) == -1) { in ipfstate_live() 494 ipferror(state_fd, "ioctl(state:SIOCGETLG)"); in ipfstate_live() 1140 if (ioctl(state_fd, SIOCGTABL, &obj) != 0) { in showstatestats() 1270 showtqtable_live(state_fd); in showstatestats() 1329 if ((ioctl(state_fd, SIOCGETFS, &ipfo) == -1)) { in topipstates() 1436 (void) ioctl(state_fd, SIOCIPFDELTOK, &token_type); in topipstates() [all …]
|