XenevaOS
Loading...
Searching...
No Matches
Macros
cache.h File Reference
#include <linux/kernel.h>
#include <asm/cache.h>
Include dependency graph for cache.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SMP_CACHE_SHIFT   L1_CACHE_SHIFT
 
#define SMP_CACHE_BYTES   L1_CACHE_BYTES
 
#define SMP_CACHE_ALIGN(x)   (((x) + (SMP_CACHE_BYTES - 1)) & ~(SMP_CACHE_BYTES - 1))
 
#define ____cacheline_aligned   __attribute__((__aligned__(SMP_CACHE_BYTES)))
 
#define __cacheline_group_begin(GROUP)   __u8 __cacheline_group_begin__##GROUP[0]
 
#define __cacheline_group_end(GROUP)   __u8 __cacheline_group_end__##GROUP[0]
 

Macro Definition Documentation

◆ ____cacheline_aligned

#define ____cacheline_aligned   __attribute__((__aligned__(SMP_CACHE_BYTES)))

◆ __cacheline_group_begin

#define __cacheline_group_begin (   GROUP)    __u8 __cacheline_group_begin__##GROUP[0]

◆ __cacheline_group_end

#define __cacheline_group_end (   GROUP)    __u8 __cacheline_group_end__##GROUP[0]

◆ SMP_CACHE_ALIGN

#define SMP_CACHE_ALIGN (   x)    (((x) + (SMP_CACHE_BYTES - 1)) & ~(SMP_CACHE_BYTES - 1))

◆ SMP_CACHE_BYTES

#define SMP_CACHE_BYTES   L1_CACHE_BYTES

◆ SMP_CACHE_SHIFT

#define SMP_CACHE_SHIFT   L1_CACHE_SHIFT