*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: tvtohz | Section: 9 | Source: OpenBSD | File: tvtohz.9
TVTOHZ(9) FreeBSD Kernel Developer's Manual TVTOHZ(9) NAME tvtohz, tstohz - translate time period to timeout delay SYNOPSIS #include <sys/types.h> #include <sys/time.h> #include <sys/systm.h> int tvtohz(const struct timeval *tv); int tstohz(const struct timespec *ts); DESCRIPTION The tvtohz() and tstohz() functions return the number of ticks in the specified amount of time. If the return value would exceed the maximum value representable by an int, it is capped at INT_MAX. They are mainly used to translate a timeval or timespec, respectively, into a suitable argument for tsleep(9). CODE REFERENCES These functions are implemented in the file sys/kern/kern_clock.c. SEE ALSO hz(9), timeout(9) FreeBSD 14.1-RELEASE-p8 January 18, 2019 FreeBSD 14.1-RELEASE-p8

Navigation Options