Thread (11 messages) flat view 11 messages, 3 authors, 2020-04-20

Re: [PATCH] [man-pages] adjtimex.2: document clock_adjtime

From: Arnd Bergmann <arnd@arndb.de>
Date: 2017-11-21 08:06:42
Also in: lkml

On Tue, Nov 21, 2017 at 4:05 AM, Richard Cochran
[off-list ref] wrote:
On Mon, Nov 20, 2017 at 11:53:02PM +0100, Arnd Bergmann wrote:
quoted
 .B EINVAL
+The
+.I clk_id
+specified is not supported on this system.
We return EINVAL when the clockid is not valid.  That can mean two
things.  Either the SYS-V style hard coded positive clockid is out of
range, or the dynamic negative clockid does not refer to a valid
instance of a clock object.

Dynamic clocks might also return ENODEV in case a hot-plugable device
(like USB) has disappeared after its character device was opened.
I copied that line from clock_gettime() man page. I suppose we want to
fix change this in both pages, right? Any suggestions for a good way to
express your explanation in the man page? I suppose we don't want to
go into details of the implementation there but still capture the possible
corner cases.

       Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help