Skip to contentSkip to conversation

docs: Add rbtree documentation to the core-api

PATCH In review Matthew Wilcox 2 participants 2 messages Apr 1, 2020 – Apr 2, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: Add rbtree documentation to the core-api

From: "Matthew Wilcox (Oracle)" <[email protected]>

This file is close enough to being in rst format that I didn't feel the need to alter it in any way.

---
 Documentation/core-api/index.rst                  | 1 +
 Documentation/{rbtree.txt => core-api/rbtree.rst} | 0
 include/linux/rbtree.h                            | 2 +-
 include/linux/rbtree_augmented.h                  | 2 +-
 lib/Kconfig                                       | 2 +-
 tools/include/linux/rbtree.h                      | 2 +-
 tools/include/linux/rbtree_augmented.h            | 2 +-
 7 files changed, 6 insertions(+), 5 deletions(-)
 rename Documentation/{rbtree.txt => core-api/rbtree.rst} (100%)
Documentation/core-api/index.rst +1 -0
index 0897ad12c119..9499a4c47f4a 100644
@@ -34,6 +34,7 @@ Library functionality that is used throughout the kernel.
    xarray
    idr
    circular-buffers
+   rbtree
    generic-radix-tree
    packing
    timekeeping
Documentation/core-api/rbtree.rst renamed from Documentation/rbtree.txt +0 -0
similarity index 100%
rename from Documentation/rbtree.txt
rename to Documentation/core-api/rbtree.rst
include/linux/rbtree.h +1 -1
index 1fd61a9af45c..d7db17996322 100644
@@ -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
include/linux/rbtree_augmented.h +1 -1
index 724b0d036b57..d1c53e9d8c75 100644
@@ -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 {
lib/Kconfig +1 -1
index bc7e56370129..8653a8ab3c68 100644
@@ -427,7 +427,7 @@ config INTERVAL_TREE
 
 	  See:
 
-		Documentation/rbtree.txt
+		Documentation/core-api/rbtree.rst
 
 	  for more information.
 
tools/include/linux/rbtree.h +1 -1
index e03b1ea23e0e..30dd21f976c3 100644
@@ -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
tools/include/linux/rbtree_augmented.h +1 -1
index 381aa948610d..570bb9794421 100644
@@ -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 {
Signature · 1 line
2.25.1
Acked-by on v1 1/1
#1 lore raw

Looks fine to me :)

Quoted 102 lines · Matthew Wilcox

From: "Matthew Wilcox (Oracle)" <[email protected]>

This file is close enough to being in rst format that I didn't feel the need to alter it in any way.

---
 Documentation/core-api/index.rst                  | 1 +
 Documentation/{rbtree.txt => core-api/rbtree.rst} | 0
 include/linux/rbtree.h                            | 2 +-
 include/linux/rbtree_augmented.h                  | 2 +-
 lib/Kconfig                                       | 2 +-
 tools/include/linux/rbtree.h                      | 2 +-
 tools/include/linux/rbtree_augmented.h            | 2 +-
 7 files changed, 6 insertions(+), 5 deletions(-)
 rename Documentation/{rbtree.txt => core-api/rbtree.rst} (100%)
Documentation/core-api/index.rst +1 -0
index 0897ad12c119..9499a4c47f4a 100644
@@ -34,6 +34,7 @@ Library functionality that is used throughout the kernel.
    xarray
    idr
    circular-buffers
+   rbtree
    generic-radix-tree
    packing
    timekeeping
Documentation/core-api/rbtree.rst renamed from Documentation/rbtree.txt +0 -0
similarity index 100%
rename from Documentation/rbtree.txt
rename to Documentation/core-api/rbtree.rst
include/linux/rbtree.h +1 -1
index 1fd61a9af45c..d7db17996322 100644
@@ -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
include/linux/rbtree_augmented.h +1 -1
index 724b0d036b57..d1c53e9d8c75 100644
@@ -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 {
lib/Kconfig +1 -1
index bc7e56370129..8653a8ab3c68 100644
@@ -427,7 +427,7 @@ config INTERVAL_TREE
 
          See:
 
-               Documentation/rbtree.txt
+               Documentation/core-api/rbtree.rst
 
          for more information.
 
tools/include/linux/rbtree.h +1 -1
index e03b1ea23e0e..30dd21f976c3 100644
@@ -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
tools/include/linux/rbtree_augmented.h +1 -2
index 381aa948610d..570bb9794421 100644
@@ -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 {
--

2.25.1

Signature · 2 lines
Michel "Walken" Lespinasse
A program is never fully debugged until the last user dies.