Home | History | Annotate | Download | only in src
      1 /*
      2  * Copyright 2008 Google Inc. All Rights Reserved.
      3  * Author: md (at) google.com (Michael Davidson)
      4  */
      5 
      6 #ifndef CPUSET_H_
      7 #define CPUSET_H_
      8 
      9 #define _GNU_SOURCE	/* for cpu_set macros */
     10 
     11 #include <sched.h>
     12 
     13 int count_cpus(const cpu_set_t *cpus);
     14 int parse_cpu_set(const char *s, cpu_set_t *cpus);
     15 int show_cpu_set(char *buf, size_t len, const cpu_set_t *cpus);
     16 
     17 #endif	/* CPUSET_H_ */
     18