Back to Darwin Xnu

Tvalspec

osfmk/man/tvalspec.html

latest943 B
Original Source

tvalspec


Structure - Defines format of system time values.

SYNOPSIS

**struct tvalspec**** { ****unsigned int** tv\_sec **;**** clock\_res\_t **tv\_nsec** ; ****};**** typedef struct tvalspec tvalspec\_t;**

FIELDS

tv_secSeconds.

tv_nsecNanoseconds.

DESCRIPTION

The tvalspec structure defines the format of the time structure supplied to or returned from the kernel. This definition conforms to the Posix 1003.4 timespec definition where the tv_nsec structure member is valid if (0 =< tv_nsec < 109) and the time period described is ((tv_sec * 109) + tv_nsec) nanoseconds.

Functions: clock_get_time, clock_set_time, clock_sleep, clock_alarm, clock_alarm_reply.

Data Structures: mapped_tvalspec.