summaryrefslogtreecommitdiffstats
path: root/src/plugin_freebsd.h
blob: e4767a091310399a39eeade063c6d446e501ad75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef NETDATA_PLUGIN_FREEBSD_H
#define NETDATA_PLUGIN_FREEBSD_H 1

#include <sys/sysctl.h>

#define GETSYSCTL(name, var) getsysctl(name, &(var), sizeof(var))

void *freebsd_main(void *ptr);

int getsysctl(const char *name, void *ptr, size_t len);

extern int do_freebsd_sysctl(int update_every, usec_t dt);

#endif /* NETDATA_PLUGIN_FREEBSD_H */