Searched refs:g_fd (Results 1 – 2 of 2) sorted by relevance
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/cmd/chkargs/ |
H A D | chkargs.c | 33 static int g_fd; variable 62 (void) ioctl(g_fd, DTRACEIOC_PROBEARG, &arg); in probe() 141 g_fd = dtrace_ctlfd(dtp); in main()
|
/freebsd/sys/contrib/openzfs/lib/libzfs_core/ |
H A D | libzfs_core.c | 98 static int g_fd = -1; variable 143 g_fd = open(ZFS_DEV, O_RDWR|O_CLOEXEC); in libzfs_core_init() 144 if (g_fd < 0) { in libzfs_core_init() 166 if (g_refcount == 0 && g_fd != -1) { in libzfs_core_fini() 167 (void) close(g_fd); in libzfs_core_fini() 168 g_fd = -1; in libzfs_core_fini() 183 VERIFY3S(g_fd, !=, -1); in lzc_ioctl() 215 while (lzc_ioctl_fd(g_fd, ioc, &zc) != 0) { in lzc_ioctl() 308 VERIFY3S(g_fd, !=, -1); in lzc_promote() 311 if (lzc_ioctl_fd(g_fd, ZFS_IOC_PROMOTE, &zc) != 0) { in lzc_promote() [all …]
|