cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

sock_destructor.h (362B)


      1/* SPDX-License-Identifier: GPL-2.0-or-later */
      2#ifndef _NET_CORE_SOCK_DESTRUCTOR_H
      3#define _NET_CORE_SOCK_DESTRUCTOR_H
      4#include <net/tcp.h>
      5
      6static inline bool is_skb_wmem(const struct sk_buff *skb)
      7{
      8	return skb->destructor == sock_wfree ||
      9	       skb->destructor == __sock_wfree ||
     10	       (IS_ENABLED(CONFIG_INET) && skb->destructor == tcp_wfree);
     11}
     12#endif