Back to index

numactl  2.0.8~rc4
util.h
Go to the documentation of this file.
00001 extern void printmask(char *name, struct bitmask *mask);
00002 extern void printcpumask(char *name, struct bitmask *mask);
00003 extern struct bitmask *nodemask(char *s);
00004 extern struct bitmask *cpumask(char *s, int *ncpus);
00005 extern int read_sysctl(char *name);
00006 extern void complain(char *fmt, ...);
00007 extern void nerror(char *fmt, ...);
00008 
00009 /* defined in main module, but called by util.c */
00010 extern void usage(void);
00011 
00012 extern long memsize(char *s);
00013 extern int parse_policy(char *name, char *arg);
00014 extern void print_policies(void);
00015 extern char *policy_name(int policy);
00016 
00017 #define err(x) perror("numactl: " x),exit(1)
00018 #define array_len(x) (sizeof(x)/sizeof(*(x)))
00019 
00020 #define round_up(x,y) (((x) + (y) - 1) & ~((y)-1))