Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
posix-cpu-timers.c File Reference
#include <linux/sched.h>
#include <linux/posix-timers.h>
#include <linux/errno.h>
#include <linux/math64.h>
#include <asm/uaccess.h>
#include <linux/kernel_stat.h>
#include <trace/events/timer.h>

Go to the source code of this file.

Macros

#define PROCESS_CLOCK   MAKE_PROCESS_CPUCLOCK(0, CPUCLOCK_SCHED)
 
#define THREAD_CLOCK   MAKE_THREAD_CPUCLOCK(0, CPUCLOCK_SCHED)
 

Functions

void update_rlimit_cpu (struct task_struct *task, unsigned long rlim_new)
 
void thread_group_cputime (struct task_struct *tsk, struct task_cputime *times)
 
void thread_group_cputimer (struct task_struct *tsk, struct task_cputime *times)
 
void posix_cpu_timers_exit (struct task_struct *tsk)
 
void posix_cpu_timers_exit_group (struct task_struct *tsk)
 
void posix_cpu_timer_schedule (struct k_itimer *timer)
 
void run_posix_cpu_timers (struct task_struct *tsk)
 
void set_process_cpu_timer (struct task_struct *tsk, unsigned int clock_idx, cputime_t *newval, cputime_t *oldval)
 
 __initcall (init_posix_cpu_timers)
 

Variables

struct k_clock clock_posix_cpu
 

Macro Definition Documentation

#define PROCESS_CLOCK   MAKE_PROCESS_CPUCLOCK(0, CPUCLOCK_SCHED)

Definition at line 1523 of file posix-cpu-timers.c.

#define THREAD_CLOCK   MAKE_THREAD_CPUCLOCK(0, CPUCLOCK_SCHED)

Definition at line 1524 of file posix-cpu-timers.c.

Function Documentation

__initcall ( init_posix_cpu_timers  )
void posix_cpu_timer_schedule ( struct k_itimer timer)

Definition at line 1149 of file posix-cpu-timers.c.

void posix_cpu_timers_exit ( struct task_struct tsk)

Definition at line 495 of file posix-cpu-timers.c.

void posix_cpu_timers_exit_group ( struct task_struct tsk)

Definition at line 501 of file posix-cpu-timers.c.

void run_posix_cpu_timers ( struct task_struct tsk)

Definition at line 1282 of file posix-cpu-timers.c.

void set_process_cpu_timer ( struct task_struct tsk,
unsigned int  clock_idx,
cputime_t newval,
cputime_t oldval 
)

Definition at line 1350 of file posix-cpu-timers.c.

void thread_group_cputime ( struct task_struct tsk,
struct task_cputime times 
)

Definition at line 220 of file posix-cpu-timers.c.

Definition at line 256 of file posix-cpu-timers.c.

void update_rlimit_cpu ( struct task_struct task,
unsigned long  rlim_new 
)

Definition at line 19 of file posix-cpu-timers.c.

Variable Documentation

struct k_clock clock_posix_cpu
Initial value:
= {
.clock_getres = posix_cpu_clock_getres,
.clock_set = posix_cpu_clock_set,
.clock_get = posix_cpu_clock_get,
.timer_create = posix_cpu_timer_create,
.nsleep = posix_cpu_nsleep,
.nsleep_restart = posix_cpu_nsleep_restart,
.timer_set = posix_cpu_timer_set,
.timer_del = posix_cpu_timer_del,
.timer_get = posix_cpu_timer_get,
}

Definition at line 1567 of file posix-cpu-timers.c.