|
@@ -146,8 +146,8 @@ EXPORT_SYMBOL(idr_get_next_ext);
|
|
* idr_alloc() and idr_remove() (as long as the ID being removed is not
|
|
* idr_alloc() and idr_remove() (as long as the ID being removed is not
|
|
* the one being replaced!).
|
|
* the one being replaced!).
|
|
*
|
|
*
|
|
- * Returns: 0 on success. %-ENOENT indicates that @id was not found.
|
|
|
|
- * %-EINVAL indicates that @id or @ptr were not valid.
|
|
|
|
|
|
+ * Returns: the old value on success. %-ENOENT indicates that @id was not
|
|
|
|
+ * found. %-EINVAL indicates that @id or @ptr were not valid.
|
|
*/
|
|
*/
|
|
void *idr_replace(struct idr *idr, void *ptr, int id)
|
|
void *idr_replace(struct idr *idr, void *ptr, int id)
|
|
{
|
|
{
|