Blame view

include/linux/getcpu.h 602 Bytes
c08c82050   Vojtech Pavlik   [PATCH] Add the v...
1
2
  #ifndef _LINUX_GETCPU_H
  #define _LINUX_GETCPU_H 1
34596dc9e   Andi Kleen   [PATCH] Define vs...
3
  /* Cache for getcpu() to speed it up. Results might be a short time
c08c82050   Vojtech Pavlik   [PATCH] Add the v...
4
     out of date, but will be faster.
34596dc9e   Andi Kleen   [PATCH] Define vs...
5

c08c82050   Vojtech Pavlik   [PATCH] Add the v...
6
     User programs should not refer to the contents of this structure.
34596dc9e   Andi Kleen   [PATCH] Define vs...
7
8
9
10
     I repeat they should not refer to it. If they do they will break
     in future kernels.
  
     It is only a private cache for vgetcpu(). It will change in future kernels.
c08c82050   Vojtech Pavlik   [PATCH] Add the v...
11
12
13
     The user program must store this information per thread (__thread)
     If you want 100% accurate information pass NULL instead. */
  struct getcpu_cache {
34596dc9e   Andi Kleen   [PATCH] Define vs...
14
  	unsigned long blob[128 / sizeof(long)];
c08c82050   Vojtech Pavlik   [PATCH] Add the v...
15
16
17
  };
  
  #endif