linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Correct the comment of allocate_resource()
@ 2012-05-05  3:42 Wei Yang
  0 siblings, 0 replies; only message in thread
From: Wei Yang @ 2012-05-05  3:42 UTC (permalink / raw)
  To: linux-kernel; +Cc: torvalds


In the comment of allocate_resource(), the explanation of parameter max
and min is not correct.

Actually, this two parameter is used to specify the range of the resource
will be allocated, not the min/max size will be allocated.

Signed-Off-By: Wei Yang <weiyang@linux.vnet.ibm.com>

---
 kernel/resource.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/resource.c b/kernel/resource.c
index 7e8ea66..e1d2b8e 100644
--- a/kernel/resource.c
+++ b/kernel/resource.c
@@ -515,8 +515,8 @@ out:
  * @root: root resource descriptor
  * @new: resource descriptor desired by caller
  * @size: requested resource region size
- * @min: minimum size to allocate
- * @max: maximum size to allocate
+ * @min: minimum boundary to allocate
+ * @max: maximum boundary to allocate
  * @align: alignment requested, in bytes
  * @alignf: alignment function, optional, called if not NULL
  * @alignf_data: arbitrary data to pass to the @alignf function
-- 
1.7.4.1


-- 
Richard Yang
Help you, Help me


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-05-05  3:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-05  3:42 [PATCH] Correct the comment of allocate_resource() Wei Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).