libnl  3.2.24-rc1
meminfo.h
1 /*
2  * netlink/idiag/meminfo.h Inetdiag Netlink Memory Info
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation version 2.1
7  * of the License.
8  *
9  * Copyright (c) 2013 Sassano Systems LLC <joe@sassanosystems.com>
10  */
11 
12 #ifndef NETLINK_IDIAGNL_MEMINFO_H_
13 #define NETLINK_IDIAGNL_MEMINFO_H_
14 
15 #include <netlink/netlink.h>
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif /* __cplusplus */
20 
21 extern struct nl_object_ops idiagnl_meminfo_obj_ops;
22 
23 extern struct idiagnl_meminfo *idiagnl_meminfo_alloc(void);
24 extern void idiagnl_meminfo_get(struct idiagnl_meminfo *);
25 extern void idiagnl_meminfo_put(struct idiagnl_meminfo *);
26 
27 extern uint32_t idiagnl_meminfo_get_rmem(const struct idiagnl_meminfo *);
28 extern uint32_t idiagnl_meminfo_get_wmem(const struct idiagnl_meminfo *);
29 extern uint32_t idiagnl_meminfo_get_fmem(const struct idiagnl_meminfo *);
30 extern uint32_t idiagnl_meminfo_get_tmem(const struct idiagnl_meminfo *);
31 
32 extern void idiagnl_meminfo_set_rmem(struct idiagnl_meminfo *, uint32_t);
33 extern void idiagnl_meminfo_set_wmem(struct idiagnl_meminfo *, uint32_t);
34 extern void idiagnl_meminfo_set_fmem(struct idiagnl_meminfo *, uint32_t);
35 extern void idiagnl_meminfo_set_tmem(struct idiagnl_meminfo *, uint32_t);
36 
37 #ifdef __cplusplus
38 }
39 #endif /* __cplusplus */
40 
41 #endif /* NETLINK_IDIAGNL_MEMINFO_H_ */