diff options
| author | Jonathan Corbet <corbet@lwn.net> | 2016-11-18 19:17:11 -0500 |
|---|---|---|
| committer | Jonathan Corbet <corbet@lwn.net> | 2016-11-29 16:44:14 -0500 |
| commit | 8da3dc53347205b0d32ded4ab9c96dcf336061d8 (patch) | |
| tree | 002ca702859b2d7e44f16c4ee29dfc05c5cd4c2a /Documentation/core-api/debug-objects.rst | |
| parent | 93dc3a112bf8e5f97e3d9744595934ff31708764 (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.rst | 34 |
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. | |||
| 64 | Debug functions | 64 | Debug functions |
| 65 | =============== | 65 | =============== |
| 66 | 66 | ||
| 67 | Debug 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 | |||
| 73 | debug_object_init | ||
| 74 | ------------------- | ||
| 75 | 69 | ||
| 76 | This function is called whenever the initialization function of a real | 70 | This function is called whenever the initialization function of a real |
| 77 | object is called. | 71 | object is called. |
| @@ -93,8 +87,8 @@ number of warnings including a full stack trace is printk'ed. The | |||
| 93 | calling code must use debug_object_init_on_stack() and remove the | 87 | calling code must use debug_object_init_on_stack() and remove the |
| 94 | object before leaving the function which allocated it. See next section. | 88 | object before leaving the function which allocated it. See next section. |
| 95 | 89 | ||
| 96 | debug_object_init_on_stack | 90 | .. kernel-doc:: lib/debugobjects.c |
| 97 | ------------------------------ | 91 | :functions: debug_object_init_on_stack |
| 98 | 92 | ||
| 99 | This function is called whenever the initialization function of a real | 93 | This function is called whenever the initialization function of a real |
| 100 | object which resides on the stack is called. | 94 | object 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 | |||
| 117 | calling debug_object_free() before the function which allocates the | 111 | calling debug_object_free() before the function which allocates the |
| 118 | object returns. Otherwise we keep track of stale objects. | 112 | object returns. Otherwise we keep track of stale objects. |
| 119 | 113 | ||
| 120 | debug_object_activate | 114 | .. kernel-doc:: lib/debugobjects.c |
| 121 | ----------------------- | 115 | :functions: debug_object_activate |
| 122 | 116 | ||
| 123 | This function is called whenever the activation function of a real | 117 | This function is called whenever the activation function of a real |
| 124 | object is called. | 118 | object is called. |
| @@ -141,8 +135,9 @@ object. | |||
| 141 | When the activation is legitimate, then the state of the associated | 135 | When the activation is legitimate, then the state of the associated |
| 142 | tracker object is set to ODEBUG_STATE_ACTIVE. | 136 | tracker object is set to ODEBUG_STATE_ACTIVE. |
| 143 | 137 | ||
| 144 | debug_object_deactivate | 138 | |
| 145 | ------------------------- | 139 | .. kernel-doc:: lib/debugobjects.c |
| 140 | :functions: debug_object_deactivate | ||
| 146 | 141 | ||
| 147 | This function is called whenever the deactivation function of a real | 142 | This function is called whenever the deactivation function of a real |
| 148 | object is called. | 143 | object is called. |
| @@ -154,8 +149,8 @@ or destroyed objects. | |||
| 154 | When the deactivation is legitimate, then the state of the associated | 149 | When the deactivation is legitimate, then the state of the associated |
| 155 | tracker object is set to ODEBUG_STATE_INACTIVE. | 150 | tracker object is set to ODEBUG_STATE_INACTIVE. |
| 156 | 151 | ||
| 157 | debug_object_destroy | 152 | .. kernel-doc:: lib/debugobjects.c |
| 158 | ---------------------- | 153 | :functions: debug_object_destroy |
| 159 | 154 | ||
| 160 | This function is called to mark an object destroyed. This is useful to | 155 | This function is called to mark an object destroyed. This is useful to |
| 161 | prevent the usage of invalid objects, which are still available in | 156 | prevent 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. | |||
| 173 | When the destruction is legitimate, then the state of the associated | 168 | When the destruction is legitimate, then the state of the associated |
| 174 | tracker object is set to ODEBUG_STATE_DESTROYED. | 169 | tracker object is set to ODEBUG_STATE_DESTROYED. |
| 175 | 170 | ||
| 176 | debug_object_free | 171 | .. kernel-doc:: lib/debugobjects.c |
| 177 | ------------------- | 172 | :functions: debug_object_free |
| 178 | 173 | ||
| 179 | This function is called before an object is freed. | 174 | This function is called before an object is freed. |
| 180 | 175 | ||
| @@ -189,8 +184,9 @@ prevent damage to the subsystem. | |||
| 189 | Note that debug_object_free removes the object from the tracker. Later | 184 | Note that debug_object_free removes the object from the tracker. Later |
| 190 | usage of the object is detected by the other debug checks. | 185 | usage of the object is detected by the other debug checks. |
| 191 | 186 | ||
| 192 | debug_object_assert_init | 187 | |
| 193 | --------------------------- | 188 | .. kernel-doc:: lib/debugobjects.c |
| 189 | :functions: debug_object_assert_init | ||
| 194 | 190 | ||
| 195 | This function is called to assert that an object has been initialized. | 191 | This function is called to assert that an object has been initialized. |
| 196 | 192 | ||
