Module time

Source
Expand description

Time related primitives.

This module contains the kernel APIs related to time and timers that have been ported or wrapped for usage by Rust code in the kernel.

C header: include/linux/jiffies.h. C header: include/linux/ktime.h.

Modules§

hrtimer
Intrusive high resolution timers.

Structs§

Ktime
A Rust wrapper around a ktime_t.

Enums§

ClockId
An identifier for a clock. Used when specifying clock sources.

Constants§

NSEC_PER_MSEC
The number of nanoseconds per millisecond.

Functions§

ktime_ms_delta
Returns the number of milliseconds between two ktimes.
msecs_to_jiffies
Converts milliseconds to jiffies.

Type Aliases§

Jiffies
The time unit of Linux kernel. One jiffy equals (1/HZ) second.
Msecs
The millisecond time unit.