Home
last modified time | relevance | path

Searched refs:g_fd (Results 1 – 2 of 2) sorted by relevance

/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/cmd/chkargs/
H A Dchkargs.c33 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 Dlibzfs_core.c98 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 …]