mirror of https://github.com/mkerrisk/man-pages
adjtimex.2: Note range constraints and clamping for ADJ_FREQUENCY
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
88ec900f22
commit
f4d9c97d6a
|
@ -106,6 +106,12 @@ error occurs if the supplied value is out of range.
|
|||
.BR ADJ_FREQUENCY
|
||||
Set frequency offset from
|
||||
.IR buf.freq .
|
||||
Since Linux 2.6.26,
|
||||
.\" commit 074b3b87941c99bc0ce35385b5817924b1ed0c23
|
||||
the supplied value is clamped to the range (\-32768000, +32768000).
|
||||
In older kernels, an
|
||||
.IB EINVAL
|
||||
error occurs if the supplied value is out of range.
|
||||
.TP
|
||||
.BR ADJ_MAXERROR
|
||||
Set maximum time error from
|
||||
|
@ -386,6 +392,13 @@ does not point to writable memory.
|
|||
.TP
|
||||
.BR EINVAL " (kernels before Linux 2.6.26)"
|
||||
An attempt was made to set
|
||||
.I buf.freq
|
||||
to a value outside the range (\-33554432, +33554432).
|
||||
.\" From a quck glance, it appears there was no clamping or range check
|
||||
.\" for buf.freq in kernels before 2.0
|
||||
.TP
|
||||
.BR EINVAL " (kernels before Linux 2.6.26)"
|
||||
An attempt was made to set
|
||||
.I buf.offset
|
||||
to a value outside the permitted range.
|
||||
In kernels before Linux 2.0, the permitted range was (\-131072, +131072).
|
||||
|
|
Loading…
Reference in New Issue