diff options
author | Borislav Petkov <bp@suse.de> | 2018-11-05 04:33:07 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-11-07 10:47:47 -0500 |
commit | f26621e60b35369bca9228bc936dc723b3e421af (patch) | |
tree | e646b6ba10c326e13da0ca666337b537ad514629 | |
parent | 81bd415c91eb966118d773dddf254aebf3022411 (diff) |
resource/docs: Complete kernel-doc style function documentation
Add the missing kernel-doc style function parameters documentation.
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: akpm@linux-foundation.org
Cc: linux-tip-commits@vger.kernel.org
Cc: rdunlap@infradead.org
Fixes: b69c2e20f6e4 ("resource: Clean it up a bit")
Link: http://lkml.kernel.org/r/20181105093307.GA12445@zn.tnic
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | kernel/resource.c | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/kernel/resource.c b/kernel/resource.c index 17bcb189d530..b0fbf685c77a 100644 --- a/kernel/resource.c +++ b/kernel/resource.c | |||
@@ -318,17 +318,24 @@ int release_resource(struct resource *old) | |||
318 | 318 | ||
319 | EXPORT_SYMBOL(release_resource); | 319 | EXPORT_SYMBOL(release_resource); |
320 | 320 | ||
321 | /* | 321 | /** |
322 | * Finds the lowest iomem resource that covers part of [start..end]. The | 322 | * Finds the lowest iomem resource that covers part of [@start..@end]. The |
323 | * caller must specify start, end, flags, and desc (which may be | 323 | * caller must specify @start, @end, @flags, and @desc (which may be |
324 | * IORES_DESC_NONE). | 324 | * IORES_DESC_NONE). |
325 | * | 325 | * |
326 | * If a resource is found, returns 0 and *res is overwritten with the part | 326 | * If a resource is found, returns 0 and @*res is overwritten with the part |
327 | * of the resource that's within [start..end]; if none is found, returns | 327 | * of the resource that's within [@start..@end]; if none is found, returns |
328 | * -1. Returns -EINVAL for other invalid parameters. | 328 | * -1 or -EINVAL for other invalid parameters. |
329 | * | 329 | * |
330 | * This function walks the whole tree and not just first level children | 330 | * This function walks the whole tree and not just first level children |
331 | * unless @first_lvl is true. | 331 | * unless @first_lvl is true. |
332 | * | ||
333 | * @start: start address of the resource searched for | ||
334 | * @end: end address of same resource | ||
335 | * @flags: flags which the resource must have | ||
336 | * @desc: descriptor the resource must have | ||
337 | * @first_lvl: walk only the first level children, if set | ||
338 | * @res: return ptr, if resource found | ||
332 | */ | 339 | */ |
333 | static int find_next_iomem_res(resource_size_t start, resource_size_t end, | 340 | static int find_next_iomem_res(resource_size_t start, resource_size_t end, |
334 | unsigned long flags, unsigned long desc, | 341 | unsigned long flags, unsigned long desc, |
@@ -390,9 +397,7 @@ static int __walk_iomem_res_desc(resource_size_t start, resource_size_t end, | |||
390 | } | 397 | } |
391 | 398 | ||
392 | /** | 399 | /** |
393 | * walk_iomem_res_desc - walk through iomem resources | 400 | * Walks through iomem resources and calls func() with matching resource |
394 | * | ||
395 | * Walks through iomem resources and calls @func() with matching resource | ||
396 | * ranges. This walks through whole tree and not just first level children. | 401 | * ranges. This walks through whole tree and not just first level children. |
397 | * All the memory ranges which overlap start,end and also match flags and | 402 | * All the memory ranges which overlap start,end and also match flags and |
398 | * desc are valid candidates. | 403 | * desc are valid candidates. |