libgeom.h (e13db587574e93615e6aa2e7b18b85eee6e4dbac) libgeom.h (ba798fb226e81ad916c9728aad527862f277dc31)
1/*-
2 * Copyright (c) 2003 Poul-Henning Kamp
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $FreeBSD$
30 */
31#ifndef _LIBGEOM_H_
32#define _LIBGEOM_H_
33
1/*-
2 * Copyright (c) 2003 Poul-Henning Kamp
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $FreeBSD$
30 */
31#ifndef _LIBGEOM_H_
32#define _LIBGEOM_H_
33
34#include <sys/time.h>
34#include <geom/geom_stats.h>
35
36void geom_stats_close(void);
37void geom_stats_resync(void);
38int geom_stats_open(void);
39void *geom_stats_snapshot_get(void);
40void geom_stats_snapshot_free(void *arg);
41void geom_stats_snapshot_timestamp(void *arg, struct timespec *tp);
42void geom_stats_snapshot_reset(void *arg);
43struct g_stat *geom_stats_snapshot_next(void *arg);
44
45#endif /* _LIBGEOM_H_ */
35#include <geom/geom_stats.h>
36
37void geom_stats_close(void);
38void geom_stats_resync(void);
39int geom_stats_open(void);
40void *geom_stats_snapshot_get(void);
41void geom_stats_snapshot_free(void *arg);
42void geom_stats_snapshot_timestamp(void *arg, struct timespec *tp);
43void geom_stats_snapshot_reset(void *arg);
44struct g_stat *geom_stats_snapshot_next(void *arg);
45
46#endif /* _LIBGEOM_H_ */