diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2009-01-15 16:51:00 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-15 19:39:37 -0500 |
commit | b098161b4d0231f7dc5306111d576c0bfe0c8eba (patch) | |
tree | 4b95f05b5f50bd219943f4bd6b200ccde806a38b /lib | |
parent | 45ce80fb6b6f9594d1396d44dd7e7c02d596fef8 (diff) |
idr: fix wrong kernel-doc
idr_get_new_above() and ida_get_new_above() return an id in the range of
@staring_id ... 0x7fffffff, not 0 ... 0x7fffffff.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/idr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -292,7 +292,7 @@ static int idr_get_new_above_int(struct idr *idp, void *ptr, int starting_id) | |||
292 | * and go back to the idr_pre_get() call. If the idr is full, it will | 292 | * and go back to the idr_pre_get() call. If the idr is full, it will |
293 | * return -ENOSPC. | 293 | * return -ENOSPC. |
294 | * | 294 | * |
295 | * @id returns a value in the range 0 ... 0x7fffffff | 295 | * @id returns a value in the range @starting_id ... 0x7fffffff |
296 | */ | 296 | */ |
297 | int idr_get_new_above(struct idr *idp, void *ptr, int starting_id, int *id) | 297 | int idr_get_new_above(struct idr *idp, void *ptr, int starting_id, int *id) |
298 | { | 298 | { |
@@ -723,7 +723,7 @@ EXPORT_SYMBOL(ida_pre_get); | |||
723 | * and go back to the ida_pre_get() call. If the ida is full, it will | 723 | * and go back to the ida_pre_get() call. If the ida is full, it will |
724 | * return -ENOSPC. | 724 | * return -ENOSPC. |
725 | * | 725 | * |
726 | * @p_id returns a value in the range 0 ... 0x7fffffff. | 726 | * @p_id returns a value in the range @starting_id ... 0x7fffffff. |
727 | */ | 727 | */ |
728 | int ida_get_new_above(struct ida *ida, int starting_id, int *p_id) | 728 | int ida_get_new_above(struct ida *ida, int starting_id, int *p_id) |
729 | { | 729 | { |