[PATCH 2/2] doc/idr: adjust to new IDR allocation API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The IDR API was adjusted to match the IDA API, adjust the
documentation accordingly.

Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>
---
 Documentation/core-api/idr.rst | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Documentation/core-api/idr.rst b/Documentation/core-api/idr.rst
index 2eb5afdb9931..53310d1a2552 100644
--- a/Documentation/core-api/idr.rst
+++ b/Documentation/core-api/idr.rst
@@ -24,9 +24,9 @@ Start by initialising an IDR, either with DEFINE_IDR()
 for statically allocated IDRs or idr_init() for dynamically
 allocated IDRs.
 
-You can call idr_alloc() to allocate an unused ID.  Look up
-the pointer you associated with the ID by calling idr_find()
-and free the ID by calling idr_remove().
+You can call idr_alloc(), idr_alloc_range(), idr_alloc_min() or idr_alloc_max()
+to allocate an unused ID, look up the pointer you associated with the ID by
+calling idr_find() and free the ID by calling idr_remove().
 
 If you need to change the pointer associated with an ID, you can call
 idr_replace().  One common reason to do this is to reserve an
-- 
2.36.1




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux