rtl_setclockmode(3)

rtl_setclockmode3

Set the rtl clock mode

Usage

#include <rtl_sched.h>

int rtl_setclockmode (clockid_t clock, int mode, hrtime_t mode_param);

Overview

This function is a non-portable Real-Time Linux extension.

rtl_setclockmode sets the mode of the specified clock. The allowed modes depend on the clock. Generally, the following modes are supported:

RTL_CLOCK_MODE_ONESHOT

The clock is in the oneshot mode. The mode_param is ignored.

RTL_CLOCK_MODE_PERIODIC

The clock is in the periodic mode. The mode_param is the period expressed in nanoseconds.

Return value

This function returns 0 on success and a non-zero error code on error.

Errors

EINVAL the mode or the parameter is invalid.

Author

Michael Barabanov <[email protected]>

From rtlinux 2.0rel-1 in Debian 2.2 (Potato). Parsed by carta from the page's man source.