| 1 |
/* SPDX-License-Identifier: LGPL-2.1-only */ |
| 2 |
/* |
| 3 |
* Copyright (c) 2013 Sassano Systems LLC <[email protected]> |
| 4 |
*/ |
| 5 |
|
| 6 |
#ifndef NETLINK_IDIAGNL_MEMINFO_H_ |
| 7 |
#define NETLINK_IDIAGNL_MEMINFO_H_ |
| 8 |
|
| 9 |
#include <netlink/netlink.h> |
| 10 |
|
| 11 |
#ifdef __cplusplus |
| 12 |
extern "C" { |
| 13 |
#endif /* __cplusplus */ |
| 14 |
|
| 15 |
extern struct nl_object_ops idiagnl_meminfo_obj_ops; |
| 16 |
|
| 17 |
extern struct idiagnl_meminfo *idiagnl_meminfo_alloc(void); |
| 18 |
extern void idiagnl_meminfo_get(struct idiagnl_meminfo *); |
| 19 |
extern void idiagnl_meminfo_put(struct idiagnl_meminfo *); |
| 20 |
|
| 21 |
extern uint32_t idiagnl_meminfo_get_rmem(const struct idiagnl_meminfo *); |
| 22 |
extern uint32_t idiagnl_meminfo_get_wmem(const struct idiagnl_meminfo *); |
| 23 |
extern uint32_t idiagnl_meminfo_get_fmem(const struct idiagnl_meminfo *); |
| 24 |
extern uint32_t idiagnl_meminfo_get_tmem(const struct idiagnl_meminfo *); |
| 25 |
|
| 26 |
extern void idiagnl_meminfo_set_rmem(struct idiagnl_meminfo *, uint32_t); |
| 27 |
extern void idiagnl_meminfo_set_wmem(struct idiagnl_meminfo *, uint32_t); |
| 28 |
extern void idiagnl_meminfo_set_fmem(struct idiagnl_meminfo *, uint32_t); |
| 29 |
extern void idiagnl_meminfo_set_tmem(struct idiagnl_meminfo *, uint32_t); |
| 30 |
|
| 31 |
#ifdef __cplusplus |
| 32 |
} |
| 33 |
#endif /* __cplusplus */ |
| 34 |
|
| 35 |
#endif /* NETLINK_IDIAGNL_MEMINFO_H_ */ |