1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-26 02:25:00 -05:00
linux/Documentation/core-api
Arnd Bergmann 0e3fd810c4 Documentation: document ktime_get_*() APIs
As Dave Chinner points out, we don't have a proper documentation for the
ktime_get() family of interfaces, making it rather unclear which of the
over 30 (!) interfaces one should actually use in a driver or elsewhere
in the kernel.

I wrote up an explanation from how I personally see the interfaces,
documenting what each of the functions do and hopefully making it a bit
clearer which should be used where.

This is the first time I tried writing .rst format documentation, so
in addition to any mistakes in the content, I probably also introduce
nonstandard formatting ;-)

I first tried to add an extra section to
Documentation/timers/timekeeping.txt, but this is currently not included
in the generated API, and it seems useful to have the API docs as part
of what gets generated in
https://www.kernel.org/doc/html/latest/core-api/index.html#core-utilities
instead, so I started a new file there.

I also considered adding the documentation inline in the
include/linux/timekeeping.h header, but couldn't figure out how to do
that in a way that would result both in helpful inline comments as
well as readable html output, so I settled for the latter, with
a small note pointing to it from the header.

Cc: Dave Chinner <david@fromorbit.com>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Stephen Boyd <sboyd@kernel.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
2018-07-23 09:16:56 -06:00
..
assoc_array.rst
atomic_ops.rst
cachetlb.rst
circular-buffers.rst
conf.py
cpu_hotplug.rst
debug-objects.rst
errseq.rst
flexible-arrays.rst
genalloc.rst
genericirq.rst
gfp_mask-from-fs-io.rst
idr.rst docs/idr: use empty "functions" directive 2018-06-30 07:52:50 -06:00
index.rst Documentation: document ktime_get_*() APIs 2018-07-23 09:16:56 -06:00
kernel-api.rst Fix Documentation build due to rename of main.c to mtrr.c 2018-06-18 13:41:45 +09:00
librs.rst
local_ops.rst
printk-formats.rst
refcount-vs-atomic.rst
timekeeping.rst Documentation: document ktime_get_*() APIs 2018-07-23 09:16:56 -06:00
tracepoint.rst
workqueue.rst