Searched refs:state_fd (Results 1 – 3 of 3) sorted by relevance
| /freebsd-14.2/sys/contrib/openzfs/cmd/zed/ |
| H A D | zed_conf.c | 67 if (zcp->state_fd >= 0) { in zed_conf_destroy() 68 if (close(zcp->state_fd) < 0) in zed_conf_destroy() 72 zcp->state_fd = -1; in zed_conf_destroy() 572 if (zcp->state_fd >= 0) { in zed_conf_open_state() 573 if (close(zcp->state_fd) < 0) { in zed_conf_open_state() 583 zcp->state_fd = open(zcp->state_file, in zed_conf_open_state() 585 if (zcp->state_fd < 0) { in zed_conf_open_state() 590 rv = zed_file_lock(zcp->state_fd); in zed_conf_open_state() 649 n = readv(zcp->state_fd, iov, 3); in zed_conf_read_state() 699 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-14.2/sbin/ipf/ipfstat/ |
| H A D | ipfstat.c | 64 int state_fd = -1; variable 246 if ((state_fd = open(IPSTATE_NAME, O_RDONLY)) == -1) { in main() 487 if ((ioctl(state_fd, SIOCGETFS, &ipfo) == -1)) { in ipfstate_live() 488 ipferror(state_fd, "ioctl(state:SIOCGETFS)"); in ipfstate_live() 491 if (ioctl(state_fd, SIOCGETLG, &state_logging) == -1) { in ipfstate_live() 492 ipferror(state_fd, "ioctl(state:SIOCGETLG)"); in ipfstate_live() 1138 if (ioctl(state_fd, SIOCGTABL, &obj) != 0) { in showstatestats() 1268 showtqtable_live(state_fd); in showstatestats() 1327 if ((ioctl(state_fd, SIOCGETFS, &ipfo) == -1)) { in topipstates() 1434 (void) ioctl(state_fd, SIOCIPFDELTOK, &token_type); in topipstates() [all …]
|