1#ifndef __VSF_LINUX_SYS_INFO_H__
2#define __VSF_LINUX_SYS_INFO_H__
6#if VSF_LINUX_CFG_RELATIVE_PATH == ENABLED
7# include "../sys/types.h"
16#if VSF_LINUX_CFG_WRAPPER == ENABLED
17#define sysinfo VSF_LINUX_WRAPPER(sysinfo)
34#if VSF_LINUX_APPLET_USE_SYS_INFO == ENABLED
40# ifndef __VSF_APPLET__
45#if defined(__VSF_APPLET__) && (defined(__VSF_APPLET_LIB__) || defined(__VSF_APPLET_LINUX_SYS_INFO_LIB__))\
46 && VSF_APPLET_CFG_ABI_PATCH != ENABLED && VSF_LINUX_APPLET_USE_SYS_INFO == ENABLED
48#ifndef VSF_LINUX_APPLET_SYS_INFO_VPLT
49# if VSF_LINUX_USE_APPLET == ENABLED
50# define VSF_LINUX_APPLET_SYS_INFO_VPLT \
51 ((vsf_linux_sys_info_vplt_t *)(VSF_LINUX_APPLET_VPLT->sys_info_vplt))
53# define VSF_LINUX_APPLET_SYS_INFO_VPLT \
54 ((vsf_linux_sys_info_vplt_t *)vsf_vplt((void *)0))
58#define VSF_LINUX_APPLET_SYS_INFO_ENTRY(__NAME) \
59 VSF_APPLET_VPLT_ENTRY_FUNC_ENTRY(VSF_LINUX_APPLET_SYS_INFO_VPLT, __NAME)
60#define VSF_LINUX_APPLET_SYS_INFO_IMP(...) \
61 VSF_APPLET_VPLT_ENTRY_FUNC_IMP(VSF_LINUX_APPLET_SYS_INFO_VPLT, __VA_ARGS__)
65 return VSF_LINUX_APPLET_SYS_INFO_ENTRY(
sysinfo)(info);
unsigned long totalswap
Definition sysinfo.h:27
unsigned long bufferram
Definition sysinfo.h:26
long uptime
Definition sysinfo.h:21
unsigned short procs
Definition sysinfo.h:29
char _f[22]
Definition sysinfo.h:31
unsigned long totalram
Definition sysinfo.h:23
unsigned long freeram
Definition sysinfo.h:24
unsigned long loads[3]
Definition sysinfo.h:22
unsigned long sharedram
Definition sysinfo.h:25
unsigned int mem_unit
Definition sysinfo.h:30
unsigned long freeswap
Definition sysinfo.h:28
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(sysinfo)
vsf_vplt_info_t info
Definition sysinfo.h:36
__VSF_VPLT_DECORATOR__ vsf_linux_sys_info_vplt_t vsf_linux_sys_info_vplt
Definition vsf_linux.c:4852
#define sysinfo
Definition sysinfo.h:17
#define __VSF_VPLT_DECORATOR__
Definition vsf_cfg.h:93
#define VSF_APPLET_VPLT_ENTRY_FUNC_TRACE()
Definition vsf_cfg.h:165