Back to index

glibc  2.9
sched_getcpu.c File Reference
#include <errno.h>
#include <sched.h>
#include <sysdep.h>

Go to the source code of this file.


int sched_getcpu (void)

Function Documentation

int sched_getcpu ( void  )

Definition at line 25 of file sched_getcpu.c.

#ifdef __NR_getcpu
  unsigned int cpu;
  int r = INLINE_SYSCALL (getcpu, 3, &cpu, NULL, NULL);

  return r == -1 ? r : cpu;
  __set_errno (ENOSYS);
  return -1;

Here is the caller graph for this function: