Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
posix-timers.c File Reference
#include <linux/mm.h>
#include <linux/interrupt.h>
#include <linux/slab.h>
#include <linux/time.h>
#include <linux/mutex.h>
#include <asm/uaccess.h>
#include <linux/list.h>
#include <linux/init.h>
#include <linux/compiler.h>
#include <linux/idr.h>
#include <linux/posix-clock.h>
#include <linux/posix-timers.h>
#include <linux/syscalls.h>
#include <linux/wait.h>
#include <linux/workqueue.h>
#include <linux/export.h>

Go to the source code of this file.

Macros

#define ENANOSLEEP_NOTSUP   EOPNOTSUPP
 
#define lock_timer(tid, flags)
 
#define IT_ID_SET   1
 
#define IT_ID_NOT_SET   0
 

Functions

 __initcall (init_posix_timers)
 
void do_schedule_next_timer (struct siginfo *info)
 
int posix_timer_event (struct k_itimer *timr, int si_private)
 
 EXPORT_SYMBOL_GPL (posix_timer_event)
 
void posix_timers_register_clock (const clockid_t clock_id, struct k_clock *new_clock)
 
 EXPORT_SYMBOL_GPL (posix_timers_register_clock)
 
 SYSCALL_DEFINE3 (timer_create, const clockid_t, which_clock, struct sigevent __user *, timer_event_spec, timer_t __user *, created_timer_id)
 
 SYSCALL_DEFINE2 (timer_gettime, timer_t, timer_id, struct itimerspec __user *, setting)
 
 SYSCALL_DEFINE1 (timer_getoverrun, timer_t, timer_id)
 
 SYSCALL_DEFINE4 (timer_settime, timer_t, timer_id, int, flags, const struct itimerspec __user *, new_setting, struct itimerspec __user *, old_setting)
 
 SYSCALL_DEFINE1 (timer_delete, timer_t, timer_id)
 
void exit_itimers (struct signal_struct *sig)
 
 SYSCALL_DEFINE2 (clock_settime, const clockid_t, which_clock, const struct timespec __user *, tp)
 
 SYSCALL_DEFINE2 (clock_gettime, const clockid_t, which_clock, struct timespec __user *, tp)
 
 SYSCALL_DEFINE2 (clock_adjtime, const clockid_t, which_clock, struct timex __user *, utx)
 
 SYSCALL_DEFINE2 (clock_getres, const clockid_t, which_clock, struct timespec __user *, tp)
 
 SYSCALL_DEFINE4 (clock_nanosleep, const clockid_t, which_clock, int, flags, const struct timespec __user *, rqtp, struct timespec __user *, rmtp)
 
long clock_nanosleep_restart (struct restart_block *restart_block)
 

Macro Definition Documentation

#define ENANOSLEEP_NOTSUP   EOPNOTSUPP

Definition at line 89 of file posix-timers.c.

#define IT_ID_NOT_SET   0

Definition at line 502 of file posix-timers.c.

#define IT_ID_SET   1

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

#define lock_timer (   tid,
  flags 
)
Value:
({ struct k_itimer *__timr; \
__cond_lock(&__timr->it_lock, __timr = __lock_timer(tid, flags)); \
__timr; \
})

Definition at line 149 of file posix-timers.c.

Function Documentation

__initcall ( init_posix_timers  )
long clock_nanosleep_restart ( struct restart_block restart_block)

Definition at line 1060 of file posix-timers.c.

void do_schedule_next_timer ( struct siginfo info)

Definition at line 319 of file posix-timers.c.

void exit_itimers ( struct signal_struct sig)

Definition at line 940 of file posix-timers.c.

EXPORT_SYMBOL_GPL ( posix_timer_event  )
EXPORT_SYMBOL_GPL ( posix_timers_register_clock  )
int posix_timer_event ( struct k_itimer timr,
int  si_private 
)

Definition at line 339 of file posix-timers.c.

void posix_timers_register_clock ( const clockid_t  clock_id,
struct k_clock new_clock 
)

Definition at line 456 of file posix-timers.c.

SYSCALL_DEFINE1 ( timer_getoverrun  ,
timer_t  ,
timer_id   
)

Definition at line 751 of file posix-timers.c.

SYSCALL_DEFINE1 ( timer_delete  ,
timer_t  ,
timer_id   
)

Definition at line 882 of file posix-timers.c.

SYSCALL_DEFINE2 ( timer_gettime  ,
timer_t  ,
timer_id  ,
struct itimerspec __user ,
setting   
)

Definition at line 715 of file posix-timers.c.

SYSCALL_DEFINE2 ( clock_settime  ,
const clockid_t  ,
which_clock  ,
const struct timespec __user ,
tp   
)

Definition at line 950 of file posix-timers.c.

SYSCALL_DEFINE2 ( clock_gettime  ,
const clockid_t  ,
which_clock  ,
struct timespec __user ,
tp   
)

Definition at line 965 of file posix-timers.c.

SYSCALL_DEFINE2 ( clock_adjtime  ,
const clockid_t  ,
which_clock  ,
struct timex __user ,
utx   
)

Definition at line 983 of file posix-timers.c.

SYSCALL_DEFINE2 ( clock_getres  ,
const clockid_t  ,
which_clock  ,
struct timespec __user ,
tp   
)

Definition at line 1006 of file posix-timers.c.

SYSCALL_DEFINE3 ( timer_create  ,
const clockid_t  ,
which_clock  ,
struct sigevent __user ,
timer_event_spec  ,
timer_t __user ,
created_timer_id   
)

Definition at line 535 of file posix-timers.c.

SYSCALL_DEFINE4 ( timer_settime  ,
timer_t  ,
timer_id  ,
int  ,
flags  ,
const struct itimerspec __user ,
new_setting  ,
struct itimerspec __user ,
old_setting   
)

Definition at line 819 of file posix-timers.c.

SYSCALL_DEFINE4 ( clock_nanosleep  ,
const clockid_t  ,
which_clock  ,
int  ,
flags  ,
const struct timespec __user ,
rqtp  ,
struct timespec __user ,
rmtp   
)

Definition at line 1035 of file posix-timers.c.