Back to index

glibc  2.9
Defines
kernel-posix-cpu-timers.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define CPUCLOCK_PID(clock)   ((pid_t) ~((clock) >> 3))
#define CPUCLOCK_PERTHREAD(clock)   (((clock) & (clockid_t) CPUCLOCK_PERTHREAD_MASK) != 0)
#define CPUCLOCK_PID_MASK   7
#define CPUCLOCK_PERTHREAD_MASK   4
#define CPUCLOCK_WHICH(clock)   ((clock) & (clockid_t) CPUCLOCK_CLOCK_MASK)
#define CPUCLOCK_CLOCK_MASK   3
#define CPUCLOCK_PROF   0
#define CPUCLOCK_VIRT   1
#define CPUCLOCK_SCHED   2
#define CPUCLOCK_MAX   3
#define MAKE_PROCESS_CPUCLOCK(pid, clock)   ((~(clockid_t) (pid) << 3) | (clockid_t) (clock))
#define MAKE_THREAD_CPUCLOCK(tid, clock)   MAKE_PROCESS_CPUCLOCK((tid), (clock) | CPUCLOCK_PERTHREAD_MASK)

Define Documentation

#define CPUCLOCK_CLOCK_MASK   3

Definition at line 9 of file kernel-posix-cpu-timers.h.

#define CPUCLOCK_MAX   3

Definition at line 13 of file kernel-posix-cpu-timers.h.

#define CPUCLOCK_PERTHREAD (   clock)    (((clock) & (clockid_t) CPUCLOCK_PERTHREAD_MASK) != 0)

Definition at line 4 of file kernel-posix-cpu-timers.h.

#define CPUCLOCK_PERTHREAD_MASK   4

Definition at line 7 of file kernel-posix-cpu-timers.h.

#define CPUCLOCK_PID (   clock)    ((pid_t) ~((clock) >> 3))

Definition at line 3 of file kernel-posix-cpu-timers.h.

#define CPUCLOCK_PID_MASK   7

Definition at line 6 of file kernel-posix-cpu-timers.h.

#define CPUCLOCK_PROF   0

Definition at line 10 of file kernel-posix-cpu-timers.h.

#define CPUCLOCK_SCHED   2

Definition at line 12 of file kernel-posix-cpu-timers.h.

#define CPUCLOCK_VIRT   1

Definition at line 11 of file kernel-posix-cpu-timers.h.

#define CPUCLOCK_WHICH (   clock)    ((clock) & (clockid_t) CPUCLOCK_CLOCK_MASK)

Definition at line 8 of file kernel-posix-cpu-timers.h.

#define MAKE_PROCESS_CPUCLOCK (   pid,
  clock 
)    ((~(clockid_t) (pid) << 3) | (clockid_t) (clock))

Definition at line 15 of file kernel-posix-cpu-timers.h.

Definition at line 17 of file kernel-posix-cpu-timers.h.