Skip to content

Commit

Permalink
docs: Add rbtree documentation to the core-api
Browse files Browse the repository at this point in the history
This file is close enough to being in rst format that I didn't feel
the need to alter it in any way.

Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Acked-by: Michel Lespinasse <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
  • Loading branch information
Matthew Wilcox (Oracle) authored and Jonathan Corbet committed Apr 21, 2020
1 parent 90c165f commit 14bbe3e
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions Documentation/core-api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Library functionality that is used throughout the kernel.
xarray
idr
circular-buffers
rbtree
generic-radix-tree
packing
timekeeping
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion include/linux/rbtree.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
I know it's not the cleaner way, but in C (not in C++) to get
performances and genericity...
See Documentation/rbtree.txt for documentation and samples.
See Documentation/core-api/rbtree.rst for documentation and samples.
*/

#ifndef _LINUX_RBTREE_H
Expand Down
2 changes: 1 addition & 1 deletion include/linux/rbtree_augmented.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* rb_insert_augmented() and rb_erase_augmented() are intended to be public.
* The rest are implementation details you are not expected to depend on.
*
* See Documentation/rbtree.txt for documentation and samples.
* See Documentation/core-api/rbtree.rst for documentation and samples.
*/

struct rb_augment_callbacks {
Expand Down
2 changes: 1 addition & 1 deletion lib/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ config INTERVAL_TREE

See:

Documentation/rbtree.txt
Documentation/core-api/rbtree.rst

for more information.

Expand Down
2 changes: 1 addition & 1 deletion tools/include/linux/rbtree.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
I know it's not the cleaner way, but in C (not in C++) to get
performances and genericity...
See Documentation/rbtree.txt for documentation and samples.
See Documentation/core-api/rbtree.rst for documentation and samples.
*/

#ifndef __TOOLS_LINUX_PERF_RBTREE_H
Expand Down
2 changes: 1 addition & 1 deletion tools/include/linux/rbtree_augmented.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* rb_insert_augmented() and rb_erase_augmented() are intended to be public.
* The rest are implementation details you are not expected to depend on.
*
* See Documentation/rbtree.txt for documentation and samples.
* See Documentation/core-api/rbtree.rst for documentation and samples.
*/

struct rb_augment_callbacks {
Expand Down

0 comments on commit 14bbe3e

Please sign in to comment.