diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2020-01-12 21:54:10 +0100 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2020-01-18 04:33:37 +0100 |
commit | 00ed452c210a0bc1ff3ee79e1ce6b199f00a0638 (patch) | |
tree | 519e830435204683e32c9ded6ff4e7d4778f3922 /Documentation/core-api | |
parent | XArray: Fix xas_find returning too many entries (diff) | |
download | linux-00ed452c210a0bc1ff3ee79e1ce6b199f00a0638.tar.xz linux-00ed452c210a0bc1ff3ee79e1ce6b199f00a0638.zip |
XArray: Add xa_for_each_range
This function supports iterating over a range of an array. Also add
documentation links for xa_for_each_start().
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Diffstat (limited to 'Documentation/core-api')
-rw-r--r-- | Documentation/core-api/xarray.rst | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Documentation/core-api/xarray.rst b/Documentation/core-api/xarray.rst index 39b61ade7355..640934b6f7b4 100644 --- a/Documentation/core-api/xarray.rst +++ b/Documentation/core-api/xarray.rst @@ -82,10 +82,10 @@ at that index is ``NULL``, you can use xa_insert() which returns ``-EBUSY`` if the entry is not empty. You can copy entries out of the XArray into a plain array by calling -xa_extract(). Or you can iterate over the present entries in -the XArray by calling xa_for_each(). You may prefer to use -xa_find() or xa_find_after() to move to the next present -entry in the XArray. +xa_extract(). Or you can iterate over the present entries in the XArray +by calling xa_for_each(), xa_for_each_start() or xa_for_each_range(). +You may prefer to use xa_find() or xa_find_after() to move to the next +present entry in the XArray. Calling xa_store_range() stores the same entry in a range of indices. If you do this, some of the other operations will behave @@ -193,6 +193,8 @@ No lock needed: Takes RCU read lock: * xa_load() * xa_for_each() + * xa_for_each_start() + * xa_for_each_range() * xa_find() * xa_find_after() * xa_extract() |