getcpu.h 602 B

123456789101112131415161718
  1. #ifndef _LINUX_GETCPU_H
  2. #define _LINUX_GETCPU_H 1
  3. /* Cache for getcpu() to speed it up. Results might be a short time
  4. out of date, but will be faster.
  5. User programs should not refer to the contents of this structure.
  6. I repeat they should not refer to it. If they do they will break
  7. in future kernels.
  8. It is only a private cache for vgetcpu(). It will change in future kernels.
  9. The user program must store this information per thread (__thread)
  10. If you want 100% accurate information pass NULL instead. */
  11. struct getcpu_cache {
  12. unsigned long blob[128 / sizeof(long)];
  13. };
  14. #endif