~ubuntu-branches/ubuntu/vivid/numactl/vivid-updates

« back to all changes in this revision

Viewing changes to numaint.h

  • Committer: Package Import Robot
  • Author(s): Ian Wienand
  • Date: 2014-09-09 21:33:32 UTC
  • mfrom: (1.3.12)
  • Revision ID: package-import@ubuntu.com-20140909213332-ph3qt0yq2ffozuky
Tags: 2.0.10~rc2-1
* Upgrade to 2.0.10-rc2
* Remove 001_no_numa.patch; fixed upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Internal interfaces of libnuma */
2
 
#include "bitops.h"
3
2
 
4
3
extern int numa_sched_setaffinity_v1(pid_t pid, unsigned len, const unsigned long *mask);
5
4
extern int numa_sched_getaffinity_v1(pid_t pid, unsigned len, const unsigned long *mask);
12
11
 
13
12
#define SHM_HUGETLB     04000   /* segment will use huge TLB pages */
14
13
 
 
14
#define BITS_PER_LONG (sizeof(unsigned long) * 8)
15
15
#define CPU_BYTES(x) (round_up(x, BITS_PER_LONG)/8)
16
16
#define CPU_LONGS(x) (CPU_BYTES(x) / sizeof(long))
17
17