Skip to contentSkip to conversation

Correct the comment of allocate_resource()

PATCH New Wei Yang 1 participant 1 message May 5, 2012

lore
Share & tools
lore

Wei Yang

author
#0 lore raw

PATCH 1/1 Correct the comment of allocate_resource()

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.

---
 kernel/resource.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
kernel/resource.c +2 -2
index 7e8ea66..e1d2b8e 100644
@@ -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
Signature · 6 lines
1.7.4.1


-- 
Richard Yang
Help you, Help me