linux/include/net/proto_memory.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef _PROTO_MEMORY_H
#define _PROTO_MEMORY_H

#include <net/sock.h>
#include <net/hotdata.h>

/* 1 MB per cpu, in page units */
#define SK_MEMORY_PCPU_RESERVE

static inline bool sk_has_memory_pressure(const struct sock *sk)
{}

static inline bool
proto_memory_pressure(const struct proto *prot)
{}

static inline bool sk_under_global_memory_pressure(const struct sock *sk)
{}

static inline bool sk_under_memory_pressure(const struct sock *sk)
{}

static inline long
proto_memory_allocated(const struct proto *prot)
{}

static inline long
sk_memory_allocated(const struct sock *sk)
{}

static inline void proto_memory_pcpu_drain(struct proto *proto)
{}

static inline void
sk_memory_allocated_add(const struct sock *sk, int val)
{}

static inline void
sk_memory_allocated_sub(const struct sock *sk, int val)
{}

#endif /* _PROTO_MEMORY_H */