Searched refs:state_fd (Results 1 – 3 of 3) sorted by relevance
/freebsd/sys/contrib/openzfs/cmd/zed/ |
H A D | zed_conf.c | 47 zcp->state_fd = -1; /* opened in zed_conf_open_state() */ in zed_conf_init() 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() 597 pid_t pid = zed_file_is_locked(zcp->state_fd); in zed_conf_open_state() [all …]
|
H A D | zed_conf.h | 32 int state_fd; /* fd to state file */ member
|
/freebsd/sbin/ipf/ipfstat/ |
H A D | ipfstat.c | 60 int state_fd = -1; variable 242 if ((state_fd = open(IPSTATE_NAME, O_RDONLY)) == -1) { in main() 483 if ((ioctl(state_fd, SIOCGETFS, &ipfo) == -1)) { in ipfstate_live() 484 ipferror(state_fd, "ioctl(state:SIOCGETFS)"); in ipfstate_live() 487 if (ioctl(state_fd, SIOCGETLG, &state_logging) == -1) { in ipfstate_live() 488 ipferror(state_fd, "ioctl(state:SIOCGETLG)"); in ipfstate_live() 1134 if (ioctl(state_fd, SIOCGTABL, &obj) != 0) { in showstatestats() 1264 showtqtable_live(state_fd); in showstatestats() 1323 if ((ioctl(state_fd, SIOCGETFS, &ipfo) == -1)) { in topipstates() 1430 (void) ioctl(state_fd, SIOCIPFDELTOK, &token_type); in topipstates() [all …]
|