Home
last modified time | relevance | path

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

/freebsd/lib/libgeom/
H A Dgeom_stats.c49 static int pagesize, statsfd = -1; variable
55 if (statsfd == -1) in geom_stats_close()
62 close(statsfd); in geom_stats_close()
63 statsfd = -1; in geom_stats_close()
73 if (statsfd == -1) in geom_stats_resync()
75 error = ioctl(statsfd, DIOCGMEDIASIZE, &mediasize); in geom_stats_resync()
81 p = mmap(NULL, mediasize, PROT_READ, MAP_SHARED, statsfd, 0); in geom_stats_resync()
91 if (statsfd != -1) in geom_stats_open()
93 statsfd = open(_PATH_DEV DEVSTAT_DEVICE_NAME, O_RDONLY); in geom_stats_open()
94 if (statsfd < 0) in geom_stats_open()