libnl: /data/src/libnl/include/netlink/idiag/meminfo.h Source File

libnl 3.12.0

meminfo.h
1/* SPDX-License-Identifier: LGPL-2.1-only */
2/*
3 * Copyright (c) 2013 Sassano Systems LLC <joe@sassanosystems.com>
4 */
5
6#ifndef NETLINK_IDIAGNL_MEMINFO_H_
7#define NETLINK_IDIAGNL_MEMINFO_H_
8
9#include <netlink/netlink.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif /* __cplusplus */
14
15extern struct nl_object_ops idiagnl_meminfo_obj_ops;
16
17extern struct idiagnl_meminfo *idiagnl_meminfo_alloc(void);
18extern void idiagnl_meminfo_get(struct idiagnl_meminfo *);
19extern void idiagnl_meminfo_put(struct idiagnl_meminfo *);
20
21extern uint32_t idiagnl_meminfo_get_rmem(const struct idiagnl_meminfo *);
22extern uint32_t idiagnl_meminfo_get_wmem(const struct idiagnl_meminfo *);
23extern uint32_t idiagnl_meminfo_get_fmem(const struct idiagnl_meminfo *);
24extern uint32_t idiagnl_meminfo_get_tmem(const struct idiagnl_meminfo *);
25
26extern void idiagnl_meminfo_set_rmem(struct idiagnl_meminfo *, uint32_t);
27extern void idiagnl_meminfo_set_wmem(struct idiagnl_meminfo *, uint32_t);
28extern void idiagnl_meminfo_set_fmem(struct idiagnl_meminfo *, uint32_t);
29extern 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_ */
idiagnl_meminfo
Definition nl-idiag.h:12