]> git.proxmox.com Git - mirror_lxcfs.git/blob - src/proc_loadavg.h
bb6a78b1aefbd8b794a1d0dda65f4aa413c0db25
[mirror_lxcfs.git] / src / proc_loadavg.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2
3 #ifndef __LXCFS_PROC_LOADAVG_FUSE_H
4 #define __LXCFS_PROC_LOADAVG_FUSE_H
5
6 #include "config.h"
7
8 #include <stdio.h>
9 #include <stdlib.h>
10 #include <sys/stat.h>
11 #include <sys/types.h>
12 #include <unistd.h>
13
14 #if HAVE_FUSE3
15 #include <fuse3/fuse.h>
16 #else
17 #include <fuse.h>
18 #endif
19
20 #include "macro.h"
21
22 __visible extern pthread_t load_daemon(int load_use);
23 __visible extern int stop_load_daemon(pthread_t pid);
24
25 extern int proc_loadavg_read(char *buf, size_t size, off_t offset, struct fuse_file_info *fi);
26 extern int calc_hash(const char *name);
27
28 #endif /* __LXCFS_PROC_LOADAVG_FUSE_H */
29