time.c File Reference

Go to the source code of this file.

Functions

 EXPORT_SYMBOL (sys_tz)
 SYSCALL_DEFINE2 (gettimeofday, struct timeval __user *, tv, struct timezone __user *, tz)
static void warp_clock (void)
int do_sys_settimeofday (struct timespec *tv, struct timezone *tz)
 SYSCALL_DEFINE2 (settimeofday, struct timeval __user *, tv, struct timezone __user *, tz)
 SYSCALL_DEFINE1 (adjtimex, struct timex __user *, txc_p)
struct timespec current_fs_time (struct super_block *sb)
 current_fs_time - Return FS time : Superblock.
 EXPORT_SYMBOL (current_fs_time)
unsigned int jiffies_to_msecs (const unsigned long j)
 EXPORT_SYMBOL (jiffies_to_msecs)
unsigned int jiffies_to_usecs (const unsigned long j)
 EXPORT_SYMBOL (jiffies_to_usecs)
struct timespec timespec_trunc (struct timespec t, unsigned gran)
 timespec_trunc - Truncate timespec to a granularity : Timespec : Granularity in ns.
 EXPORT_SYMBOL (timespec_trunc)
void getnstimeofday (struct timespec *tv)
 EXPORT_SYMBOL_GPL (getnstimeofday)
unsigned long mktime (const unsigned int year0, const unsigned int mon0, const unsigned int day, const unsigned int hour, const unsigned int min, const unsigned int sec)
 EXPORT_SYMBOL (mktime)
void set_normalized_timespec (struct timespec *ts, time_t sec, long nsec)
 set_normalized_timespec - set timespec sec and nsec parts and normalize
 EXPORT_SYMBOL (set_normalized_timespec)
struct timespec ns_to_timespec (const s64 nsec)
 ns_to_timespec - Convert nanoseconds to timespec : the nanoseconds value to be converted
 EXPORT_SYMBOL (ns_to_timespec)
struct timeval ns_to_timeval (const s64 nsec)
 ns_to_timeval - Convert nanoseconds to timeval : the nanoseconds value to be converted
 EXPORT_SYMBOL (ns_to_timeval)
unsigned long msecs_to_jiffies (const unsigned int m)
 EXPORT_SYMBOL (msecs_to_jiffies)
unsigned long usecs_to_jiffies (const unsigned int u)
 EXPORT_SYMBOL (usecs_to_jiffies)
unsigned long timespec_to_jiffies (const struct timespec *value)
 EXPORT_SYMBOL (timespec_to_jiffies)
void jiffies_to_timespec (const unsigned long jiffies, struct timespec *value)
 EXPORT_SYMBOL (jiffies_to_timespec)
unsigned long timeval_to_jiffies (const struct timeval *value)
 EXPORT_SYMBOL (timeval_to_jiffies)
void jiffies_to_timeval (const unsigned long jiffies, struct timeval *value)
 EXPORT_SYMBOL (jiffies_to_timeval)
clock_t jiffies_to_clock_t (long x)
 EXPORT_SYMBOL (jiffies_to_clock_t)
unsigned long clock_t_to_jiffies (unsigned long x)
 EXPORT_SYMBOL (clock_t_to_jiffies)
u64 jiffies_64_to_clock_t (u64 x)
 EXPORT_SYMBOL (jiffies_64_to_clock_t)
u64 nsec_to_clock_t (u64 x)
u64 get_jiffies_64 (void)
 EXPORT_SYMBOL (get_jiffies_64)
 EXPORT_SYMBOL (jiffies)
struct timespec timespec_add_safe (const struct timespec lhs, const struct timespec rhs)

Variables

struct timezone sys_tz


Function Documentation

unsigned long clock_t_to_jiffies ( unsigned long  x  ) 

Definition at line 666 of file time.c.

struct timespec current_fs_time ( struct super_block *  sb  )  [read]

current_fs_time - Return FS time : Superblock.

Return the current time truncated to the time granularity supported by the fs.

Definition at line 231 of file time.c.

int do_sys_settimeofday ( struct timespec *  tv,
struct timezone *  tz 
)

Definition at line 155 of file time.c.

EXPORT_SYMBOL ( jiffies   ) 

EXPORT_SYMBOL ( get_jiffies_64   ) 

EXPORT_SYMBOL ( jiffies_64_to_clock_t   ) 

EXPORT_SYMBOL ( clock_t_to_jiffies   ) 

EXPORT_SYMBOL ( jiffies_to_clock_t   ) 

EXPORT_SYMBOL ( jiffies_to_timeval   ) 

EXPORT_SYMBOL ( timeval_to_jiffies   ) 

EXPORT_SYMBOL ( jiffies_to_timespec   ) 

EXPORT_SYMBOL ( timespec_to_jiffies   ) 

EXPORT_SYMBOL ( usecs_to_jiffies   ) 

EXPORT_SYMBOL ( msecs_to_jiffies   ) 

EXPORT_SYMBOL ( ns_to_timeval   ) 

EXPORT_SYMBOL ( ns_to_timespec   ) 

EXPORT_SYMBOL ( set_normalized_timespec   ) 

EXPORT_SYMBOL ( mktime   ) 

EXPORT_SYMBOL ( timespec_trunc   ) 

EXPORT_SYMBOL ( jiffies_to_usecs   ) 

EXPORT_SYMBOL ( jiffies_to_msecs   ) 

EXPORT_SYMBOL ( current_fs_time   ) 

EXPORT_SYMBOL ( sys_tz   ) 

EXPORT_SYMBOL_GPL ( getnstimeofday   ) 

u64 get_jiffies_64 ( void   ) 

Definition at line 730 of file time.c.

void getnstimeofday ( struct timespec *  tv  ) 

Definition at line 312 of file time.c.

u64 jiffies_64_to_clock_t ( u64  x  ) 

Definition at line 691 of file time.c.

clock_t jiffies_to_clock_t ( long  x  ) 

Definition at line 651 of file time.c.

unsigned int jiffies_to_msecs ( const unsigned long  j  )  [inline]

Definition at line 244 of file time.c.

void jiffies_to_timespec ( const unsigned long  jiffies,
struct timespec *  value 
)

Definition at line 593 of file time.c.

void jiffies_to_timeval ( const unsigned long  jiffies,
struct timeval *  value 
)

Definition at line 634 of file time.c.

unsigned int jiffies_to_usecs ( const unsigned long  j  )  [inline]

Definition at line 260 of file time.c.

unsigned long mktime ( const unsigned int  year0,
const unsigned int  mon0,
const unsigned int  day,
const unsigned int  hour,
const unsigned int  min,
const unsigned int  sec 
)

Definition at line 339 of file time.c.

unsigned long msecs_to_jiffies ( const unsigned int  m  ) 

Definition at line 478 of file time.c.

struct timespec ns_to_timespec ( const s64  nsec  )  [read]

ns_to_timespec - Convert nanoseconds to timespec : the nanoseconds value to be converted

Returns the timespec representation of the nsec parameter.

Definition at line 396 of file time.c.

struct timeval ns_to_timeval ( const s64  nsec  )  [read]

ns_to_timeval - Convert nanoseconds to timeval : the nanoseconds value to be converted

Returns the timeval representation of the nsec parameter.

Definition at line 421 of file time.c.

u64 nsec_to_clock_t ( u64  x  ) 

Definition at line 713 of file time.c.

void set_normalized_timespec ( struct timespec *  ts,
time_t  sec,
long  nsec 
)

set_normalized_timespec - set timespec sec and nsec parts and normalize

: pointer to timespec variable to be set : seconds to set : nanoseconds to set

Set seconds and nanoseconds field of a timespec variable and normalize to the timespec storage format

Note: The tv_nsec part is always in the range of 0 <= tv_nsec < NSEC_PER_SEC For negative values only the tv_sec field is negative !

Definition at line 375 of file time.c.

SYSCALL_DEFINE1 ( adjtimex  ,
struct timex __user *  ,
txc_p   
)

Definition at line 208 of file time.c.

SYSCALL_DEFINE2 ( settimeofday  ,
struct timeval __user *  ,
tv  ,
struct timezone __user *  ,
tz   
)

Definition at line 187 of file time.c.

SYSCALL_DEFINE2 ( gettimeofday  ,
struct timeval __user *  ,
tv  ,
struct timezone __user *  ,
tz   
)

Definition at line 102 of file time.c.

struct timespec timespec_add_safe ( const struct timespec  lhs,
const struct timespec  rhs 
) [read]

Definition at line 750 of file time.c.

unsigned long timespec_to_jiffies ( const struct timespec *  value  ) 

Definition at line 576 of file time.c.

struct timespec timespec_trunc ( struct timespec  t,
unsigned  gran 
) [read]

timespec_trunc - Truncate timespec to a granularity : Timespec : Granularity in ns.

Truncate a timespec to a granularity. gran must be smaller than a second. Always rounds down.

This function should be only used for timestamps returned by current_kernel_time() or CURRENT_TIME, not with do_gettimeofday() because it doesn't handle the better resolution of the latter.

Definition at line 289 of file time.c.

unsigned long timeval_to_jiffies ( const struct timeval *  value  ) 

Definition at line 619 of file time.c.

unsigned long usecs_to_jiffies ( const unsigned int  u  ) 

Definition at line 520 of file time.c.

static void warp_clock ( void   )  [inline, static]

Definition at line 134 of file time.c.


Variable Documentation

struct timezone sys_tz

Definition at line 51 of file time.c.


Generated on Wed Apr 11 06:39:16 2012 for DDE - The L4 Device Driver Environment by  doxygen 1.5.6