aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/core-api/debug-objects.rst
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2016-11-18 19:17:11 -0500
committerJonathan Corbet <corbet@lwn.net>2016-11-29 16:44:14 -0500
commit8da3dc53347205b0d32ded4ab9c96dcf336061d8 (patch)
tree002ca702859b2d7e44f16c4ee29dfc05c5cd4c2a /Documentation/core-api/debug-objects.rst
parent93dc3a112bf8e5f97e3d9744595934ff31708764 (diff)
doc: debugobjects: actually pull in the kerneldoc comments
Add the appropriate markup to get the kerneldoc comments out of lib/debugobjects.c that have never seen the light of day until now. A logical next step, left for the reader at the moment, is to move the function descriptions *out* of debug-objects.rst and into the kerneldoc comments themselves. Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/core-api/debug-objects.rst')
-rw-r--r--Documentation/core-api/debug-objects.rst34
1 files changed, 15 insertions, 19 deletions
diff --git a/Documentation/core-api/debug-objects.rst b/Documentation/core-api/debug-objects.rst
index 50a9707addfe..ac926fd55a64 100644
--- a/Documentation/core-api/debug-objects.rst
+++ b/Documentation/core-api/debug-objects.rst
@@ -64,14 +64,8 @@ tracking objects and the state of the internal tracking objects pool.
64Debug functions 64Debug functions
65=============== 65===============
66 66
67Debug object function reference
68-------------------------------
69
70.. kernel-doc:: lib/debugobjects.c 67.. kernel-doc:: lib/debugobjects.c
71 :export: 68 :functions: debug_object_init
72
73debug_object_init
74-------------------
75 69
76This function is called whenever the initialization function of a real 70This function is called whenever the initialization function of a real
77object is called. 71object is called.
@@ -93,8 +87,8 @@ number of warnings including a full stack trace is printk'ed. The
93calling code must use debug_object_init_on_stack() and remove the 87calling code must use debug_object_init_on_stack() and remove the
94object before leaving the function which allocated it. See next section. 88object before leaving the function which allocated it. See next section.
95 89
96debug_object_init_on_stack 90.. kernel-doc:: lib/debugobjects.c
97------------------------------ 91 :functions: debug_object_init_on_stack
98 92
99This function is called whenever the initialization function of a real 93This function is called whenever the initialization function of a real
100object which resides on the stack is called. 94object which resides on the stack is called.
@@ -117,8 +111,8 @@ An object which is on the stack must be removed from the tracker by
117calling debug_object_free() before the function which allocates the 111calling debug_object_free() before the function which allocates the
118object returns. Otherwise we keep track of stale objects. 112object returns. Otherwise we keep track of stale objects.
119 113
120debug_object_activate 114.. kernel-doc:: lib/debugobjects.c
121----------------------- 115 :functions: debug_object_activate
122 116
123This function is called whenever the activation function of a real 117This function is called whenever the activation function of a real
124object is called. 118object is called.
@@ -141,8 +135,9 @@ object.
141When the activation is legitimate, then the state of the associated 135When the activation is legitimate, then the state of the associated
142tracker object is set to ODEBUG_STATE_ACTIVE. 136tracker object is set to ODEBUG_STATE_ACTIVE.
143 137
144debug_object_deactivate 138
145------------------------- 139.. kernel-doc:: lib/debugobjects.c
140 :functions: debug_object_deactivate
146 141
147This function is called whenever the deactivation function of a real 142This function is called whenever the deactivation function of a real
148object is called. 143object is called.
@@ -154,8 +149,8 @@ or destroyed objects.
154When the deactivation is legitimate, then the state of the associated 149When the deactivation is legitimate, then the state of the associated
155tracker object is set to ODEBUG_STATE_INACTIVE. 150tracker object is set to ODEBUG_STATE_INACTIVE.
156 151
157debug_object_destroy 152.. kernel-doc:: lib/debugobjects.c
158---------------------- 153 :functions: debug_object_destroy
159 154
160This function is called to mark an object destroyed. This is useful to 155This function is called to mark an object destroyed. This is useful to
161prevent the usage of invalid objects, which are still available in 156prevent the usage of invalid objects, which are still available in
@@ -173,8 +168,8 @@ deactivate an active object in order to prevent damage to the subsystem.
173When the destruction is legitimate, then the state of the associated 168When the destruction is legitimate, then the state of the associated
174tracker object is set to ODEBUG_STATE_DESTROYED. 169tracker object is set to ODEBUG_STATE_DESTROYED.
175 170
176debug_object_free 171.. kernel-doc:: lib/debugobjects.c
177------------------- 172 :functions: debug_object_free
178 173
179This function is called before an object is freed. 174This function is called before an object is freed.
180 175
@@ -189,8 +184,9 @@ prevent damage to the subsystem.
189Note that debug_object_free removes the object from the tracker. Later 184Note that debug_object_free removes the object from the tracker. Later
190usage of the object is detected by the other debug checks. 185usage of the object is detected by the other debug checks.
191 186
192debug_object_assert_init 187
193--------------------------- 188.. kernel-doc:: lib/debugobjects.c
189 :functions: debug_object_assert_init
194 190
195This function is called to assert that an object has been initialized. 191This function is called to assert that an object has been initialized.
196 192