^sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget#/translations/zh_CN/core-api/xarraymodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget#/translations/zh_TW/core-api/xarraymodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget#/translations/it_IT/core-api/xarraymodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget#/translations/ja_JP/core-api/xarraymodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget#/translations/ko_KR/core-api/xarraymodnameN classnameN refexplicituh1hhh ubh)}(hhh]hPortuguese (Brazilian)}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget#/translations/pt_BR/core-api/xarraymodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget#/translations/sp_SP/core-api/xarraymodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h!SPDX-License-Identifier: GPL-2.0+h]h!SPDX-License-Identifier: GPL-2.0+}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhh=/var/lib/git/docbuild/linux/Documentation/core-api/xarray.rsthKubhsection)}(hhh](htitle)}(hXArrayh]hXArray}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh field_list)}(hhh]hfield)}(hhh](h field_name)}(hAuthorh]hAuthor}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhKubh field_body)}(hMatthew Wilcox h]h paragraph)}(hMatthew Wilcoxh]hMatthew Wilcox}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhubah}(h]h ]h"]h$]h&]uh1hhhubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hOverviewh]hOverview}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK ubh)}(hXThe XArray is an abstract data type which behaves like a very large array of pointers. It meets many of the same needs as a hash or a conventional resizable array. Unlike a hash, it allows you to sensibly go to the next or previous entry in a cache-efficient manner. In contrast to a resizable array, there is no need to copy data or change MMU mappings in order to grow the array. It is more memory-efficient, parallelisable and cache friendly than a doubly-linked list. It takes advantage of RCU to perform lookups without locking.h]hXThe XArray is an abstract data type which behaves like a very large array of pointers. It meets many of the same needs as a hash or a conventional resizable array. Unlike a hash, it allows you to sensibly go to the next or previous entry in a cache-efficient manner. In contrast to a resizable array, there is no need to copy data or change MMU mappings in order to grow the array. It is more memory-efficient, parallelisable and cache friendly than a doubly-linked list. It takes advantage of RCU to perform lookups without locking.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hjhhubh)}(hXThe XArray implementation is efficient when the indices used are densely clustered; hashing the object and using the hash as the index will not perform well. The XArray is optimised for small indices, but still has good performance with large indices. If your index can be larger than ``ULONG_MAX`` then the XArray is not the data type for you. The most important user of the XArray is the page cache.h](hXThe XArray implementation is efficient when the indices used are densely clustered; hashing the object and using the hash as the index will not perform well. The XArray is optimised for small indices, but still has good performance with large indices. If your index can be larger than }(hj>hhhNhNubhliteral)}(h ``ULONG_MAX``h]h ULONG_MAX}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj>ubhh then the XArray is not the data type for you. The most important user of the XArray is the page cache.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hX[Normal pointers may be stored in the XArray directly. They must be 4-byte aligned, which is true for any pointer returned from kmalloc() and alloc_page(). It isn't true for arbitrary user-space pointers, nor for function pointers. You can store pointers to statically allocated objects, as long as those objects have an alignment of at least 4.h]hX]Normal pointers may be stored in the XArray directly. They must be 4-byte aligned, which is true for any pointer returned from kmalloc() and alloc_page(). It isn’t true for arbitrary user-space pointers, nor for function pointers. You can store pointers to statically allocated objects, as long as those objects have an alignment of at least 4.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hX.You can also store integers between 0 and ``LONG_MAX`` in the XArray. You must first convert it into an entry using xa_mk_value(). When you retrieve an entry from the XArray, you can check whether it is a value entry by calling xa_is_value(), and convert it back to an integer by calling xa_to_value().h](h*You can also store integers between 0 and }(hjnhhhNhNubjG)}(h ``LONG_MAX``h]hLONG_MAX}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjnubh in the XArray. You must first convert it into an entry using xa_mk_value(). When you retrieve an entry from the XArray, you can check whether it is a value entry by calling xa_is_value(), and convert it back to an integer by calling xa_to_value().}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK"hjhhubh)}(hXSome users want to tag the pointers they store in the XArray. You can call xa_tag_pointer() to create an entry with a tag, xa_untag_pointer() to turn a tagged entry back into an untagged pointer and xa_pointer_tag() to retrieve the tag of an entry. Tagged pointers use the same bits that are used to distinguish value entries from normal pointers, so you must decide whether you want to store value entries or tagged pointers in any particular XArray.h]hXSome users want to tag the pointers they store in the XArray. You can call xa_tag_pointer() to create an entry with a tag, xa_untag_pointer() to turn a tagged entry back into an untagged pointer and xa_pointer_tag() to retrieve the tag of an entry. Tagged pointers use the same bits that are used to distinguish value entries from normal pointers, so you must decide whether you want to store value entries or tagged pointers in any particular XArray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK(hjhhubh)}(hnThe XArray does not support storing IS_ERR() pointers as some conflict with value entries or internal entries.h]hnThe XArray does not support storing IS_ERR() pointers as some conflict with value entries or internal entries.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK0hjhhubh)}(hXAn unusual feature of the XArray is the ability to create entries which occupy a range of indices. Once stored to, looking up any index in the range will return the same entry as looking up any other index in the range. Storing to any index will store to all of them. Multi-index entries can be explicitly split into smaller entries. Unsetting (using xa_erase() or xa_store() with ``NULL``) any entry will cause the XArray to forget about the range.h](hXAn unusual feature of the XArray is the ability to create entries which occupy a range of indices. Once stored to, looking up any index in the range will return the same entry as looking up any other index in the range. Storing to any index will store to all of them. Multi-index entries can be explicitly split into smaller entries. Unsetting (using xa_erase() or xa_store() with }(hjhhhNhNubjG)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh<) any entry will cause the XArray to forget about the range.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK3hjhhubeh}(h]overviewah ]h"]overviewah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(h Normal APIh]h Normal API}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKhjhhubh)}(hXYou can then set entries using xa_store() and get entries using xa_load(). xa_store() will overwrite any entry with the new entry and return the previous entry stored at that index. You can unset entries using xa_erase() or by setting the entry to ``NULL`` using xa_store(). There is no difference between an entry that has never been stored to and one that has been erased with xa_erase(); an entry that has most recently had ``NULL`` stored to it is also equivalent except if the XArray was initialized with ``XA_FLAGS_ALLOC``.h](hYou can then set entries using xa_store() and get entries using xa_load(). xa_store() will overwrite any entry with the new entry and return the previous entry stored at that index. You can unset entries using xa_erase() or by setting the entry to }(hjhhhNhNubjG)}(h``NULL``h]hNULL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh using xa_store(). There is no difference between an entry that has never been stored to and one that has been erased with xa_erase(); an entry that has most recently had }(hjhhhNhNubjG)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubhK stored to it is also equivalent except if the XArray was initialized with }(hjhhhNhNubjG)}(h``XA_FLAGS_ALLOC``h]hXA_FLAGS_ALLOC}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKChjhhubh)}(hX(You can conditionally replace an entry at an index by using xa_cmpxchg(). Like cmpxchg(), it will only succeed if the entry at that index has the 'old' value. It also returns the entry which was at that index; if it returns the same entry which was passed as 'old', then xa_cmpxchg() succeeded.h]hX0You can conditionally replace an entry at an index by using xa_cmpxchg(). Like cmpxchg(), it will only succeed if the entry at that index has the ‘old’ value. It also returns the entry which was at that index; if it returns the same entry which was passed as ‘old’, then xa_cmpxchg() succeeded.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKLhjhhubh)}(hIf you want to only store a new entry to an index if the current entry at that index is ``NULL``, you can use xa_insert() which returns ``-EBUSY`` if the entry is not empty.h](hXIf you want to only store a new entry to an index if the current entry at that index is }(hjUhhhNhNubjG)}(h``NULL``h]hNULL}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjUubh(, you can use xa_insert() which returns }(hjUhhhNhNubjG)}(h ``-EBUSY``h]h-EBUSY}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjUubh if the entry is not empty.}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKRhjhhubh)}(hX7You 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(), 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.h]hX7You 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(), 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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKVhjhhubh)}(hXCalling xa_store_range() stores the same entry in a range of indices. If you do this, some of the other operations will behave in a slightly odd way. For example, marking the entry at one index may result in the entry being marked at some, but not all of the other indices. Storing into one index may result in the entry retrieved by some, but not all of the other indices changing.h]hXCalling xa_store_range() stores the same entry in a range of indices. If you do this, some of the other operations will behave in a slightly odd way. For example, marking the entry at one index may result in the entry being marked at some, but not all of the other indices. Storing into one index may result in the entry retrieved by some, but not all of the other indices changing.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK\hjhhubh)}(hX2Sometimes you need to ensure that a subsequent call to xa_store() will not need to allocate memory. The xa_reserve() function will store a reserved entry at the indicated index. Users of the normal API will see this entry as containing ``NULL``. If you do not need to use the reserved entry, you can call xa_release() to remove the unused entry. If another user has stored to the entry in the meantime, xa_release() will do nothing; if instead you want the entry to become ``NULL``, you should use xa_erase(). Using xa_insert() on a reserved entry will fail.h](hSometimes you need to ensure that a subsequent call to xa_store() will not need to allocate memory. The xa_reserve() function will store a reserved entry at the indicated index. Users of the normal API will see this entry as containing }(hjhhhNhNubjG)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh. If you do not need to use the reserved entry, you can call xa_release() to remove the unused entry. If another user has stored to the entry in the meantime, xa_release() will do nothing; if instead you want the entry to become }(hjhhhNhNubjG)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubhM, you should use xa_erase(). Using xa_insert() on a reserved entry will fail.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKchjhhubh)}(hWIf all entries in the array are ``NULL``, the xa_empty() function will return ``true``.h](h If all entries in the array are }(hjhhhNhNubjG)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh&, the xa_empty() function will return }(hjhhhNhNubjG)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKmhjhhubh)}(hFinally, you can remove all entries from an XArray by calling xa_destroy(). If the XArray entries are pointers, you may wish to free the entries first. You can do this by iterating over all present entries in the XArray using the xa_for_each() iterator.h]hFinally, you can remove all entries from an XArray by calling xa_destroy(). If the XArray entries are pointers, you may wish to free the entries first. You can do this by iterating over all present entries in the XArray using the xa_for_each() iterator.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKphjhhubh)}(hhh](h)}(h Search Marksh]h Search Marks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKvubh)}(hEach entry in the array has three bits associated with it called marks. Each mark may be set or cleared independently of the others. You can iterate over marked entries by using the xa_for_each_marked() iterator.h]hEach entry in the array has three bits associated with it called marks. Each mark may be set or cleared independently of the others. You can iterate over marked entries by using the xa_for_each_marked() iterator.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKxhjhhubh)}(hXYou can enquire whether a mark is set on an entry by using xa_get_mark(). If the entry is not ``NULL``, you can set a mark on it by using xa_set_mark() and remove the mark from an entry by calling xa_clear_mark(). You can ask whether any entry in the XArray has a particular mark set by calling xa_marked(). Erasing an entry from the XArray causes all marks associated with that entry to be cleared.h](h_You can enquire whether a mark is set on an entry by using xa_get_mark(). If the entry is not }(hj4hhhNhNubjG)}(h``NULL``h]hNULL}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj4ubhX+, you can set a mark on it by using xa_set_mark() and remove the mark from an entry by calling xa_clear_mark(). You can ask whether any entry in the XArray has a particular mark set by calling xa_marked(). Erasing an entry from the XArray causes all marks associated with that entry to be cleared.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK|hjhhubh)}(hSetting or clearing a mark on any index of a multi-index entry will affect all indices covered by that entry. Querying the mark on any index will return the same result.h]hSetting or clearing a mark on any index of a multi-index entry will affect all indices covered by that entry. Querying the mark on any index will return the same result.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hXThere is no way to iterate over entries which are not marked; the data structure does not allow this to be implemented efficiently. There are not currently iterators to search for logical combinations of bits (eg iterate over all entries which have both ``XA_MARK_1`` and ``XA_MARK_2`` set, or iterate over all entries which have ``XA_MARK_0`` or ``XA_MARK_2`` set). It would be possible to add these if a user arises.h](hThere is no way to iterate over entries which are not marked; the data structure does not allow this to be implemented efficiently. There are not currently iterators to search for logical combinations of bits (eg iterate over all entries which have both }(hjbhhhNhNubjG)}(h ``XA_MARK_1``h]h XA_MARK_1}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjbubh and }(hjbhhhNhNubjG)}(h ``XA_MARK_2``h]h XA_MARK_2}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjbubh- set, or iterate over all entries which have }(hjbhhhNhNubjG)}(h ``XA_MARK_0``h]h XA_MARK_0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjbubh or }(hjbhhhNhNubjG)}(h ``XA_MARK_2``h]h XA_MARK_2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjbubh; set). It would be possible to add these if a user arises.}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h] search-marksah ]h"] search marksah$]h&]uh1hhjhhhhhKvubh)}(hhh](h)}(hAllocating XArraysh]hAllocating XArrays}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hIf you use DEFINE_XARRAY_ALLOC() to define the XArray, or initialise it by passing ``XA_FLAGS_ALLOC`` to xa_init_flags(), the XArray changes to track whether entries are in use or not.h](hSIf you use DEFINE_XARRAY_ALLOC() to define the XArray, or initialise it by passing }(hjhhhNhNubjG)}(h``XA_FLAGS_ALLOC``h]hXA_FLAGS_ALLOC}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubhS to xa_init_flags(), the XArray changes to track whether entries are in use or not.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hYou can call xa_alloc() to store the entry at an unused index in the XArray. If you need to modify the array from interrupt context, you can use xa_alloc_bh() or xa_alloc_irq() to disable interrupts while allocating the ID.h]hYou can call xa_alloc() to store the entry at an unused index in the XArray. If you need to modify the array from interrupt context, you can use xa_alloc_bh() or xa_alloc_irq() to disable interrupts while allocating the ID.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hX$Using xa_store(), xa_cmpxchg() or xa_insert() will also mark the entry as being allocated. Unlike a normal XArray, storing ``NULL`` will mark the entry as being in use, like xa_reserve(). To free an entry, use xa_erase() (or xa_release() if you only want to free the entry if it's ``NULL``).h](h|Using xa_store(), xa_cmpxchg() or xa_insert() will also mark the entry as being allocated. Unlike a normal XArray, storing }(hjhhhNhNubjG)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh will mark the entry as being in use, like xa_reserve(). To free an entry, use xa_erase() (or xa_release() if you only want to free the entry if it’s }(hjhhhNhNubjG)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hX4By default, the lowest free entry is allocated starting from 0. If you want to allocate entries starting at 1, it is more efficient to use DEFINE_XARRAY_ALLOC1() or ``XA_FLAGS_ALLOC1``. If you want to allocate IDs up to a maximum, then wrap back around to the lowest free ID, you can use xa_alloc_cyclic().h](hBy default, the lowest free entry is allocated starting from 0. If you want to allocate entries starting at 1, it is more efficient to use DEFINE_XARRAY_ALLOC1() or }(hj1hhhNhNubjG)}(h``XA_FLAGS_ALLOC1``h]hXA_FLAGS_ALLOC1}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj1ubh{. If you want to allocate IDs up to a maximum, then wrap back around to the lowest free ID, you can use xa_alloc_cyclic().}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hYou cannot use ``XA_MARK_0`` with an allocating XArray as this mark is used to track whether an entry is free or not. The other marks are available for your use.h](hYou cannot use }(hjQhhhNhNubjG)}(h ``XA_MARK_0``h]h XA_MARK_0}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjQubh with an allocating XArray as this mark is used to track whether an entry is free or not. The other marks are available for your use.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]allocating-xarraysah ]h"]allocating xarraysah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hMemory allocationh]hMemory allocation}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhhhhhKubh)}(hX The xa_store(), xa_cmpxchg(), xa_alloc(), xa_reserve() and xa_insert() functions take a gfp_t parameter in case the XArray needs to allocate memory to store this entry. If the entry is being deleted, no memory allocation needs to be performed, and the GFP flags specified will be ignored.h]hX The xa_store(), xa_cmpxchg(), xa_alloc(), xa_reserve() and xa_insert() functions take a gfp_t parameter in case the XArray needs to allocate memory to store this entry. If the entry is being deleted, no memory allocation needs to be performed, and the GFP flags specified will be ignored.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjyhhubh)}(hX4It is possible for no memory to be allocatable, particularly if you pass a restrictive set of GFP flags. In that case, the functions return a special value which can be turned into an errno using xa_err(). If you don't need to know exactly which error occurred, using xa_is_err() is slightly more efficient.h]hX6It is possible for no memory to be allocatable, particularly if you pass a restrictive set of GFP flags. In that case, the functions return a special value which can be turned into an errno using xa_err(). If you don’t need to know exactly which error occurred, using xa_is_err() is slightly more efficient.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjyhhubeh}(h]memory-allocationah ]h"]memory allocationah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hLockingh]hLocking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hWhen using the Normal API, you do not have to worry about locking. The XArray uses RCU and an internal spinlock to synchronise access:h]hWhen using the Normal API, you do not have to worry about locking. The XArray uses RCU and an internal spinlock to synchronise access:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubhdefinition_list)}(hhh](hdefinition_list_item)}(h+No lock needed: * xa_empty() * xa_marked() h](hterm)}(hNo lock needed:h]hNo lock needed:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubh definition)}(hhh]h bullet_list)}(hhh](h list_item)}(h xa_empty()h]h)}(hjh]h xa_empty()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h xa_marked() h]h)}(h xa_marked()h]h xa_marked()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]bullet*uh1jhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hTakes RCU read lock: * xa_load() * xa_for_each() * xa_for_each_start() * xa_for_each_range() * xa_find() * xa_find_after() * xa_extract() * xa_get_mark() h](j)}(hTakes RCU read lock:h]hTakes RCU read lock:}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj7ubj)}(hhh]j)}(hhh](j)}(h xa_load()h]h)}(hjQh]h xa_load()}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjOubah}(h]h ]h"]h$]h&]uh1jhjLubj)}(h xa_for_each()h]h)}(hjhh]h xa_for_each()}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjfubah}(h]h ]h"]h$]h&]uh1jhjLubj)}(hxa_for_each_start()h]h)}(hjh]hxa_for_each_start()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj}ubah}(h]h ]h"]h$]h&]uh1jhjLubj)}(hxa_for_each_range()h]h)}(hjh]hxa_for_each_range()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjLubj)}(h xa_find()h]h)}(hjh]h xa_find()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjLubj)}(hxa_find_after()h]h)}(hjh]hxa_find_after()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjLubj)}(h xa_extract()h]h)}(hjh]h xa_extract()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjLubj)}(hxa_get_mark() h]h)}(h xa_get_mark()h]h xa_get_mark()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]j)j*uh1jhhhKhjIubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhhhKhjhhubj)}(hXTakes xa_lock internally: * xa_store() * xa_store_bh() * xa_store_irq() * xa_insert() * xa_insert_bh() * xa_insert_irq() * xa_erase() * xa_erase_bh() * xa_erase_irq() * xa_cmpxchg() * xa_cmpxchg_bh() * xa_cmpxchg_irq() * xa_store_range() * xa_alloc() * xa_alloc_bh() * xa_alloc_irq() * xa_reserve() * xa_reserve_bh() * xa_reserve_irq() * xa_destroy() * xa_set_mark() * xa_clear_mark() h](j)}(hTakes xa_lock internally:h]hTakes xa_lock internally:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hhh]j)}(hhh](j)}(h xa_store()h]h)}(hj4h]h xa_store()}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj2ubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(h xa_store_bh()h]h)}(hjKh]h xa_store_bh()}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjIubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(hxa_store_irq()h]h)}(hjbh]hxa_store_irq()}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj`ubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(h xa_insert()h]h)}(hjyh]h xa_insert()}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjwubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(hxa_insert_bh()h]h)}(hjh]hxa_insert_bh()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(hxa_insert_irq()h]h)}(hjh]hxa_insert_irq()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(h xa_erase()h]h)}(hjh]h xa_erase()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(h xa_erase_bh()h]h)}(hjh]h xa_erase_bh()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(hxa_erase_irq()h]h)}(hjh]hxa_erase_irq()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(h xa_cmpxchg()h]h)}(hjh]h xa_cmpxchg()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(hxa_cmpxchg_bh()h]h)}(hjh]hxa_cmpxchg_bh()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(hxa_cmpxchg_irq()h]h)}(hj1h]hxa_cmpxchg_irq()}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(hxa_store_range()h]h)}(hjHh]hxa_store_range()}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjFubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(h xa_alloc()h]h)}(hj_h]h xa_alloc()}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj]ubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(h xa_alloc_bh()h]h)}(hjvh]h xa_alloc_bh()}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjtubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(hxa_alloc_irq()h]h)}(hjh]hxa_alloc_irq()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(h xa_reserve()h]h)}(hjh]h xa_reserve()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(hxa_reserve_bh()h]h)}(hjh]hxa_reserve_bh()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(hxa_reserve_irq()h]h)}(hjh]hxa_reserve_irq()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(h xa_destroy()h]h)}(hjh]h xa_destroy()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(h xa_set_mark()h]h)}(hjh]h xa_set_mark()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(hxa_clear_mark() h]h)}(hxa_clear_mark()h]hxa_clear_mark()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]j)j*uh1jhhhKhj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhKhjhhubj)}(hAssumes xa_lock held on entry: * __xa_store() * __xa_insert() * __xa_erase() * __xa_cmpxchg() * __xa_alloc() * __xa_set_mark() * __xa_clear_mark() h](j)}(hAssumes xa_lock held on entry:h]hAssumes xa_lock held on entry:}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj?ubj)}(hhh]j)}(hhh](j)}(h __xa_store()h]h)}(hjYh]h __xa_store()}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjWubah}(h]h ]h"]h$]h&]uh1jhjTubj)}(h __xa_insert()h]h)}(hjph]h __xa_insert()}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjnubah}(h]h ]h"]h$]h&]uh1jhjTubj)}(h __xa_erase()h]h)}(hjh]h __xa_erase()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjTubj)}(h__xa_cmpxchg()h]h)}(hjh]h__xa_cmpxchg()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjTubj)}(h __xa_alloc()h]h)}(hjh]h __xa_alloc()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjTubj)}(h__xa_set_mark()h]h)}(hjh]h__xa_set_mark()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjTubj)}(h__xa_clear_mark() h]h)}(h__xa_clear_mark()h]h__xa_clear_mark()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]j)j*uh1jhhhKhjQubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhhhKhjhhubeh}(h]h ]h"]h$]h&]uh1jhjhhhNhNubh)}(hXIf you want to take advantage of the lock to protect the data structures that you are storing in the XArray, you can call xa_lock() before calling xa_load(), then take a reference count on the object you have found before calling xa_unlock(). This will prevent stores from removing the object from the array between looking up the object and incrementing the refcount. You can also use RCU to avoid dereferencing freed memory, but an explanation of that is beyond the scope of this document.h]hXIf you want to take advantage of the lock to protect the data structures that you are storing in the XArray, you can call xa_lock() before calling xa_load(), then take a reference count on the object you have found before calling xa_unlock(). This will prevent stores from removing the object from the array between looking up the object and incrementing the refcount. You can also use RCU to avoid dereferencing freed memory, but an explanation of that is beyond the scope of this document.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hThe XArray does not disable interrupts or softirqs while modifying the array. It is safe to read the XArray from interrupt or softirq context as the RCU lock provides enough protection.h]hThe XArray does not disable interrupts or softirqs while modifying the array. It is safe to read the XArray from interrupt or softirq context as the RCU lock provides enough protection.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hIf, for example, you want to store entries in the XArray in process context and then erase them in softirq context, you can do that this way::h]hIf, for example, you want to store entries in the XArray in process context and then erase them in softirq context, you can do that this way:}(hj- hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh literal_block)}(hX9void foo_init(struct foo *foo) { xa_init_flags(&foo->array, XA_FLAGS_LOCK_BH); } int foo_store(struct foo *foo, unsigned long index, void *entry) { int err; xa_lock_bh(&foo->array); err = xa_err(__xa_store(&foo->array, index, entry, GFP_KERNEL)); if (!err) foo->count++; xa_unlock_bh(&foo->array); return err; } /* foo_erase() is only called from softirq context */ void foo_erase(struct foo *foo, unsigned long index) { xa_lock(&foo->array); __xa_erase(&foo->array, index); foo->count--; xa_unlock(&foo->array); }h]hX9void foo_init(struct foo *foo) { xa_init_flags(&foo->array, XA_FLAGS_LOCK_BH); } int foo_store(struct foo *foo, unsigned long index, void *entry) { int err; xa_lock_bh(&foo->array); err = xa_err(__xa_store(&foo->array, index, entry, GFP_KERNEL)); if (!err) foo->count++; xa_unlock_bh(&foo->array); return err; } /* foo_erase() is only called from softirq context */ void foo_erase(struct foo *foo, unsigned long index) { xa_lock(&foo->array); __xa_erase(&foo->array, index); foo->count--; xa_unlock(&foo->array); }}hj= sbah}(h]h ]h"]h$]h&]hhuh1j; hhhKhjhhubh)}(hIf you are going to modify the XArray from interrupt or softirq context, you need to initialise the array using xa_init_flags(), passing ``XA_FLAGS_LOCK_IRQ`` or ``XA_FLAGS_LOCK_BH``.h](hIf you are going to modify the XArray from interrupt or softirq context, you need to initialise the array using xa_init_flags(), passing }(hjK hhhNhNubjG)}(h``XA_FLAGS_LOCK_IRQ``h]hXA_FLAGS_LOCK_IRQ}(hjS hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjK ubh or }(hjK hhhNhNubjG)}(h``XA_FLAGS_LOCK_BH``h]hXA_FLAGS_LOCK_BH}(hje hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjK ubh.}(hjK hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(hThe above example also shows a common pattern of wanting to extend the coverage of the xa_lock on the store side to protect some statistics associated with the array.h]hThe above example also shows a common pattern of wanting to extend the coverage of the xa_lock on the store side to protect some statistics associated with the array.}(hj} hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(hX}Sharing the XArray with interrupt context is also possible, either using xa_lock_irqsave() in both the interrupt handler and process context, or xa_lock_irq() in process context and xa_lock() in the interrupt handler. Some of the more common patterns have helper functions such as xa_store_bh(), xa_store_irq(), xa_erase_bh(), xa_erase_irq(), xa_cmpxchg_bh() and xa_cmpxchg_irq().h]hX}Sharing the XArray with interrupt context is also possible, either using xa_lock_irqsave() in both the interrupt handler and process context, or xa_lock_irq() in process context and xa_lock() in the interrupt handler. Some of the more common patterns have helper functions such as xa_store_bh(), xa_store_irq(), xa_erase_bh(), xa_erase_irq(), xa_cmpxchg_bh() and xa_cmpxchg_irq().}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjhhubh)}(hX<Sometimes you need to protect access to the XArray with a mutex because that lock sits above another mutex in the locking hierarchy. That does not entitle you to use functions like __xa_erase() without taking the xa_lock; the xa_lock is used for lockdep validation and will be used for other purposes in the future.h]hX<Sometimes you need to protect access to the XArray with a mutex because that lock sits above another mutex in the locking hierarchy. That does not entitle you to use functions like __xa_erase() without taking the xa_lock; the xa_lock is used for lockdep validation and will be used for other purposes in the future.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM(hjhhubh)}(hX The __xa_set_mark() and __xa_clear_mark() functions are also available for situations where you look up an entry and want to atomically set or clear a mark. It may be more efficient to use the advanced API in this case, as it will save you from walking the tree twice.h]hX The __xa_set_mark() and __xa_clear_mark() functions are also available for situations where you look up an entry and want to atomically set or clear a mark. It may be more efficient to use the advanced API in this case, as it will save you from walking the tree twice.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM.hjhhubeh}(h]lockingah ]h"]lockingah$]h&]uh1hhjhhhhhKubeh}(h] normal-apiah ]h"] normal apiah$]h&]uh1hhhhhhhhK hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj$ ubhK if it is worth retrying the operation (i.e. that there was a memory error }(hj$ hhhNhNubhemphasis)}(h*and*h]hand}(hjR hhhNhNubah}(h]h ]h"]h$]h&]uh1jP hj$ ubh more memory was allocated). If it has previously allocated memory, and that memory wasn’t used, and there is no error (or some error that isn’t }(hj$ hhhNhNubjG)}(h ``ENOMEM``h]hENOMEM}(hjd hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj$ ubh5), then it will free the memory previously allocated.}(hj$ hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMShj hhubh)}(hhh](h)}(hInternal Entriesh]hInternal Entries}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj| hhhhhM`ubh)}(hXThe XArray reserves some entries for its own purposes. These are never exposed through the normal API, but when using the advanced API, it's possible to see them. Usually the best way to handle them is to pass them to xas_retry(), and retry the operation if it returns ``true``.h](hXThe XArray reserves some entries for its own purposes. These are never exposed through the normal API, but when using the advanced API, it’s possible to see them. Usually the best way to handle them is to pass them to xas_retry(), and retry the operation if it returns }(hj hhhNhNubjG)}(h``true``h]htrue}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMbhj| hhubhtable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hj ubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hj ubj )}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j hj ubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]h)}(hNameh]hName}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMjhj ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(hTesth]hTest}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMkhj ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(hUsageh]hUsage}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMlhj ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(hNodeh]hNode}(hj4 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMnhj1 ubah}(h]h ]h"]h$]h&]uh1j hj. ubj )}(hhh]h)}(h xa_is_node()h]h xa_is_node()}(hjK hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMohjH ubah}(h]h ]h"]h$]h&]uh1j hj. ubj )}(hhh]h)}(hBAn XArray node. May be visible when using a multi-index xa_state.h]hBAn XArray node. May be visible when using a multi-index xa_state.}(hjb hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMphj_ ubah}(h]h ]h"]h$]h&]uh1j hj. ubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(hSiblingh]hSibling}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMrhj ubah}(h]h ]h"]h$]h&]uh1j hj| ubj )}(hhh]h)}(hxa_is_sibling()h]hxa_is_sibling()}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMshj ubah}(h]h ]h"]h$]h&]uh1j hj| ubj )}(hhh]h)}(htA non-canonical entry for a multi-index entry. The value indicates which slot in this node has the canonical entry.h]htA non-canonical entry for a multi-index entry. The value indicates which slot in this node has the canonical entry.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMthj ubah}(h]h ]h"]h$]h&]uh1j hj| ubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(hRetryh]hRetry}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMwhj ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(h xa_is_retry()h]h xa_is_retry()}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMxhj ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(hThis entry is currently being modified by a thread which has the xa_lock. The node containing this entry may be freed at the end of this RCU period. You should restart the lookup from the head of the array.h]hThis entry is currently being modified by a thread which has the xa_lock. The node containing this entry may be freed at the end of this RCU period. You should restart the lookup from the head of the array.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMyhj ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(hZeroh]hZero}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM~hj ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(h xa_is_zero()h]h xa_is_zero()}(hj5 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj2 ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(hZero entries appear as ``NULL`` through the Normal API, but occupy an entry in the XArray which can be used to reserve the index for future use. This is used by allocating XArrays for allocated entries which are ``NULL``.h](hZero entries appear as }(hjL hhhNhNubjG)}(h``NULL``h]hNULL}(hjT hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjL ubh through the Normal API, but occupy an entry in the XArray which can be used to reserve the index for future use. This is used by allocating XArrays for allocated entries which are }(hjL hhhNhNubjG)}(h``NULL``h]hNULL}(hjf hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjL ubh.}(hjL hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjI ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]colsKuh1j hj ubah}(h]h ]h"]h$]h&]uh1j hj| hhhNhNubh)}(hlOther internal entries may be added in the future. As far as possible, they will be handled by xas_retry().h]hlOther internal entries may be added in the future. As far as possible, they will be handled by xas_retry().}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj| hhubeh}(h]internal-entriesah ]h"]internal entriesah$]h&]uh1hhj hhhhhM`ubh)}(hhh](h)}(hAdditional functionalityh]hAdditional functionality}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhMubh)}(hThe xas_create_range() function allocates all the necessary memory to store every entry in a range. It will set ENOMEM in the xa_state if it cannot allocate memory.h]hThe xas_create_range() function allocates all the necessary memory to store every entry in a range. It will set ENOMEM in the xa_state if it cannot allocate memory.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubh)}(hXYou can use xas_init_marks() to reset the marks on an entry to their default state. This is usually all marks clear, unless the XArray is marked with ``XA_FLAGS_TRACK_FREE``, in which case mark 0 is set and all other marks are clear. Replacing one entry with another using xas_store() will not reset the marks on that entry; if you want the marks reset, you should do that explicitly.h](hYou can use xas_init_marks() to reset the marks on an entry to their default state. This is usually all marks clear, unless the XArray is marked with }(hj hhhNhNubjG)}(h``XA_FLAGS_TRACK_FREE``h]hXA_FLAGS_TRACK_FREE}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj ubh, in which case mark 0 is set and all other marks are clear. Replacing one entry with another using xas_store() will not reset the marks on that entry; if you want the marks reset, you should do that explicitly.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj hhubh)}(hThe xas_load() will walk the xa_state as close to the entry as it can. If you know the xa_state has already been walked to the entry and need to check that the entry hasn't changed, you can use xas_reload() to save a function call.h]hThe xas_load() will walk the xa_state as close to the entry as it can. If you know the xa_state has already been walked to the entry and need to check that the entry hasn’t changed, you can use xas_reload() to save a function call.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubh)}(hXIf you need to move to a different index in the XArray, call xas_set(). This resets the cursor to the top of the tree, which will generally make the next operation walk the cursor to the desired spot in the tree. If you want to move to the next or previous index, call xas_next() or xas_prev(). Setting the index does not walk the cursor around the array so does not require a lock to be held, while moving to the next or previous index does.h]hXIf you need to move to a different index in the XArray, call xas_set(). This resets the cursor to the top of the tree, which will generally make the next operation walk the cursor to the desired spot in the tree. If you want to move to the next or previous index, call xas_next() or xas_prev(). Setting the index does not walk the cursor around the array so does not require a lock to be held, while moving to the next or previous index does.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubh)}(hXYou can search for the next present entry using xas_find(). This is the equivalent of both xa_find() and xa_find_after(); if the cursor has been walked to an entry, then it will find the next entry after the one currently referenced. If not, it will return the entry at the index of the xa_state. Using xas_next_entry() to move to the next present entry instead of xas_find() will save a function call in the majority of cases at the expense of emitting more inline code.h]hXYou can search for the next present entry using xas_find(). This is the equivalent of both xa_find() and xa_find_after(); if the cursor has been walked to an entry, then it will find the next entry after the one currently referenced. If not, it will return the entry at the index of the xa_state. Using xas_next_entry() to move to the next present entry instead of xas_find() will save a function call in the majority of cases at the expense of emitting more inline code.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubh)}(hX=The xas_find_marked() function is similar. If the xa_state has not been walked, it will return the entry at the index of the xa_state, if it is marked. Otherwise, it will return the first marked entry after the entry referenced by the xa_state. The xas_next_marked() function is the equivalent of xas_next_entry().h]hX=The xas_find_marked() function is similar. If the xa_state has not been walked, it will return the entry at the index of the xa_state, if it is marked. Otherwise, it will return the first marked entry after the entry referenced by the xa_state. The xas_next_marked() function is the equivalent of xas_next_entry().}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubh)}(hXWhen iterating over a range of the XArray using xas_for_each() or xas_for_each_marked(), it may be necessary to temporarily stop the iteration. The xas_pause() function exists for this purpose. After you have done the necessary work and wish to resume, the xa_state is in an appropriate state to continue the iteration after the entry you last processed. If you have interrupts disabled while iterating, then it is good manners to pause the iteration and reenable interrupts every ``XA_CHECK_SCHED`` entries.h](hXWhen iterating over a range of the XArray using xas_for_each() or xas_for_each_marked(), it may be necessary to temporarily stop the iteration. The xas_pause() function exists for this purpose. After you have done the necessary work and wish to resume, the xa_state is in an appropriate state to continue the iteration after the entry you last processed. If you have interrupts disabled while iterating, then it is good manners to pause the iteration and reenable interrupts every }(hj* hhhNhNubjG)}(h``XA_CHECK_SCHED``h]hXA_CHECK_SCHED}(hj2 hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj* ubh entries.}(hj* hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj hhubh)}(hThe xas_get_mark(), xas_set_mark() and xas_clear_mark() functions require the xa_state cursor to have been moved to the appropriate location in the XArray; they will do nothing if you have called xas_pause() or xas_set() immediately before.h]hThe xas_get_mark(), xas_set_mark() and xas_clear_mark() functions require the xa_state cursor to have been moved to the appropriate location in the XArray; they will do nothing if you have called xas_pause() or xas_set() immediately before.}(hjJ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubh)}(hYou can call xas_set_update() to have a callback function called each time the XArray updates a node. This is used by the page cache workingset code to maintain its list of nodes which contain only shadow entries.h]hYou can call xas_set_update() to have a callback function called each time the XArray updates a node. This is used by the page cache workingset code to maintain its list of nodes which contain only shadow entries.}(hjX hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubeh}(h]additional-functionalityah ]h"]additional functionalityah$]h&]uh1hhj hhhhhMubh)}(hhh](h)}(hMulti-Index Entriesh]hMulti-Index Entries}(hjq hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjn hhhhhMubh)}(hXAThe XArray has the ability to tie multiple indices together so that operations on one index affect all indices. For example, storing into any index will change the value of the entry retrieved from any index. Setting or clearing a mark on any index will set or clear the mark on every index that is tied together. The current implementation only allows tying ranges which are aligned powers of two together; eg indices 64-127 may be tied together, but 2-6 may not be. This may save substantial quantities of memory; for example tying 512 entries together will save over 4kB.h]hXAThe XArray has the ability to tie multiple indices together so that operations on one index affect all indices. For example, storing into any index will change the value of the entry retrieved from any index. Setting or clearing a mark on any index will set or clear the mark on every index that is tied together. The current implementation only allows tying ranges which are aligned powers of two together; eg indices 64-127 may be tied together, but 2-6 may not be. This may save substantial quantities of memory; for example tying 512 entries together will save over 4kB.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjn hhubh)}(hXLYou can create a multi-index entry by using XA_STATE_ORDER() or xas_set_order() followed by a call to xas_store(). Calling xas_load() with a multi-index xa_state will walk the xa_state to the right location in the tree, but the return value is not meaningful, potentially being an internal entry or ``NULL`` even when there is an entry stored within the range. Calling xas_find_conflict() will return the first entry within the range or ``NULL`` if there are no entries in the range. The xas_for_each_conflict() iterator will iterate over every entry which overlaps the specified range.h](hX+You can create a multi-index entry by using XA_STATE_ORDER() or xas_set_order() followed by a call to xas_store(). Calling xas_load() with a multi-index xa_state will walk the xa_state to the right location in the tree, but the return value is not meaningful, potentially being an internal entry or }(hj hhhNhNubjG)}(h``NULL``h]hNULL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj ubh even when there is an entry stored within the range. Calling xas_find_conflict() will return the first entry within the range or }(hj hhhNhNubjG)}(h``NULL``h]hNULL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj ubh if there are no entries in the range. The xas_for_each_conflict() iterator will iterate over every entry which overlaps the specified range.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjn hhubh)}(hXIf xas_load() encounters a multi-index entry, the xa_index in the xa_state will not be changed. When iterating over an XArray or calling xas_find(), if the initial index is in the middle of a multi-index entry, it will not be altered. Subsequent calls or iterations will move the index to the first index in the range. Each entry will only be returned once, no matter how many indices it occupies.h]hXIf xas_load() encounters a multi-index entry, the xa_index in the xa_state will not be changed. When iterating over an XArray or calling xas_find(), if the initial index is in the middle of a multi-index entry, it will not be altered. Subsequent calls or iterations will move the index to the first index in the range. Each entry will only be returned once, no matter how many indices it occupies.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjn hhubh)}(hUsing xas_next() or xas_prev() with a multi-index xa_state is not supported. Using either of these functions on a multi-index entry will reveal sibling entries; these should be skipped over by the caller.h]hUsing xas_next() or xas_prev() with a multi-index xa_state is not supported. Using either of these functions on a multi-index entry will reveal sibling entries; these should be skipped over by the caller.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjn hhubh)}(hXStoring ``NULL`` into any index of a multi-index entry will set the entry at every index to ``NULL`` and dissolve the tie. A multi-index entry can be split into entries occupying smaller ranges by calling xas_split_alloc() without the xa_lock held, followed by taking the lock and calling xas_split() or calling xas_try_split() with xa_lock. The difference between xas_split_alloc()+xas_split() and xas_try_alloc() is that xas_split_alloc() + xas_split() split the entry from the original order to the new order in one shot uniformly, whereas xas_try_split() iteratively splits the entry containing the index non-uniformly. For example, to split an order-9 entry, which takes 2^(9-6)=8 slots, assuming ``XA_CHUNK_SHIFT`` is 6, xas_split_alloc() + xas_split() need 8 xa_node. xas_try_split() splits the order-9 entry into 2 order-8 entries, then split one order-8 entry, based on the given index, to 2 order-7 entries, ..., and split one order-1 entry to 2 order-0 entries. When splitting the order-6 entry and a new xa_node is needed, xas_try_split() will try to allocate one if possible. As a result, xas_try_split() would only need 1 xa_node instead of 8.h](hStoring }(hj hhhNhNubjG)}(h``NULL``h]hNULL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj ubhL into any index of a multi-index entry will set the entry at every index to }(hj hhhNhNubjG)}(h``NULL``h]hNULL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj ubhX[ and dissolve the tie. A multi-index entry can be split into entries occupying smaller ranges by calling xas_split_alloc() without the xa_lock held, followed by taking the lock and calling xas_split() or calling xas_try_split() with xa_lock. The difference between xas_split_alloc()+xas_split() and xas_try_alloc() is that xas_split_alloc() + xas_split() split the entry from the original order to the new order in one shot uniformly, whereas xas_try_split() iteratively splits the entry containing the index non-uniformly. For example, to split an order-9 entry, which takes 2^(9-6)=8 slots, assuming }(hj hhhNhNubjG)}(h``XA_CHUNK_SHIFT``h]hXA_CHUNK_SHIFT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj ubhX is 6, xas_split_alloc() + xas_split() need 8 xa_node. xas_try_split() splits the order-9 entry into 2 order-8 entries, then split one order-8 entry, based on the given index, to 2 order-7 entries, ..., and split one order-1 entry to 2 order-0 entries. When splitting the order-6 entry and a new xa_node is needed, xas_try_split() will try to allocate one if possible. As a result, xas_try_split() would only need 1 xa_node instead of 8.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjn hhubeh}(h]multi-index-entriesah ]h"]multi-index entriesah$]h&]uh1hhj hhhhhMubeh}(h] advanced-apiah ]h"] advanced apiah$]h&]uh1hhhhhhhhM4ubh)}(hhh](h)}(hFunctions and structuresh]hFunctions and structures}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hhhhhMubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singlexa_mk_value (C function) c.xa_mk_valuehNtauh1j@hj/hhhNhNubhdesc)}(hhh](hdesc_signature)}(h$void * xa_mk_value (unsigned long v)h]hdesc_signature_line)}(h"void *xa_mk_value(unsigned long v)h](hdesc_sig_keyword_type)}(hvoidh]hvoid}(hjdhhhNhNubah}(h]h ]ktah"]h$]h&]uh1jbhj^hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhK4ubhdesc_sig_space)}(h h]h }(hjvhhhNhNubah}(h]h ]wah"]h$]h&]uh1jthj^hhhjshK4ubhdesc_sig_punctuation)}(hj*h]h*}(hjhhhNhNubah}(h]h ]pah"]h$]h&]uh1jhj^hhhjshK4ubh desc_name)}(h xa_mk_valueh]h desc_sig_name)}(h xa_mk_valueh]h xa_mk_value}(hjhhhNhNubah}(h]h ]nah"]h$]h&]uh1jhjubah}(h]h ](sig-namedescnameeh"]h$]h&]hhuh1jhj^hhhjshK4ubhdesc_parameterlist)}(h(unsigned long v)h]hdesc_parameter)}(hunsigned long vh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hvh]hv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhj^hhhjshK4ubeh}(h]h ]h"]h$]h&]hhƌ add_permalinkuh1j\sphinx_line_type declaratorhjXhhhjshK4ubah}(h]jOah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1jVhjshK4hjShhubh desc_content)}(hhh]h)}(h'Create an XArray entry from an integer.h]h'Create an XArray entry from an integer.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhK4hj)hhubah}(h]h ]h"]h$]h&]uh1j'hjShhhjshK4ubeh}(h]h ](cfunctioneh"]h$]h&]domainjDobjtypejEdesctypejEnoindex noindexentrynocontentsentryuh1jQhhhj/hNhNubh container)}(h**Parameters** ``unsigned long v`` Value to store in XArray. **Context** Any context. **Return** An entry suitable for storing in the XArray.h](h)}(h**Parameters**h]hstrong)}(hjWh]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjUubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhK8hjQubj)}(hhh]j)}(h.``unsigned long v`` Value to store in XArray. h](j)}(h``unsigned long v``h]jG)}(hjxh]hunsigned long v}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjvubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhK5hjrubj)}(hhh]h)}(hValue to store in XArray.h]hValue to store in XArray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK5hjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhK5hjoubah}(h]h ]h"]h$]h&]uh1jhjQubh)}(h **Context**h]jZ)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhK7hjQubh)}(h Any context.h]h Any context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhK7hjQubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhK9hjQubh)}(h,An entry suitable for storing in the XArray.h]h,An entry suitable for storing in the XArray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhK8hjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_to_value (C function) c.xa_to_valuehNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h-unsigned long xa_to_value (const void *entry)h]j])}(h,unsigned long xa_to_value(const void *entry)h](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKAubju)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhj-hKAubjc)}(hlongh]hlong}(hj<hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhj-hKAubju)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhj-hKAubj)}(h xa_to_valueh]j)}(h xa_to_valueh]h xa_to_value}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhj-hKAubj)}(h(const void *entry)h]j)}(hconst void *entryh](hdesc_sig_keyword)}(hconsth]hconst}(hjzhhhNhNubah}(h]h ]kah"]h$]h&]uh1jxhjtubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjtubjc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjtubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjtubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjpubah}(h]h ]h"]h$]h&]hhuh1jhjhhhj-hKAubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhj-hKAubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhj-hKAhjhhubj()}(hhh]h)}(h$Get value stored in an XArray entry.h]h$Get value stored in an XArray entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKAhjhhubah}(h]h ]h"]h$]h&]uh1j'hjhhhj-hKAubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(h**Parameters** ``const void *entry`` XArray entry. **Context** Any context. **Return** The value stored in the XArray entry.h](h)}(h**Parameters**h]jZ)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKEhjubj)}(hhh]j)}(h$``const void *entry`` XArray entry. h](j)}(h``const void *entry``h]jG)}(hj+h]hconst void *entry}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj)ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKBhj%ubj)}(hhh]h)}(h XArray entry.h]h XArray entry.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hKBhjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hKBhj"ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Context**h]jZ)}(hjfh]hContext}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjdubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKDhjubh)}(h Any context.h]h Any context.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKDhjubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKFhjubh)}(h%The value stored in the XArray entry.h]h%The value stored in the XArray entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKEhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_is_value (C function) c.xa_is_valuehNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h$bool xa_is_value (const void *entry)h]j])}(h#bool xa_is_value(const void *entry)h](jc)}(hboolh]hbool}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKMubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjhKMubj)}(h xa_is_valueh]j)}(h xa_is_valueh]h xa_is_value}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhKMubj)}(h(const void *entry)h]j)}(hconst void *entryh](jy)}(hj|h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj ubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj ubjc)}(hvoidh]hvoid}(hj*hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj ubju)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj ubj)}(hj*h]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hentryh]hentry}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjhhhjhKMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjhKMubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhKMhjhhubj()}(hhh]h)}(h!Determine if an entry is a value.h]h!Determine if an entry is a value.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKMhjzhhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjhKMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(h**Parameters** ``const void *entry`` XArray entry. **Context** Any context. **Return** True if the entry is a value, false if it is a pointer.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKQhjubj)}(hhh]j)}(h$``const void *entry`` XArray entry. h](j)}(h``const void *entry``h]jG)}(hjh]hconst void *entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKNhjubj)}(hhh]h)}(h XArray entry.h]h XArray entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKNhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKNhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Context**h]jZ)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKPhjubh)}(h Any context.h]h Any context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKPhjubh)}(h **Return**h]jZ)}(hj h]hReturn}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKRhjubh)}(h7True if the entry is a value, false if it is a pointer.h]h7True if the entry is a value, false if it is a pointer.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKQhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_tag_pointer (C function)c.xa_tag_pointerhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h2void * xa_tag_pointer (void *p, unsigned long tag)h]j])}(h0void *xa_tag_pointer(void *p, unsigned long tag)h](jc)}(hvoidh]hvoid}(hjehhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjahhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKYubju)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjahhhjshKYubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhjshKYubj)}(hxa_tag_pointerh]j)}(hxa_tag_pointerh]hxa_tag_pointer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjahhhjshKYubj)}(h(void *p, unsigned long tag)h](j)}(hvoid *ph](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long tagh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubjc)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(htagh]htag}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjahhhjshKYubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj]hhhjshKYubah}(h]jXah ](jj eh"]h$]h&]j$j%)j&huh1jVhjshKYhjZhhubj()}(hhh]h)}(h,Create an XArray entry for a tagged pointer.h]h,Create an XArray entry for a tagged pointer.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKYhjOhhubah}(h]h ]h"]h$]h&]uh1j'hjZhhhjshKYubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjjKjjjLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``void *p`` Plain pointer. ``unsigned long tag`` Tag value (0, 1 or 3). **Description** If the user of the XArray prefers, they can tag their pointers instead of storing value entries. Three tags are available (0, 1 and 3). These are distinct from the xa_mark_t as they are not replicated up through the array and cannot be searched for. **Context** Any context. **Return** An XArray entry.h](h)}(h**Parameters**h]jZ)}(hjth]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjrubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhK]hjnubj)}(hhh](j)}(h``void *p`` Plain pointer. h](j)}(h ``void *p``h]jG)}(hjh]hvoid *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKZhjubj)}(hhh]h)}(hPlain pointer.h]hPlain pointer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKZhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKZhjubj)}(h-``unsigned long tag`` Tag value (0, 1 or 3). h](j)}(h``unsigned long tag``h]jG)}(hjh]hunsigned long tag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhK[hjubj)}(hhh]h)}(hTag value (0, 1 or 3).h]hTag value (0, 1 or 3).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK[hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK[hjubeh}(h]h ]h"]h$]h&]uh1jhjnubh)}(h**Description**h]jZ)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhK]hjnubh)}(hIf the user of the XArray prefers, they can tag their pointers instead of storing value entries. Three tags are available (0, 1 and 3). These are distinct from the xa_mark_t as they are not replicated up through the array and cannot be searched for.h]hIf the user of the XArray prefers, they can tag their pointers instead of storing value entries. Three tags are available (0, 1 and 3). These are distinct from the xa_mark_t as they are not replicated up through the array and cannot be searched for.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhK\hjnubh)}(h **Context**h]jZ)}(hj.h]hContext}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj,ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKahjnubh)}(h Any context.h]h Any context.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKbhjnubh)}(h **Return**h]jZ)}(hjUh]hReturn}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjSubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKdhjnubh)}(hAn XArray entry.h]hAn XArray entry.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKchjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_untag_pointer (C function)c.xa_untag_pointerhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h%void * xa_untag_pointer (void *entry)h]j])}(h#void *xa_untag_pointer(void *entry)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKkubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjhKkubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKkubj)}(hxa_untag_pointerh]j)}(hxa_untag_pointerh]hxa_untag_pointer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhKkubj)}(h (void *entry)h]j)}(h void *entryh](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hentryh]hentry}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjhhhjhKkubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjhKkubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhKkhjhhubj()}(hhh]h)}(h*Turn an XArray entry into a plain pointer.h]h*Turn an XArray entry into a plain pointer.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKkhj4hhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjhKkubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjOjKjOjLjMjNuh1jQhhhj/hNhNubjP)}(h**Parameters** ``void *entry`` XArray entry. **Description** If you have stored a tagged pointer in the XArray, call this function to get the untagged version of the pointer. **Context** Any context. **Return** A pointer.h](h)}(h**Parameters**h]jZ)}(hjYh]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjWubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKohjSubj)}(hhh]j)}(h``void *entry`` XArray entry. h](j)}(h``void *entry``h]jG)}(hjxh]h void *entry}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjvubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKlhjrubj)}(hhh]h)}(h XArray entry.h]h XArray entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKlhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhKlhjoubah}(h]h ]h"]h$]h&]uh1jhjSubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKnhjSubh)}(hqIf you have stored a tagged pointer in the XArray, call this function to get the untagged version of the pointer.h]hqIf you have stored a tagged pointer in the XArray, call this function to get the untagged version of the pointer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKmhjSubh)}(h **Context**h]jZ)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKphjSubh)}(h Any context.h]h Any context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKqhjSubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKshjSubh)}(h A pointer.h]h A pointer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKrhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_pointer_tag (C function)c.xa_pointer_taghNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h)unsigned int xa_pointer_tag (void *entry)h]j])}(h(unsigned int xa_pointer_tag(void *entry)h](jc)}(hunsignedh]hunsigned}(hjFhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjBhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKzubju)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjBhhhjThKzubjc)}(hinth]hint}(hjchhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjBhhhjThKzubju)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjBhhhjThKzubj)}(hxa_pointer_tagh]j)}(hxa_pointer_tagh]hxa_pointer_tag}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjBhhhjThKzubj)}(h (void *entry)h]j)}(h void *entryh](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjBhhhjThKzubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj>hhhjThKzubah}(h]j9ah ](jj eh"]h$]h&]j$j%)j&huh1jVhjThKzhj;hhubj()}(hhh]h)}(h&Get the tag stored in an XArray entry.h]h&Get the tag stored in an XArray entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKzhjhhubah}(h]h ]h"]h$]h&]uh1j'hj;hhhjThKzubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJj jKj jLjMjNuh1jQhhhj/hNhNubjP)}(h**Parameters** ``void *entry`` XArray entry. **Description** If you have stored a tagged pointer in the XArray, call this function to get the tag of that pointer. **Context** Any context. **Return** A tag.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhK~hjubj)}(hhh]j)}(h``void *entry`` XArray entry. h](j)}(h``void *entry``h]jG)}(hj3h]h void *entry}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj1ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhK{hj-ubj)}(hhh]h)}(h XArray entry.h]h XArray entry.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhK{hjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhK{hj*ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjnh]h Description}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjlubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhK}hjubh)}(heIf you have stored a tagged pointer in the XArray, call this function to get the tag of that pointer.h]heIf you have stored a tagged pointer in the XArray, call this function to get the tag of that pointer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhK|hjubh)}(h **Context**h]jZ)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjubh)}(h Any context.h]h Any context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjubh)}(hA tag.h]hA tag.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_is_zero (C function) c.xa_is_zerohNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h#bool xa_is_zero (const void *entry)h]j])}(h"bool xa_is_zero(const void *entry)h](jc)}(hjh]hbool}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjhKubj)}(h xa_is_zeroh]j)}(h xa_is_zeroh]h xa_is_zero}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhKubj)}(h(const void *entry)h]j)}(hconst void *entryh](jy)}(hj|h]hconst}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj9ubju)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj9ubjc)}(hvoidh]hvoid}(hjXhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj9ubju)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj9ubj)}(hj*h]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj5ubah}(h]h ]h"]h$]h&]hhuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjhKubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhKhjhhubj()}(hhh]h)}(hIs the entry a zero entry?h]hIs the entry a zero entry?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjhhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjhKubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``const void *entry`` Entry retrieved from the XArray **Description** The normal API will return NULL as the contents of a slot containing a zero entry. You can only see zero entries by using the advanced API. **Return** ``true`` if the entry is a zero entry.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjubj)}(hhh]j)}(h6``const void *entry`` Entry retrieved from the XArray h](j)}(h``const void *entry``h]jG)}(hjh]hconst void *entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjubj)}(hhh]h)}(hEntry retrieved from the XArrayh]hEntry retrieved from the XArray}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hj'h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj%ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjubh)}(hThe normal API will return NULL as the contents of a slot containing a zero entry. You can only see zero entries by using the advanced API.h]hThe normal API will return NULL as the contents of a slot containing a zero entry. You can only see zero entries by using the advanced API.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjubh)}(h **Return**h]jZ)}(hjNh]hReturn}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjLubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjubh)}(h&``true`` if the entry is a zero entry.h](jG)}(h``true``h]htrue}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjdubh if the entry is a zero entry.}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_is_err (C function) c.xa_is_errhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h"bool xa_is_err (const void *entry)h]j])}(h!bool xa_is_err(const void *entry)h](jc)}(hjh]hbool}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjhKubj)}(h xa_is_errh]j)}(h xa_is_errh]h xa_is_err}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhKubj)}(h(const void *entry)h]j)}(hconst void *entryh](jy)}(hj|h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubjc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hentryh]hentry}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjhKubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhKhjhhubj()}(hhh]h)}(h4Report whether an XArray operation returned an errorh]h4Report whether an XArray operation returned an error}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjHhhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjhKubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjcjKjcjLjMjNuh1jQhhhj/hNhNubjP)}(hXx**Parameters** ``const void *entry`` Result from calling an XArray function **Description** If an XArray operation cannot complete an operation, it will return a special value indicating an error. This function tells you whether an error occurred; xa_err() tells you which error occurred. **Context** Any context. **Return** ``true`` if the entry indicates an error.h](h)}(h**Parameters**h]jZ)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjkubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjgubj)}(hhh]j)}(h=``const void *entry`` Result from calling an XArray function h](j)}(h``const void *entry``h]jG)}(hjh]hconst void *entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjubj)}(hhh]h)}(h&Result from calling an XArray functionh]h&Result from calling an XArray function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjgubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjgubh)}(hIf an XArray operation cannot complete an operation, it will return a special value indicating an error. This function tells you whether an error occurred; xa_err() tells you which error occurred.h]hIf an XArray operation cannot complete an operation, it will return a special value indicating an error. This function tells you whether an error occurred; xa_err() tells you which error occurred.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjgubh)}(h **Context**h]jZ)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjgubh)}(h Any context.h]h Any context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjgubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjgubh)}(h)``true`` if the entry indicates an error.h](jG)}(h``true``h]htrue}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj+ubh! if the entry indicates an error.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_err (C function)c.xa_errhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hint xa_err (void *entry)h]j])}(hint xa_err(void *entry)h](jc)}(hinth]hint}(hjhhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjdhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKubju)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjdhhhjvhKubj)}(hxa_errh]j)}(hxa_errh]hxa_err}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjdhhhjvhKubj)}(h (void *entry)h]j)}(h void *entryh](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjdhhhjvhKubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj`hhhjvhKubah}(h]j[ah ](jj eh"]h$]h&]j$j%)j&huh1jVhjvhKhj]hhubj()}(hhh]h)}(h$Turn an XArray result into an errno.h]h$Turn an XArray result into an errno.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjhhubah}(h]h ]h"]h$]h&]uh1j'hj]hhhjvhKubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``void *entry`` Result from calling an XArray function. **Description** If an XArray operation cannot complete an operation, it will return a special pointer value which encodes an errno. This function extracts the errno from the pointer value, or returns 0 if the pointer does not represent an errno. **Context** Any context. **Return** A negative errno or 0.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjubj)}(hhh]j)}(h8``void *entry`` Result from calling an XArray function. h](j)}(h``void *entry``h]jG)}(hj9h]h void *entry}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj7ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhj3ubj)}(hhh]h)}(h'Result from calling an XArray function.h]h'Result from calling an XArray function.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhKhjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhKhj0ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjth]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjrubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjubh)}(hIf an XArray operation cannot complete an operation, it will return a special pointer value which encodes an errno. This function extracts the errno from the pointer value, or returns 0 if the pointer does not represent an errno.h]hIf an XArray operation cannot complete an operation, it will return a special pointer value which encodes an errno. This function extracts the errno from the pointer value, or returns 0 if the pointer does not represent an errno.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjubh)}(h **Context**h]jZ)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjubh)}(h Any context.h]h Any context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjubh)}(hA negative errno or 0.h]hA negative errno or 0.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_limit (C struct) c.xa_limithNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hxa_limith]j])}(hstruct xa_limith](jy)}(hstructh]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjhKubj)}(hxa_limith]j)}(hjh]hxa_limit}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjhKubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhKhjhhubj()}(hhh]h)}(hRepresents a range of IDs.h]hRepresents a range of IDs.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjGhhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjhKubeh}(h]h ](jDstructeh"]h$]h&]jIjDjJjbjKjbjLjMjNuh1jQhhhj/hNhNubjP)}(h**Definition**:: struct xa_limit { u32 max; u32 min; }; **Members** ``max`` The maximum ID to allocate (inclusive). ``min`` The lowest ID to allocate (inclusive).h](h)}(h**Definition**::h](jZ)}(h**Definition**h]h Definition}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjjubh:}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjfubj< )}(h.struct xa_limit { u32 max; u32 min; };h]h.struct xa_limit { u32 max; u32 min; };}hjsbah}(h]h ]h"]h$]h&]hhuh1j; hW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjfubh)}(h **Members**h]jZ)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjfubj)}(hhh](j)}(h0``max`` The maximum ID to allocate (inclusive). h](j)}(h``max``h]jG)}(hjh]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjubj)}(hhh]h)}(h'The maximum ID to allocate (inclusive).h]h'The maximum ID to allocate (inclusive).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h.``min`` The lowest ID to allocate (inclusive).h](j)}(h``min``h]jG)}(hjh]hmin}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjubj)}(hhh]h)}(h&The lowest ID to allocate (inclusive).h]h&The lowest ID to allocate (inclusive).}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubh)}(h**Description**h]jZ)}(hj3h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj1ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhj/hhubh)}(hXThis structure is used either directly or via the XA_LIMIT() macro to communicate the range of IDs that are valid for allocation. Three common ranges are predefined for you: * xa_limit_32b - [0 - UINT_MAX] * xa_limit_31b - [0 - INT_MAX] * xa_limit_16b - [0 - USHRT_MAX]h]hXThis structure is used either directly or via the XA_LIMIT() macro to communicate the range of IDs that are valid for allocation. Three common ranges are predefined for you: * xa_limit_32b - [0 - UINT_MAX] * xa_limit_31b - [0 - INT_MAX] * xa_limit_16b - [0 - USHRT_MAX]}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhj/hhubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxarray (C struct)c.xarrayhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hxarrayh]j])}(h struct xarrayh](jy)}(hj h]hstruct}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjmhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjmhhhj~hKubj)}(hxarrayh]j)}(hjkh]hxarray}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjmhhhj~hKubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjihhhj~hKubah}(h]jdah ](jj eh"]h$]h&]j$j%)j&huh1jVhj~hKhjfhhubj()}(hhh]h)}(hThe anchor of the XArray.h]hThe anchor of the XArray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j'hjfhhhj~hKubeh}(h]h ](jDstructeh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(h**Definition**:: struct xarray { spinlock_t xa_lock; }; **Members** ``xa_lock`` Lock that protects the contents of the XArray.h](h)}(h**Definition**::h](jZ)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM!hjubj< )}(h*struct xarray { spinlock_t xa_lock; };h]h*struct xarray { spinlock_t xa_lock; };}hjsbah}(h]h ]h"]h$]h&]hhuh1j; hW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM#hjubh)}(h **Members**h]jZ)}(hj h]hMembers}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM'hjubj)}(hhh]j)}(h:``xa_lock`` Lock that protects the contents of the XArray.h](j)}(h ``xa_lock``h]jG)}(hj h]hxa_lock}(hj" hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj ubj)}(hhh]h)}(h.Lock that protects the contents of the XArray.h]h.Lock that protects the contents of the XArray.}(hj9 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj6 ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj5 hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubh)}(h**Description**h]jZ)}(hjc h]h Description}(hje hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhja ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM"hj/hhubh)}(hTo use the xarray, define it statically or embed it in your data structure. It is a very small data structure, so it does not usually make sense to allocate it separately and keep a pointer to it in your data structure.h]hTo use the xarray, define it statically or embed it in your data structure. It is a very small data structure, so it does not usually make sense to allocate it separately and keep a pointer to it in your data structure.}(hjy hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj/hhubh)}(hDYou may use the xa_lock to protect your own data structures as well.h]hDYou may use the xa_lock to protect your own data structures as well.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM#hj/hhubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMDEFINE_XARRAY_FLAGS (C macro)c.DEFINE_XARRAY_FLAGShNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hDEFINE_XARRAY_FLAGSh]j])}(hDEFINE_XARRAY_FLAGSh]j)}(hDEFINE_XARRAY_FLAGSh]j)}(hj h]hDEFINE_XARRAY_FLAGS}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM:ubah}(h]h ]h"]h$]h&]hhjuh1j\jjhj hhhj hM:ubah}(h]j ah ](jj eh"]h$]h&]j$j%)j&huh1jVhj hM:hj hhubj()}(hhh]h}(h]h ]h"]h$]h&]uh1j'hj hhhj hM:ubeh}(h]h ](jDmacroeh"]h$]h&]jIjDjJj jKj jLjMjNuh1jQhhhj/hNhNubh)}(h%``DEFINE_XARRAY_FLAGS (name, flags)``h]jG)}(hj h]h!DEFINE_XARRAY_FLAGS (name, flags)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM<hj/hhubh block_quote)}(h$Define an XArray with custom flags. h]h)}(h#Define an XArray with custom flags.h]h#Define an XArray with custom flags.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM:hj ubah}(h]h ]h"]h$]h&]uh1j hj!hM:hj/hhubjP)}(hXl**Parameters** ``name`` A string that names your XArray. ``flags`` XA_FLAG values. **Description** This is intended for file scope definitions of XArrays. It declares and initialises an empty XArray with the chosen name and flags. It is equivalent to calling xa_init_flags() on the array, but it does the initialisation at compiletime instead of runtime.h](h)}(h**Parameters**h]jZ)}(hj!h]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj!ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM>hj!ubj)}(hhh](j)}(h*``name`` A string that names your XArray. h](j)}(h``name``h]jG)}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj:!ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM;hj6!ubj)}(hhh]h)}(h A string that names your XArray.h]h A string that names your XArray.}(hjU!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQ!hM;hjR!ubah}(h]h ]h"]h$]h&]uh1jhj6!ubeh}(h]h ]h"]h$]h&]uh1jhjQ!hM;hj3!ubj)}(h``flags`` XA_FLAG values. h](j)}(h ``flags``h]jG)}(hju!h]hflags}(hjw!hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjs!ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM<hjo!ubj)}(hhh]h)}(hXA_FLAG values.h]hXA_FLAG values.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hM<hj!ubah}(h]h ]h"]h$]h&]uh1jhjo!ubeh}(h]h ]h"]h$]h&]uh1jhj!hM<hj3!ubeh}(h]h ]h"]h$]h&]uh1jhj!ubh)}(h**Description**h]jZ)}(hj!h]h Description}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj!ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM>hj!ubh)}(hXThis is intended for file scope definitions of XArrays. It declares and initialises an empty XArray with the chosen name and flags. It is equivalent to calling xa_init_flags() on the array, but it does the initialisation at compiletime instead of runtime.h]hXThis is intended for file scope definitions of XArrays. It declares and initialises an empty XArray with the chosen name and flags. It is equivalent to calling xa_init_flags() on the array, but it does the initialisation at compiletime instead of runtime.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM=hj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMDEFINE_XARRAY (C macro)c.DEFINE_XARRAYhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h DEFINE_XARRAYh]j])}(h DEFINE_XARRAYh]j)}(h DEFINE_XARRAYh]j)}(hj!h]h DEFINE_XARRAY}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj!hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMGubah}(h]h ]h"]h$]h&]hhjuh1j\jjhj!hhhj "hMGubah}(h]j!ah ](jj eh"]h$]h&]j$j%)j&huh1jVhj "hMGhj!hhubj()}(hhh]h}(h]h ]h"]h$]h&]uh1j'hj!hhhj "hMGubeh}(h]h ](jDmacroeh"]h$]h&]jIjDjJj%"jKj%"jLjMjNuh1jQhhhj/hNhNubh)}(h``DEFINE_XARRAY (name)``h]jG)}(hj+"h]hDEFINE_XARRAY (name)}(hj-"hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj)"ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMIhj/hhubj )}(hDefine an XArray. h]h)}(hDefine an XArray.h]hDefine an XArray.}(hjE"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMGhjA"ubah}(h]h ]h"]h$]h&]uh1j hjS"hMGhj/hhubjP)}(hX?**Parameters** ``name`` A string that names your XArray. **Description** This is intended for file scope definitions of XArrays. It declares and initialises an empty XArray with the chosen name. It is equivalent to calling xa_init() on the array, but it does the initialisation at compiletime instead of runtime.h](h)}(h**Parameters**h]jZ)}(hj`"h]h Parameters}(hjb"hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj^"ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMKhjZ"ubj)}(hhh]j)}(h*``name`` A string that names your XArray. h](j)}(h``name``h]jG)}(hj"h]hname}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj}"ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMHhjy"ubj)}(hhh]h)}(h A string that names your XArray.h]h A string that names your XArray.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hMHhj"ubah}(h]h ]h"]h$]h&]uh1jhjy"ubeh}(h]h ]h"]h$]h&]uh1jhj"hMHhjv"ubah}(h]h ]h"]h$]h&]uh1jhjZ"ubh)}(h**Description**h]jZ)}(hj"h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj"ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMJhjZ"ubh)}(hThis is intended for file scope definitions of XArrays. It declares and initialises an empty XArray with the chosen name. It is equivalent to calling xa_init() on the array, but it does the initialisation at compiletime instead of runtime.h]hThis is intended for file scope definitions of XArrays. It declares and initialises an empty XArray with the chosen name. It is equivalent to calling xa_init() on the array, but it does the initialisation at compiletime instead of runtime.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMIhjZ"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMDEFINE_XARRAY_ALLOC (C macro)c.DEFINE_XARRAY_ALLOChNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hDEFINE_XARRAY_ALLOCh]j])}(hDEFINE_XARRAY_ALLOCh]j)}(hDEFINE_XARRAY_ALLOCh]j)}(hj"h]hDEFINE_XARRAY_ALLOC}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj"hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMRubah}(h]h ]h"]h$]h&]hhjuh1j\jjhj"hhhj#hMRubah}(h]j"ah ](jj eh"]h$]h&]j$j%)j&huh1jVhj#hMRhj"hhubj()}(hhh]h}(h]h ]h"]h$]h&]uh1j'hj"hhhj#hMRubeh}(h]h ](jDmacroeh"]h$]h&]jIjDjJj/#jKj/#jLjMjNuh1jQhhhj/hNhNubh)}(h``DEFINE_XARRAY_ALLOC (name)``h]jG)}(hj5#h]hDEFINE_XARRAY_ALLOC (name)}(hj7#hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj3#ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMThj/hhubj )}(h4Define an XArray which allocates IDs starting at 0. h]h)}(h3Define an XArray which allocates IDs starting at 0.h]h3Define an XArray which allocates IDs starting at 0.}(hjO#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMRhjK#ubah}(h]h ]h"]h$]h&]uh1j hj]#hMRhj/hhubjP)}(h**Parameters** ``name`` A string that names your XArray. **Description** This is intended for file scope definitions of allocating XArrays. See also DEFINE_XARRAY().h](h)}(h**Parameters**h]jZ)}(hjj#h]h Parameters}(hjl#hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjh#ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMVhjd#ubj)}(hhh]j)}(h*``name`` A string that names your XArray. h](j)}(h``name``h]jG)}(hj#h]hname}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj#ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMShj#ubj)}(hhh]h)}(h A string that names your XArray.h]h A string that names your XArray.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMShj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMShj#ubah}(h]h ]h"]h$]h&]uh1jhjd#ubh)}(h**Description**h]jZ)}(hj#h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj#ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMUhjd#ubh)}(h\This is intended for file scope definitions of allocating XArrays. See also DEFINE_XARRAY().h]h\This is intended for file scope definitions of allocating XArrays. See also DEFINE_XARRAY().}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMThjd#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMDEFINE_XARRAY_ALLOC1 (C macro)c.DEFINE_XARRAY_ALLOC1hNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hDEFINE_XARRAY_ALLOC1h]j])}(hDEFINE_XARRAY_ALLOC1h]j)}(hDEFINE_XARRAY_ALLOC1h]j)}(hj$h]hDEFINE_XARRAY_ALLOC1}(hj $hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj $ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj$hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM[ubah}(h]h ]h"]h$]h&]hhjuh1j\jjhj$hhhj $hM[ubah}(h]j#ah ](jj eh"]h$]h&]j$j%)j&huh1jVhj $hM[hj#hhubj()}(hhh]h}(h]h ]h"]h$]h&]uh1j'hj#hhhj $hM[ubeh}(h]h ](jDmacroeh"]h$]h&]jIjDjJj9$jKj9$jLjMjNuh1jQhhhj/hNhNubh)}(h``DEFINE_XARRAY_ALLOC1 (name)``h]jG)}(hj?$h]hDEFINE_XARRAY_ALLOC1 (name)}(hjA$hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj=$ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM]hj/hhubj )}(h4Define an XArray which allocates IDs starting at 1. h]h)}(h3Define an XArray which allocates IDs starting at 1.h]h3Define an XArray which allocates IDs starting at 1.}(hjY$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM[hjU$ubah}(h]h ]h"]h$]h&]uh1j hjg$hM[hj/hhubjP)}(h**Parameters** ``name`` A string that names your XArray. **Description** This is intended for file scope definitions of allocating XArrays. See also DEFINE_XARRAY().h](h)}(h**Parameters**h]jZ)}(hjt$h]h Parameters}(hjv$hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjr$ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM_hjn$ubj)}(hhh]j)}(h*``name`` A string that names your XArray. h](j)}(h``name``h]jG)}(hj$h]hname}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj$ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM\hj$ubj)}(hhh]h)}(h A string that names your XArray.h]h A string that names your XArray.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hM\hj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hM\hj$ubah}(h]h ]h"]h$]h&]uh1jhjn$ubh)}(h**Description**h]jZ)}(hj$h]h Description}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj$ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM^hjn$ubh)}(h\This is intended for file scope definitions of allocating XArrays. See also DEFINE_XARRAY().h]h\This is intended for file scope definitions of allocating XArrays. See also DEFINE_XARRAY().}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM]hjn$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_init_flags (C function)c.xa_init_flagshNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h3void xa_init_flags (struct xarray *xa, gfp_t flags)h]j])}(h2void xa_init_flags(struct xarray *xa, gfp_t flags)h](jc)}(hvoidh]hvoid}(hj%hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj%hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMtubju)}(h h]h }(hj"%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj%hhhj!%hMtubj)}(h xa_init_flagsh]j)}(h xa_init_flagsh]h xa_init_flags}(hj4%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0%ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj%hhhj!%hMtubj)}(h (struct xarray *xa, gfp_t flags)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hjP%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjL%ubju)}(h h]h }(hj]%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjL%ubh)}(hhh]j)}(hxarrayh]hxarray}(hjn%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk%ubah}(h]h ]h"]h$]h&] refdomainjDreftype identifier reftargetjp%modnameN classnameN c:parent_keysphinx.domains.c LookupKey)}data]j% ASTIdentifier)}j%j6%sbc.xa_init_flagsasbuh1hhjL%ubju)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjL%ubj)}(hj*h]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL%ubj)}(hxah]hxa}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL%ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjH%ubj)}(h gfp_t flagsh](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj%modnameN classnameNj%j%)}j%]j%c.xa_init_flagsasbuh1hhj%ubju)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj%ubj)}(hflagsh]hflags}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjH%ubeh}(h]h ]h"]h$]h&]hhuh1jhj%hhhj!%hMtubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj %hhhj!%hMtubah}(h]j%ah ](jj eh"]h$]h&]j$j%)j&huh1jVhj!%hMthj%hhubj()}(hhh]h)}(h&Initialise an empty XArray with flags.h]h&Initialise an empty XArray with flags.}(hj#&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMthj &hhubah}(h]h ]h"]h$]h&]uh1j'hj%hhhj!%hMtubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJj;&jKj;&jLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xarray *xa`` XArray. ``gfp_t flags`` XA_FLAG values. **Description** If you need to initialise an XArray with special flags (eg you need to take the lock from interrupt context), use this function instead of xa_init(). **Context** Any context.h](h)}(h**Parameters**h]jZ)}(hjE&h]h Parameters}(hjG&hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjC&ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMxhj?&ubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hjd&h]hstruct xarray *xa}(hjf&hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjb&ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMuhj^&ubj)}(hhh]h)}(hXArray.h]hXArray.}(hj}&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjy&hMuhjz&ubah}(h]h ]h"]h$]h&]uh1jhj^&ubeh}(h]h ]h"]h$]h&]uh1jhjy&hMuhj[&ubj)}(h ``gfp_t flags`` XA_FLAG values. h](j)}(h``gfp_t flags``h]jG)}(hj&h]h gfp_t flags}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj&ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMvhj&ubj)}(hhh]h)}(hXA_FLAG values.h]hXA_FLAG values.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMvhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hMvhj[&ubeh}(h]h ]h"]h$]h&]uh1jhj?&ubh)}(h**Description**h]jZ)}(hj&h]h Description}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj&ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMxhj?&ubh)}(hIf you need to initialise an XArray with special flags (eg you need to take the lock from interrupt context), use this function instead of xa_init().h]hIf you need to initialise an XArray with special flags (eg you need to take the lock from interrupt context), use this function instead of xa_init().}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMwhj?&ubh)}(h **Context**h]jZ)}(hj&h]hContext}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj&ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM{hj?&ubh)}(h Any context.h]h Any context.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM|hj?&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_init (C function) c.xa_inithNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h void xa_init (struct xarray *xa)h]j])}(hvoid xa_init(struct xarray *xa)h](jc)}(hvoidh]hvoid}(hjD'hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj@'hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubju)}(h h]h }(hjS'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj@'hhhjR'hMubj)}(hxa_inith]j)}(hxa_inith]hxa_init}(hje'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja'ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj@'hhhjR'hMubj)}(h(struct xarray *xa)h]j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj}'ubju)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj}'ubh)}(hhh]j)}(hxarrayh]hxarray}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj'modnameN classnameNj%j%)}j%]j%)}j%jg'sb c.xa_initasbuh1hhj}'ubju)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj}'ubj)}(hj*h]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}'ubj)}(hxah]hxa}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}'ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjy'ubah}(h]h ]h"]h$]h&]hhuh1jhj@'hhhjR'hMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj<'hhhjR'hMubah}(h]j7'ah ](jj eh"]h$]h&]j$j%)j&huh1jVhjR'hMhj9'hhubj()}(hhh]h)}(hInitialise an empty XArray.h]hInitialise an empty XArray.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj(hhubah}(h]h ]h"]h$]h&]uh1j'hj9'hhhjR'hMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJj(jKj(jLjMjNuh1jQhhhj/hNhNubjP)}(h**Parameters** ``struct xarray *xa`` XArray. **Description** An empty XArray is full of NULL entries. **Context** Any context.h](h)}(h**Parameters**h]jZ)}(hj&(h]h Parameters}(hj((hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj$(ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj (ubj)}(hhh]j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hjE(h]hstruct xarray *xa}(hjG(hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjC(ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj?(ubj)}(hhh]h)}(hXArray.h]hXArray.}(hj^(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZ(hMhj[(ubah}(h]h ]h"]h$]h&]uh1jhj?(ubeh}(h]h ]h"]h$]h&]uh1jhjZ(hMhj<(ubah}(h]h ]h"]h$]h&]uh1jhj (ubh)}(h**Description**h]jZ)}(hj(h]h Description}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj~(ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj (ubh)}(h(An empty XArray is full of NULL entries.h]h(An empty XArray is full of NULL entries.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj (ubh)}(h **Context**h]jZ)}(hj(h]hContext}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj(ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj (ubh)}(h Any context.h]h Any context.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj (ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_empty (C function) c.xa_emptyhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h'bool xa_empty (const struct xarray *xa)h]j])}(h&bool xa_empty(const struct xarray *xa)h](jc)}(hjh]hbool}(hj(hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj(hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubju)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj(hhhj(hMubj)}(hxa_emptyh]j)}(hxa_emptyh]hxa_empty}(hj )hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj(hhhj(hMubj)}(h(const struct xarray *xa)h]j)}(hconst struct xarray *xah](jy)}(hj|h]hconst}(hj()hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj$)ubju)}(h h]h }(hj5)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj$)ubjy)}(hj h]hstruct}(hjC)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj$)ubju)}(h h]h }(hjP)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj$)ubh)}(hhh]j)}(hxarrayh]hxarray}(hja)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^)ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjc)modnameN classnameNj%j%)}j%]j%)}j%j)sb c.xa_emptyasbuh1hhj$)ubju)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj$)ubj)}(hj*h]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$)ubj)}(hxah]hxa}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$)ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj )ubah}(h]h ]h"]h$]h&]hhuh1jhj(hhhj(hMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj(hhhj(hMubah}(h]j(ah ](jj eh"]h$]h&]j$j%)j&huh1jVhj(hMhj(hhubj()}(hhh]h)}(h.Determine if an array has any present entries.h]h.Determine if an array has any present entries.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj)hhubah}(h]h ]h"]h$]h&]uh1j'hj(hhhj(hMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJj)jKj)jLjMjNuh1jQhhhj/hNhNubjP)}(h**Parameters** ``const struct xarray *xa`` XArray. **Context** Any context. **Return** ``true`` if the array contains only NULL pointers.h](h)}(h**Parameters**h]jZ)}(hj)h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj)ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj)ubj)}(hhh]j)}(h$``const struct xarray *xa`` XArray. h](j)}(h``const struct xarray *xa``h]jG)}(hj*h]hconst struct xarray *xa}(hj *hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj*ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj*ubj)}(hhh]h)}(hXArray.h]hXArray.}(hj *hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hMhj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hMhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubh)}(h **Context**h]jZ)}(hjB*h]hContext}(hjD*hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj@*ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj)ubh)}(h Any context.h]h Any context.}(hjX*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj)ubh)}(h **Return**h]jZ)}(hji*h]hReturn}(hjk*hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjg*ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj)ubh)}(h2``true`` if the array contains only NULL pointers.h](jG)}(h``true``h]htrue}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj*ubh* if the array contains only NULL pointers.}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_marked (C function) c.xa_markedhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h8bool xa_marked (const struct xarray *xa, xa_mark_t mark)h]j])}(h7bool xa_marked(const struct xarray *xa, xa_mark_t mark)h](jc)}(hjh]hbool}(hj*hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj*hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubju)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj*hhhj*hMubj)}(h xa_markedh]j)}(h xa_markedh]h xa_marked}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj*hhhj*hMubj)}(h)(const struct xarray *xa, xa_mark_t mark)h](j)}(hconst struct xarray *xah](jy)}(hj|h]hconst}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj*ubju)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj*ubjy)}(hj h]hstruct}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj*ubju)}(h h]h }(hj +hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj*ubh)}(hhh]j)}(hxarrayh]hxarray}(hj1+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.+ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj3+modnameN classnameNj%j%)}j%]j%)}j%j*sb c.xa_markedasbuh1hhj*ubju)}(h h]h }(hjQ+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj*ubj)}(hj*h]h*}(hj_+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hxah]hxa}(hjl+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj*ubj)}(hxa_mark_t markh](h)}(hhh]j)}(h xa_mark_th]h xa_mark_t}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj+modnameN classnameNj%j%)}j%]jM+ c.xa_markedasbuh1hhj+ubju)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj+ubj)}(hmarkh]hmark}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj*ubeh}(h]h ]h"]h$]h&]hhuh1jhj*hhhj*hMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj*hhhj*hMubah}(h]j*ah ](jj eh"]h$]h&]j$j%)j&huh1jVhj*hMhj*hhubj()}(hhh]h)}(h6Inquire whether any entry in this array has a mark seth]h6Inquire whether any entry in this array has a mark set}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj+hhubah}(h]h ]h"]h$]h&]uh1j'hj*hhhj*hMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJj+jKj+jLjMjNuh1jQhhhj/hNhNubjP)}(h**Parameters** ``const struct xarray *xa`` Array ``xa_mark_t mark`` Mark value **Context** Any context. **Return** ``true`` if any entry has this mark set.h](h)}(h**Parameters**h]jZ)}(hj,h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj+ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj+ubj)}(hhh](j)}(h"``const struct xarray *xa`` Array h](j)}(h``const struct xarray *xa``h]jG)}(hj,h]hconst struct xarray *xa}(hj!,hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj,ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj,ubj)}(hhh]h)}(hArrayh]hArray}(hj8,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4,hMhj5,ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj4,hMhj,ubj)}(h``xa_mark_t mark`` Mark value h](j)}(h``xa_mark_t mark``h]jG)}(hjX,h]hxa_mark_t mark}(hjZ,hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjV,ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjR,ubj)}(hhh]h)}(h Mark valueh]h Mark value}(hjq,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjm,hMhjn,ubah}(h]h ]h"]h$]h&]uh1jhjR,ubeh}(h]h ]h"]h$]h&]uh1jhjm,hMhj,ubeh}(h]h ]h"]h$]h&]uh1jhj+ubh)}(h **Context**h]jZ)}(hj,h]hContext}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj,ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj+ubh)}(h Any context.h]h Any context.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj+ubh)}(h **Return**h]jZ)}(hj,h]hReturn}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj,ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj+ubh)}(h(``true`` if any entry has this mark set.h](jG)}(h``true``h]htrue}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj,ubh if any entry has this mark set.}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_for_each_range (C macro)c.xa_for_each_rangehNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hxa_for_each_rangeh]j])}(hxa_for_each_rangeh]j)}(hxa_for_each_rangeh]j)}(hj-h]hxa_for_each_range}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj -ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj -hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubah}(h]h ]h"]h$]h&]hhjuh1j\jjhj-hhhj$-hMubah}(h]j-ah ](jj eh"]h$]h&]j$j%)j&huh1jVhj$-hMhj-hhubj()}(hhh]h}(h]h ]h"]h$]h&]uh1j'hj-hhhj$-hMubeh}(h]h ](jDmacroeh"]h$]h&]jIjDjJj=-jKj=-jLjMjNuh1jQhhhj/hNhNubh)}(h5``xa_for_each_range (xa, index, entry, start, last)``h]jG)}(hjC-h]h1xa_for_each_range (xa, index, entry, start, last)}(hjE-hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjA-ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj/hhubj )}(h%Iterate over a portion of an XArray. h]h)}(h$Iterate over a portion of an XArray.h]h$Iterate over a portion of an XArray.}(hj]-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjY-ubah}(h]h ]h"]h$]h&]uh1j hjk-hMhj/hhubjP)}(hX:**Parameters** ``xa`` XArray. ``index`` Index of **entry**. ``entry`` Entry retrieved from array. ``start`` First index to retrieve from array. ``last`` Last index to retrieve from array. **Description** During the iteration, **entry** will have the value of the entry stored in **xa** at **index**. You may modify **index** during the iteration if you want to skip or reprocess indices. It is safe to modify the array during the iteration. At the end of the iteration, **entry** will be set to NULL and **index** will have a value less than or equal to max. xa_for_each_range() is O(n.log(n)) while xas_for_each() is O(n). You have to handle your own locking with xas_for_each(), and if you have to unlock after each iteration, it will also end up being O(n.log(n)). xa_for_each_range() will spin if it hits a retry entry; if you intend to see retry entries, you should use the xas_for_each() iterator instead. The xas_for_each() iterator will expand into more inline code than xa_for_each_range(). **Context** Any context. Takes and releases the RCU lock.h](h)}(h**Parameters**h]jZ)}(hjx-h]h Parameters}(hjz-hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjv-ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjr-ubj)}(hhh](j)}(h``xa`` XArray. h](j)}(h``xa``h]jG)}(hj-h]hxa}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj-ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj-ubj)}(hhh]h)}(hXArray.h]hXArray.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMhj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hMhj-ubj)}(h``index`` Index of **entry**. h](j)}(h ``index``h]jG)}(hj-h]hindex}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj-ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj-ubj)}(hhh]h)}(hIndex of **entry**.h](h Index of }(hj-hhhNhNubjZ)}(h **entry**h]hentry}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj-ubh.}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj-hMhj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hMhj-ubj)}(h&``entry`` Entry retrieved from array. h](j)}(h ``entry``h]jG)}(hj.h]hentry}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj.ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj.ubj)}(hhh]h)}(hEntry retrieved from array.h]hEntry retrieved from array.}(hj4.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0.hMhj1.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj0.hMhj-ubj)}(h.``start`` First index to retrieve from array. h](j)}(h ``start``h]jG)}(hjT.h]hstart}(hjV.hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjR.ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjN.ubj)}(hhh]h)}(h#First index to retrieve from array.h]h#First index to retrieve from array.}(hjm.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhji.hMhjj.ubah}(h]h ]h"]h$]h&]uh1jhjN.ubeh}(h]h ]h"]h$]h&]uh1jhji.hMhj-ubj)}(h,``last`` Last index to retrieve from array. h](j)}(h``last``h]jG)}(hj.h]hlast}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj.ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj.ubj)}(hhh]h)}(h"Last index to retrieve from array.h]h"Last index to retrieve from array.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hMhj-ubeh}(h]h ]h"]h$]h&]uh1jhjr-ubh)}(h**Description**h]jZ)}(hj.h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj.ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjr-ubh)}(hXeDuring the iteration, **entry** will have the value of the entry stored in **xa** at **index**. You may modify **index** during the iteration if you want to skip or reprocess indices. It is safe to modify the array during the iteration. At the end of the iteration, **entry** will be set to NULL and **index** will have a value less than or equal to max.h](hDuring the iteration, }(hj.hhhNhNubjZ)}(h **entry**h]hentry}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj.ubh, will have the value of the entry stored in }(hj.hhhNhNubjZ)}(h**xa**h]hxa}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj.ubh at }(hj.hhhNhNubjZ)}(h **index**h]hindex}(hj /hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj.ubh. You may modify }(hj.hhhNhNubjZ)}(h **index**h]hindex}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj.ubh during the iteration if you want to skip or reprocess indices. It is safe to modify the array during the iteration. At the end of the iteration, }(hj.hhhNhNubjZ)}(h **entry**h]hentry}(hj./hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj.ubh will be set to NULL and }(hj.hhhNhNubjZ)}(h **index**h]hindex}(hj@/hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj.ubh- will have a value less than or equal to max.}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjr-ubh)}(hXxa_for_each_range() is O(n.log(n)) while xas_for_each() is O(n). You have to handle your own locking with xas_for_each(), and if you have to unlock after each iteration, it will also end up being O(n.log(n)). xa_for_each_range() will spin if it hits a retry entry; if you intend to see retry entries, you should use the xas_for_each() iterator instead. The xas_for_each() iterator will expand into more inline code than xa_for_each_range().h]hXxa_for_each_range() is O(n.log(n)) while xas_for_each() is O(n). You have to handle your own locking with xas_for_each(), and if you have to unlock after each iteration, it will also end up being O(n.log(n)). xa_for_each_range() will spin if it hits a retry entry; if you intend to see retry entries, you should use the xas_for_each() iterator instead. The xas_for_each() iterator will expand into more inline code than xa_for_each_range().}(hjY/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjr-ubh)}(h **Context**h]jZ)}(hjj/h]hContext}(hjl/hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjh/ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjr-ubh)}(h.Any context. Takes and releases the RCU lock.h]h.Any context. Takes and releases the RCU lock.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjr-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_for_each_start (C macro)c.xa_for_each_starthNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hxa_for_each_starth]j])}(hxa_for_each_starth]j)}(hxa_for_each_starth]j)}(hj/h]hxa_for_each_start}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj/hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubah}(h]h ]h"]h$]h&]hhjuh1j\jjhj/hhhj/hMubah}(h]j/ah ](jj eh"]h$]h&]j$j%)j&huh1jVhj/hMhj/hhubj()}(hhh]h}(h]h ]h"]h$]h&]uh1j'hj/hhhj/hMubeh}(h]h ](jDmacroeh"]h$]h&]jIjDjJj/jKj/jLjMjNuh1jQhhhj/hNhNubh)}(h/``xa_for_each_start (xa, index, entry, start)``h]jG)}(hj/h]h+xa_for_each_start (xa, index, entry, start)}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj/ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj/hhubj )}(h%Iterate over a portion of an XArray. h]h)}(h$Iterate over a portion of an XArray.h]h$Iterate over a portion of an XArray.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj/ubah}(h]h ]h"]h$]h&]uh1j hj 0hMhj/hhubjP)}(hX **Parameters** ``xa`` XArray. ``index`` Index of **entry**. ``entry`` Entry retrieved from array. ``start`` First index to retrieve from array. **Description** During the iteration, **entry** will have the value of the entry stored in **xa** at **index**. You may modify **index** during the iteration if you want to skip or reprocess indices. It is safe to modify the array during the iteration. At the end of the iteration, **entry** will be set to NULL and **index** will have a value less than or equal to max. xa_for_each_start() is O(n.log(n)) while xas_for_each() is O(n). You have to handle your own locking with xas_for_each(), and if you have to unlock after each iteration, it will also end up being O(n.log(n)). xa_for_each_start() will spin if it hits a retry entry; if you intend to see retry entries, you should use the xas_for_each() iterator instead. The xas_for_each() iterator will expand into more inline code than xa_for_each_start(). **Context** Any context. Takes and releases the RCU lock.h](h)}(h**Parameters**h]jZ)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj0ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj0ubj)}(hhh](j)}(h``xa`` XArray. h](j)}(h``xa``h]jG)}(hj90h]hxa}(hj;0hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj70ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj30ubj)}(hhh]h)}(hXArray.h]hXArray.}(hjR0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjN0hMhjO0ubah}(h]h ]h"]h$]h&]uh1jhj30ubeh}(h]h ]h"]h$]h&]uh1jhjN0hMhj00ubj)}(h``index`` Index of **entry**. h](j)}(h ``index``h]jG)}(hjr0h]hindex}(hjt0hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjp0ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjl0ubj)}(hhh]h)}(hIndex of **entry**.h](h Index of }(hj0hhhNhNubjZ)}(h **entry**h]hentry}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj0ubh.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jhjl0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj00ubj)}(h&``entry`` Entry retrieved from array. h](j)}(h ``entry``h]jG)}(hj0h]hentry}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj0ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj0ubj)}(hhh]h)}(hEntry retrieved from array.h]hEntry retrieved from array.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj00ubj)}(h.``start`` First index to retrieve from array. h](j)}(h ``start``h]jG)}(hj0h]hstart}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj0ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj0ubj)}(hhh]h)}(h#First index to retrieve from array.h]h#First index to retrieve from array.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj 1hMhj 1ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj 1hMhj00ubeh}(h]h ]h"]h$]h&]uh1jhj0ubh)}(h**Description**h]jZ)}(hj11h]h Description}(hj31hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj/1ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj0ubh)}(hXeDuring the iteration, **entry** will have the value of the entry stored in **xa** at **index**. You may modify **index** during the iteration if you want to skip or reprocess indices. It is safe to modify the array during the iteration. At the end of the iteration, **entry** will be set to NULL and **index** will have a value less than or equal to max.h](hDuring the iteration, }(hjG1hhhNhNubjZ)}(h **entry**h]hentry}(hjO1hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjG1ubh, will have the value of the entry stored in }(hjG1hhhNhNubjZ)}(h**xa**h]hxa}(hja1hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjG1ubh at }(hjG1hhhNhNubjZ)}(h **index**h]hindex}(hjs1hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjG1ubh. You may modify }(hjG1hhhNhNubjZ)}(h **index**h]hindex}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjG1ubh during the iteration if you want to skip or reprocess indices. It is safe to modify the array during the iteration. At the end of the iteration, }(hjG1hhhNhNubjZ)}(h **entry**h]hentry}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjG1ubh will be set to NULL and }(hjG1hhhNhNubjZ)}(h **index**h]hindex}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjG1ubh- will have a value less than or equal to max.}(hjG1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj0ubh)}(hXxa_for_each_start() is O(n.log(n)) while xas_for_each() is O(n). You have to handle your own locking with xas_for_each(), and if you have to unlock after each iteration, it will also end up being O(n.log(n)). xa_for_each_start() will spin if it hits a retry entry; if you intend to see retry entries, you should use the xas_for_each() iterator instead. The xas_for_each() iterator will expand into more inline code than xa_for_each_start().h]hXxa_for_each_start() is O(n.log(n)) while xas_for_each() is O(n). You have to handle your own locking with xas_for_each(), and if you have to unlock after each iteration, it will also end up being O(n.log(n)). xa_for_each_start() will spin if it hits a retry entry; if you intend to see retry entries, you should use the xas_for_each() iterator instead. The xas_for_each() iterator will expand into more inline code than xa_for_each_start().}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj0ubh)}(h **Context**h]jZ)}(hj1h]hContext}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj1ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj0ubh)}(h.Any context. Takes and releases the RCU lock.h]h.Any context. Takes and releases the RCU lock.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_for_each (C macro) c.xa_for_eachhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h xa_for_eachh]j])}(h xa_for_eachh]j)}(h xa_for_eachh]j)}(hj2h]h xa_for_each}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj2hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubah}(h]h ]h"]h$]h&]hhjuh1j\jjhj2hhhj/2hMubah}(h]j 2ah ](jj eh"]h$]h&]j$j%)j&huh1jVhj/2hMhj 2hhubj()}(hhh]h}(h]h ]h"]h$]h&]uh1j'hj 2hhhj/2hMubeh}(h]h ](jDmacroeh"]h$]h&]jIjDjJjH2jKjH2jLjMjNuh1jQhhhj/hNhNubh)}(h"``xa_for_each (xa, index, entry)``h]jG)}(hjN2h]hxa_for_each (xa, index, entry)}(hjP2hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjL2ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj/hhubj )}(h+Iterate over present entries in an XArray. h]h)}(h*Iterate over present entries in an XArray.h]h*Iterate over present entries in an XArray.}(hjh2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjd2ubah}(h]h ]h"]h$]h&]uh1j hjv2hMhj/hhubjP)}(hX**Parameters** ``xa`` XArray. ``index`` Index of **entry**. ``entry`` Entry retrieved from array. **Description** During the iteration, **entry** will have the value of the entry stored in **xa** at **index**. You may modify **index** during the iteration if you want to skip or reprocess indices. It is safe to modify the array during the iteration. At the end of the iteration, **entry** will be set to NULL and **index** will have a value less than or equal to max. xa_for_each() is O(n.log(n)) while xas_for_each() is O(n). You have to handle your own locking with xas_for_each(), and if you have to unlock after each iteration, it will also end up being O(n.log(n)). xa_for_each() will spin if it hits a retry entry; if you intend to see retry entries, you should use the xas_for_each() iterator instead. The xas_for_each() iterator will expand into more inline code than xa_for_each(). **Context** Any context. Takes and releases the RCU lock.h](h)}(h**Parameters**h]jZ)}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj2ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj}2ubj)}(hhh](j)}(h``xa`` XArray. h](j)}(h``xa``h]jG)}(hj2h]hxa}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj2ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj2ubj)}(hhh]h)}(hXArray.h]hXArray.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMhj2ubj)}(h``index`` Index of **entry**. h](j)}(h ``index``h]jG)}(hj2h]hindex}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj2ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj2ubj)}(hhh]h)}(hIndex of **entry**.h](h Index of }(hj2hhhNhNubjZ)}(h **entry**h]hentry}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj2ubh.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMhj2ubj)}(h&``entry`` Entry retrieved from array. h](j)}(h ``entry``h]jG)}(hj&3h]hentry}(hj(3hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj$3ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj 3ubj)}(hhh]h)}(hEntry retrieved from array.h]hEntry retrieved from array.}(hj?3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;3hMhj<3ubah}(h]h ]h"]h$]h&]uh1jhj 3ubeh}(h]h ]h"]h$]h&]uh1jhj;3hMhj2ubeh}(h]h ]h"]h$]h&]uh1jhj}2ubh)}(h**Description**h]jZ)}(hja3h]h Description}(hjc3hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj_3ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj}2ubh)}(hXeDuring the iteration, **entry** will have the value of the entry stored in **xa** at **index**. You may modify **index** during the iteration if you want to skip or reprocess indices. It is safe to modify the array during the iteration. At the end of the iteration, **entry** will be set to NULL and **index** will have a value less than or equal to max.h](hDuring the iteration, }(hjw3hhhNhNubjZ)}(h **entry**h]hentry}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjw3ubh, will have the value of the entry stored in }(hjw3hhhNhNubjZ)}(h**xa**h]hxa}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjw3ubh at }(hjw3hhhNhNubjZ)}(h **index**h]hindex}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjw3ubh. You may modify }(hjw3hhhNhNubjZ)}(h **index**h]hindex}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjw3ubh during the iteration if you want to skip or reprocess indices. It is safe to modify the array during the iteration. At the end of the iteration, }(hjw3hhhNhNubjZ)}(h **entry**h]hentry}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjw3ubh will be set to NULL and }(hjw3hhhNhNubjZ)}(h **index**h]hindex}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjw3ubh- will have a value less than or equal to max.}(hjw3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj}2ubh)}(hXxa_for_each() is O(n.log(n)) while xas_for_each() is O(n). You have to handle your own locking with xas_for_each(), and if you have to unlock after each iteration, it will also end up being O(n.log(n)). xa_for_each() will spin if it hits a retry entry; if you intend to see retry entries, you should use the xas_for_each() iterator instead. The xas_for_each() iterator will expand into more inline code than xa_for_each().h]hXxa_for_each() is O(n.log(n)) while xas_for_each() is O(n). You have to handle your own locking with xas_for_each(), and if you have to unlock after each iteration, it will also end up being O(n.log(n)). xa_for_each() will spin if it hits a retry entry; if you intend to see retry entries, you should use the xas_for_each() iterator instead. The xas_for_each() iterator will expand into more inline code than xa_for_each().}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj}2ubh)}(h **Context**h]jZ)}(hj4h]hContext}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj4ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj}2ubh)}(h.Any context. Takes and releases the RCU lock.h]h.Any context. Takes and releases the RCU lock.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj}2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_for_each_marked (C macro)c.xa_for_each_markedhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hxa_for_each_markedh]j])}(hxa_for_each_markedh]j)}(hxa_for_each_markedh]j)}(hjB4h]hxa_for_each_marked}(hjL4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH4ubah}(h]h ](jjeh"]h$]h&]hhuh1jhjD4hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubah}(h]h ]h"]h$]h&]hhjuh1j\jjhj@4hhhj_4hMubah}(h]j;4ah ](jj eh"]h$]h&]j$j%)j&huh1jVhj_4hMhj=4hhubj()}(hhh]h}(h]h ]h"]h$]h&]uh1j'hj=4hhhj_4hMubeh}(h]h ](jDmacroeh"]h$]h&]jIjDjJjx4jKjx4jLjMjNuh1jQhhhj/hNhNubh)}(h1``xa_for_each_marked (xa, index, entry, filter)``h]jG)}(hj~4h]h-xa_for_each_marked (xa, index, entry, filter)}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj|4ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj/hhubj )}(h*Iterate over marked entries in an XArray. h]h)}(h)Iterate over marked entries in an XArray.h]h)Iterate over marked entries in an XArray.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj4ubah}(h]h ]h"]h$]h&]uh1j hj4hMhj/hhubjP)}(hXf**Parameters** ``xa`` XArray. ``index`` Index of **entry**. ``entry`` Entry retrieved from array. ``filter`` Selection criterion. **Description** During the iteration, **entry** will have the value of the entry stored in **xa** at **index**. The iteration will skip all entries in the array which do not match **filter**. You may modify **index** during the iteration if you want to skip or reprocess indices. It is safe to modify the array during the iteration. At the end of the iteration, **entry** will be set to NULL and **index** will have a value less than or equal to max. xa_for_each_marked() is O(n.log(n)) while xas_for_each_marked() is O(n). You have to handle your own locking with xas_for_each(), and if you have to unlock after each iteration, it will also end up being O(n.log(n)). xa_for_each_marked() will spin if it hits a retry entry; if you intend to see retry entries, you should use the xas_for_each_marked() iterator instead. The xas_for_each_marked() iterator will expand into more inline code than xa_for_each_marked(). **Context** Any context. Takes and releases the RCU lock.h](h)}(h**Parameters**h]jZ)}(hj4h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj4ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj4ubj)}(hhh](j)}(h``xa`` XArray. h](j)}(h``xa``h]jG)}(hj4h]hxa}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj4ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj4ubj)}(hhh]h)}(hXArray.h]hXArray.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hMhj4ubj)}(h``index`` Index of **entry**. h](j)}(h ``index``h]jG)}(hj 5h]hindex}(hj 5hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj 5ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj5ubj)}(hhh]h)}(hIndex of **entry**.h](h Index of }(hj$5hhhNhNubjZ)}(h **entry**h]hentry}(hj,5hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj$5ubh.}(hj$5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj 5hMhj!5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj 5hMhj4ubj)}(h&``entry`` Entry retrieved from array. h](j)}(h ``entry``h]jG)}(hjV5h]hentry}(hjX5hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjT5ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjP5ubj)}(hhh]h)}(hEntry retrieved from array.h]hEntry retrieved from array.}(hjo5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjk5hMhjl5ubah}(h]h ]h"]h$]h&]uh1jhjP5ubeh}(h]h ]h"]h$]h&]uh1jhjk5hMhj4ubj)}(h ``filter`` Selection criterion. h](j)}(h ``filter``h]jG)}(hj5h]hfilter}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj5ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj5ubj)}(hhh]h)}(hSelection criterion.h]hSelection criterion.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4ubh)}(h**Description**h]jZ)}(hj5h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj5ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj4ubh)}(hXDuring the iteration, **entry** will have the value of the entry stored in **xa** at **index**. The iteration will skip all entries in the array which do not match **filter**. You may modify **index** during the iteration if you want to skip or reprocess indices. It is safe to modify the array during the iteration. At the end of the iteration, **entry** will be set to NULL and **index** will have a value less than or equal to max.h](hDuring the iteration, }(hj5hhhNhNubjZ)}(h **entry**h]hentry}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj5ubh, will have the value of the entry stored in }(hj5hhhNhNubjZ)}(h**xa**h]hxa}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj5ubh at }(hj5hhhNhNubjZ)}(h **index**h]hindex}(hj 6hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj5ubhG. The iteration will skip all entries in the array which do not match }(hj5hhhNhNubjZ)}(h **filter**h]hfilter}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj5ubh. You may modify }(hj5hhhNhNubjZ)}(h **index**h]hindex}(hj06hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj5ubh during the iteration if you want to skip or reprocess indices. It is safe to modify the array during the iteration. At the end of the iteration, }(hj5hhhNhNubjZ)}(h **entry**h]hentry}(hjB6hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj5ubh will be set to NULL and }(hj5hhhNhNubjZ)}(h **index**h]hindex}(hjT6hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj5ubh- will have a value less than or equal to max.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj4ubh)}(hXxa_for_each_marked() is O(n.log(n)) while xas_for_each_marked() is O(n). You have to handle your own locking with xas_for_each(), and if you have to unlock after each iteration, it will also end up being O(n.log(n)). xa_for_each_marked() will spin if it hits a retry entry; if you intend to see retry entries, you should use the xas_for_each_marked() iterator instead. The xas_for_each_marked() iterator will expand into more inline code than xa_for_each_marked().h]hXxa_for_each_marked() is O(n.log(n)) while xas_for_each_marked() is O(n). You have to handle your own locking with xas_for_each(), and if you have to unlock after each iteration, it will also end up being O(n.log(n)). xa_for_each_marked() will spin if it hits a retry entry; if you intend to see retry entries, you should use the xas_for_each_marked() iterator instead. The xas_for_each_marked() iterator will expand into more inline code than xa_for_each_marked().}(hjm6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj4ubh)}(h **Context**h]jZ)}(hj~6h]hContext}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj|6ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj4ubh)}(h.Any context. Takes and releases the RCU lock.h]h.Any context. Takes and releases the RCU lock.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_store_bh (C function) c.xa_store_bhhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hSvoid * xa_store_bh (struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h]j])}(hQvoid *xa_store_bh(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](jc)}(hvoidh]hvoid}(hj6hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj6hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM@ubju)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj6hhhj6hM@ubj)}(hj*h]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhj6hM@ubj)}(h xa_store_bhh]j)}(h xa_store_bhh]h xa_store_bh}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj6hhhj6hM@ubj)}(h@(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hj 7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj 7ubju)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj 7ubh)}(hhh]j)}(hxarrayh]hxarray}(hj+7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(7ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj-7modnameN classnameNj%j%)}j%]j%)}j%j6sb c.xa_store_bhasbuh1hhj 7ubju)}(h h]h }(hjK7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj 7ubj)}(hj*h]h*}(hjY7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 7ubj)}(hxah]hxa}(hjf7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 7ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj7ubj)}(hunsigned long indexh](jc)}(hunsignedh]hunsigned}(hj7hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj{7ubju)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj{7ubjc)}(hlongh]hlong}(hj7hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj{7ubju)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj{7ubj)}(hindexh]hindex}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{7ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj7ubj)}(h void *entryh](jc)}(hvoidh]hvoid}(hj7hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj7ubju)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj7ubj)}(hj*h]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj)}(hentryh]hentry}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj7ubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj8modnameN classnameNj%j%)}j%]jG7 c.xa_store_bhasbuh1hhj8ubju)}(h h]h }(hj38hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj8ubj)}(hgfph]hgfp}(hjA8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj7ubeh}(h]h ]h"]h$]h&]hhuh1jhj6hhhj6hM@ubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj6hhhj6hM@ubah}(h]j6ah ](jj eh"]h$]h&]j$j%)j&huh1jVhj6hM@hj6hhubj()}(hhh]h)}(hStore this entry in the XArray.h]hStore this entry in the XArray.}(hjk8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM@hjh8hhubah}(h]h ]h"]h$]h&]uh1j'hj6hhhj6hM@ubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJj8jKj8jLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xarray *xa`` XArray. ``unsigned long index`` Index into array. ``void *entry`` New entry. ``gfp_t gfp`` Memory allocation flags. **Description** This function is like calling xa_store() except it disables softirqs while holding the array lock. **Context** Any context. Takes and releases the xa_lock while disabling softirqs. **Return** The old entry at this index or xa_err() if an error happened.h](h)}(h**Parameters**h]jZ)}(hj8h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj8ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMDhj8ubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hj8h]hstruct xarray *xa}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj8ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMAhj8ubj)}(hhh]h)}(hXArray.h]hXArray.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMAhj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hMAhj8ubj)}(h*``unsigned long index`` Index into array. h](j)}(h``unsigned long index``h]jG)}(hj8h]hunsigned long index}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj8ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMBhj8ubj)}(hhh]h)}(hIndex into array.h]hIndex into array.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMBhj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hMBhj8ubj)}(h``void *entry`` New entry. h](j)}(h``void *entry``h]jG)}(hj9h]h void *entry}(hj 9hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj9ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMChj9ubj)}(hhh]h)}(h New entry.h]h New entry.}(hj79hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj39hMChj49ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj39hMChj8ubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]jG)}(hjW9h]h gfp_t gfp}(hjY9hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjU9ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMDhjQ9ubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hjp9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjl9hMDhjm9ubah}(h]h ]h"]h$]h&]uh1jhjQ9ubeh}(h]h ]h"]h$]h&]uh1jhjl9hMDhj8ubeh}(h]h ]h"]h$]h&]uh1jhj8ubh)}(h**Description**h]jZ)}(hj9h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj9ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMFhj8ubh)}(hbThis function is like calling xa_store() except it disables softirqs while holding the array lock.h]hbThis function is like calling xa_store() except it disables softirqs while holding the array lock.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMEhj8ubh)}(h **Context**h]jZ)}(hj9h]hContext}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj9ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMHhj8ubh)}(hFAny context. Takes and releases the xa_lock while disabling softirqs.h]hFAny context. Takes and releases the xa_lock while disabling softirqs.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMIhj8ubh)}(h **Return**h]jZ)}(hj9h]hReturn}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj9ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMLhj8ubh)}(h=The old entry at this index or xa_err() if an error happened.h]h=The old entry at this index or xa_err() if an error happened.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMKhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_store_irq (C function)c.xa_store_irqhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hTvoid * xa_store_irq (struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h]j])}(hRvoid *xa_store_irq(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](jc)}(hvoidh]hvoid}(hj%:hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj!:hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM[ubju)}(h h]h }(hj4:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj!:hhhj3:hM[ubj)}(hj*h]h*}(hjB:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!:hhhj3:hM[ubj)}(h xa_store_irqh]j)}(h xa_store_irqh]h xa_store_irq}(hjS:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO:ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj!:hhhj3:hM[ubj)}(h@(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hjo:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjk:ubju)}(h h]h }(hj|:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjk:ubh)}(hhh]j)}(hxarrayh]hxarray}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj:modnameN classnameNj%j%)}j%]j%)}j%jU:sbc.xa_store_irqasbuh1hhjk:ubju)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjk:ubj)}(hj*h]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk:ubj)}(hxah]hxa}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk:ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjg:ubj)}(hunsigned long indexh](jc)}(hunsignedh]hunsigned}(hj:hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj:ubju)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj:ubjc)}(hlongh]hlong}(hj:hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj:ubju)}(h h]h }(hj ;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj:ubj)}(hindexh]hindex}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjg:ubj)}(h void *entryh](jc)}(hvoidh]hvoid}(hj2;hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj.;ubju)}(h h]h }(hj@;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj.;ubj)}(hj*h]h*}(hjN;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.;ubj)}(hentryh]hentry}(hj[;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.;ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjg:ubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjw;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjt;ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjy;modnameN classnameNj%j%)}j%]j:c.xa_store_irqasbuh1hhjp;ubju)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjp;ubj)}(hgfph]hgfp}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp;ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjg:ubeh}(h]h ]h"]h$]h&]hhuh1jhj!:hhhj3:hM[ubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj:hhhj3:hM[ubah}(h]j:ah ](jj eh"]h$]h&]j$j%)j&huh1jVhj3:hM[hj:hhubj()}(hhh]h)}(hStore this entry in the XArray.h]hStore this entry in the XArray.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM[hj;hhubah}(h]h ]h"]h$]h&]uh1j'hj:hhhj3:hM[ubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJj;jKj;jLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xarray *xa`` XArray. ``unsigned long index`` Index into array. ``void *entry`` New entry. ``gfp_t gfp`` Memory allocation flags. **Description** This function is like calling xa_store() except it disables interrupts while holding the array lock. **Context** Process context. Takes and releases the xa_lock while disabling interrupts. **Return** The old entry at this index or xa_err() if an error happened.h](h)}(h**Parameters**h]jZ)}(hj;h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj;ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM_hj;ubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hj<h]hstruct xarray *xa}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj <ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM\hj<ubj)}(hhh]h)}(hXArray.h]hXArray.}(hj'<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#<hM\hj$<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj#<hM\hj<ubj)}(h*``unsigned long index`` Index into array. h](j)}(h``unsigned long index``h]jG)}(hjG<h]hunsigned long index}(hjI<hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjE<ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM]hjA<ubj)}(hhh]h)}(hIndex into array.h]hIndex into array.}(hj`<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\<hM]hj]<ubah}(h]h ]h"]h$]h&]uh1jhjA<ubeh}(h]h ]h"]h$]h&]uh1jhj\<hM]hj<ubj)}(h``void *entry`` New entry. h](j)}(h``void *entry``h]jG)}(hj<h]h void *entry}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj~<ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM^hjz<ubj)}(hhh]h)}(h New entry.h]h New entry.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hM^hj<ubah}(h]h ]h"]h$]h&]uh1jhjz<ubeh}(h]h ]h"]h$]h&]uh1jhj<hM^hj<ubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]jG)}(hj<h]h gfp_t gfp}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj<ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM_hj<ubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hM_hj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hM_hj<ubeh}(h]h ]h"]h$]h&]uh1jhj;ubh)}(h**Description**h]jZ)}(hj<h]h Description}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj<ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMahj;ubh)}(hdThis function is like calling xa_store() except it disables interrupts while holding the array lock.h]hdThis function is like calling xa_store() except it disables interrupts while holding the array lock.}(hj =hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM`hj;ubh)}(h **Context**h]jZ)}(hj=h]hContext}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj=ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMchj;ubh)}(hLProcess context. Takes and releases the xa_lock while disabling interrupts.h]hLProcess context. Takes and releases the xa_lock while disabling interrupts.}(hj1=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMdhj;ubh)}(h **Return**h]jZ)}(hjB=h]hReturn}(hjD=hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj@=ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMghj;ubh)}(h=The old entry at this index or xa_err() if an error happened.h]h=The old entry at this index or xa_err() if an error happened.}(hjX=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMfhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_erase_bh (C function) c.xa_erase_bhhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h;void * xa_erase_bh (struct xarray *xa, unsigned long index)h]j])}(h9void *xa_erase_bh(struct xarray *xa, unsigned long index)h](jc)}(hvoidh]hvoid}(hj=hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj=hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMvubju)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj=hhhj=hMvubj)}(hj*h]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhj=hMvubj)}(h xa_erase_bhh]j)}(h xa_erase_bhh]h xa_erase_bh}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj=hhhj=hMvubj)}(h((struct xarray *xa, unsigned long index)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj=ubju)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj=ubh)}(hhh]j)}(hxarrayh]hxarray}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj=modnameN classnameNj%j%)}j%]j%)}j%j=sb c.xa_erase_bhasbuh1hhj=ubju)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj=ubj)}(hj*h]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj)}(hxah]hxa}(hj*>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj=ubj)}(hunsigned long indexh](jc)}(hunsignedh]hunsigned}(hjC>hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj?>ubju)}(h h]h }(hjQ>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj?>ubjc)}(hlongh]hlong}(hj_>hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj?>ubju)}(h h]h }(hjm>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj?>ubj)}(hindexh]hindex}(hj{>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?>ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj=ubeh}(h]h ]h"]h$]h&]hhuh1jhj=hhhj=hMvubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj=hhhj=hMvubah}(h]jz=ah ](jj eh"]h$]h&]j$j%)j&huh1jVhj=hMvhj|=hhubj()}(hhh]h)}(h!Erase this entry from the XArray.h]h!Erase this entry from the XArray.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMvhj>hhubah}(h]h ]h"]h$]h&]uh1j'hj|=hhhj=hMvubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJj>jKj>jLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xarray *xa`` XArray. ``unsigned long index`` Index of entry. **Description** After this function returns, loading from **index** will return ``NULL``. If the index is part of a multi-index entry, all indices will be erased and none of the entries will be part of a multi-index entry. **Context** Any context. Takes and releases the xa_lock while disabling softirqs. **Return** The entry which used to be at this index.h](h)}(h**Parameters**h]jZ)}(hj>h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj>ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMzhj>ubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hj>h]hstruct xarray *xa}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj>ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMwhj>ubj)}(hhh]h)}(hXArray.h]hXArray.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMwhj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMwhj>ubj)}(h(``unsigned long index`` Index of entry. h](j)}(h``unsigned long index``h]jG)}(hj?h]hunsigned long index}(hj!?hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj?ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMxhj?ubj)}(hhh]h)}(hIndex of entry.h]hIndex of entry.}(hj8?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4?hMxhj5?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj4?hMxhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>ubh)}(h**Description**h]jZ)}(hjZ?h]h Description}(hj\?hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjX?ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMzhj>ubh)}(hAfter this function returns, loading from **index** will return ``NULL``. If the index is part of a multi-index entry, all indices will be erased and none of the entries will be part of a multi-index entry.h](h*After this function returns, loading from }(hjp?hhhNhNubjZ)}(h **index**h]hindex}(hjx?hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjp?ubh will return }(hjp?hhhNhNubjG)}(h``NULL``h]hNULL}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjp?ubh. If the index is part of a multi-index entry, all indices will be erased and none of the entries will be part of a multi-index entry.}(hjp?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMyhj>ubh)}(h **Context**h]jZ)}(hj?h]hContext}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj?ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM}hj>ubh)}(hFAny context. Takes and releases the xa_lock while disabling softirqs.h]hFAny context. Takes and releases the xa_lock while disabling softirqs.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM~hj>ubh)}(h **Return**h]jZ)}(hj?h]hReturn}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj?ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj>ubh)}(h)The entry which used to be at this index.h]h)The entry which used to be at this index.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_erase_irq (C function)c.xa_erase_irqhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjBubj)}(hunsigned long indexh](jc)}(hunsignedh]hunsigned}(hjWChhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjSCubju)}(h h]h }(hjeChhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjSCubjc)}(hlongh]hlong}(hjsChhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjSCubju)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjSCubj)}(hindexh]hindex}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSCubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjBubj)}(h void *oldh](jc)}(hvoidh]hvoid}(hjChhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjCubju)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjCubj)}(hj*h]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(holdh]hold}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjBubj)}(h void *entryh](jc)}(hvoidh]hvoid}(hjChhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjCubju)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjCubj)}(hj*h]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hentryh]hentry}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjBubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj/DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,Dubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj1DmodnameN classnameNj%j%)}j%]jC c.xa_cmpxchgasbuh1hhj(Dubju)}(h h]h }(hjMDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj(Dubj)}(hgfph]hgfp}(hj[DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(Dubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjBubeh}(h]h ]h"]h$]h&]hhuh1jhjBhhhjBhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjBhhhjBhMubah}(h]jBah ](jj eh"]h$]h&]j$j%)j&huh1jVhjBhMhjBhhubj()}(hhh]h)}(h-Conditionally replace an entry in the XArray.h]h-Conditionally replace an entry in the XArray.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjDhhubah}(h]h ]h"]h$]h&]uh1j'hjBhhhjBhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjDjKjDjLjMjNuh1jQhhhj/hNhNubjP)}(hX;**Parameters** ``struct xarray *xa`` XArray. ``unsigned long index`` Index into array. ``void *old`` Old value to test against. ``void *entry`` New value to place in array. ``gfp_t gfp`` Memory allocation flags. **Description** If the entry at **index** is the same as **old**, replace it with **entry**. If the return value is equal to **old**, then the exchange was successful. **Context** Any context. Takes and releases the xa_lock. May sleep if the **gfp** flags permit. **Return** The old value at this index or xa_err() if an error happened.h](h)}(h**Parameters**h]jZ)}(hjDh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjDubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjDubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hjDh]hstruct xarray *xa}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjDubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjDubj)}(hhh]h)}(hXArray.h]hXArray.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjDubj)}(h*``unsigned long index`` Index into array. h](j)}(h``unsigned long index``h]jG)}(hjDh]hunsigned long index}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjDubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjDubj)}(hhh]h)}(hIndex into array.h]hIndex into array.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMhjEubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjDubj)}(h)``void *old`` Old value to test against. h](j)}(h ``void *old``h]jG)}(hj8Eh]h void *old}(hj:EhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj6Eubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj2Eubj)}(hhh]h)}(hOld value to test against.h]hOld value to test against.}(hjQEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMEhMhjNEubah}(h]h ]h"]h$]h&]uh1jhj2Eubeh}(h]h ]h"]h$]h&]uh1jhjMEhMhjDubj)}(h-``void *entry`` New value to place in array. h](j)}(h``void *entry``h]jG)}(hjqEh]h void *entry}(hjsEhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjoEubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjkEubj)}(hhh]h)}(hNew value to place in array.h]hNew value to place in array.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMhjEubah}(h]h ]h"]h$]h&]uh1jhjkEubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjDubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]jG)}(hjEh]h gfp_t gfp}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjEubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjEubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjDubeh}(h]h ]h"]h$]h&]uh1jhjDubh)}(h**Description**h]jZ)}(hjEh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjEubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjDubh)}(hIf the entry at **index** is the same as **old**, replace it with **entry**. If the return value is equal to **old**, then the exchange was successful.h](hIf the entry at }(hjEhhhNhNubjZ)}(h **index**h]hindex}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjEubh is the same as }(hjEhhhNhNubjZ)}(h**old**h]hold}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjEubh, replace it with }(hjEhhhNhNubjZ)}(h **entry**h]hentry}(hj'FhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjEubh". If the return value is equal to }(hjEhhhNhNubjZ)}(h**old**h]hold}(hj9FhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjEubh#, then the exchange was successful.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjDubh)}(h **Context**h]jZ)}(hjTFh]hContext}(hjVFhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjRFubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjDubh)}(hUAny context. Takes and releases the xa_lock. May sleep if the **gfp** flags permit.h](h@Any context. Takes and releases the xa_lock. May sleep if the }(hjjFhhhNhNubjZ)}(h**gfp**h]hgfp}(hjrFhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjjFubh flags permit.}(hjjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjDubh)}(h **Return**h]jZ)}(hjFh]hReturn}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjFubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjDubh)}(h=The old value at this index or xa_err() if an error happened.h]h=The old value at this index or xa_err() if an error happened.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_cmpxchg_bh (C function)c.xa_cmpxchg_bhhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h`void * xa_cmpxchg_bh (struct xarray *xa, unsigned long index, void *old, void *entry, gfp_t gfp)h]j])}(h^void *xa_cmpxchg_bh(struct xarray *xa, unsigned long index, void *old, void *entry, gfp_t gfp)h](jc)}(hvoidh]hvoid}(hjFhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjFhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubju)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjFhhhjFhMubj)}(hj*h]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhjFhMubj)}(h xa_cmpxchg_bhh]j)}(h xa_cmpxchg_bhh]h xa_cmpxchg_bh}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubah}(h]h ](jjeh"]h$]h&]hhuh1jhjFhhhjFhMubj)}(hK(struct xarray *xa, unsigned long index, void *old, void *entry, gfp_t gfp)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjGubju)}(h h]h }(hj)GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjGubh)}(hhh]j)}(hxarrayh]hxarray}(hj:GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7Gubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:MhMhj;Mubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhj:MhMhjLubj)}(h)``void *old`` Old value to test against. h](j)}(h ``void *old``h]jG)}(hj^Mh]h void *old}(hj`MhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj\Mubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjXMubj)}(hhh]h)}(hOld value to test against.h]hOld value to test against.}(hjwMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjsMhMhjtMubah}(h]h ]h"]h$]h&]uh1jhjXMubeh}(h]h ]h"]h$]h&]uh1jhjsMhMhjLubj)}(h-``void *entry`` New value to place in array. h](j)}(h``void *entry``h]jG)}(hjMh]h void *entry}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjMubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjMubj)}(hhh]h)}(hNew value to place in array.h]hNew value to place in array.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjMubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjLubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]jG)}(hjMh]h gfp_t gfp}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjMubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjMubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMhjMubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjLubeh}(h]h ]h"]h$]h&]uh1jhjLubh)}(h**Description**h]jZ)}(hj Nh]h Description}(hj NhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj Nubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjLubh)}(hfThis function is like calling xa_cmpxchg() except it disables interrupts while holding the array lock.h]hfThis function is like calling xa_cmpxchg() except it disables interrupts while holding the array lock.}(hj!NhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjLubh)}(h **Context**h]jZ)}(hj2Nh]hContext}(hj4NhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj0Nubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjLubh)}(htProcess context. Takes and releases the xa_lock while disabling interrupts. May sleep if the **gfp** flags permit.h](h_Process context. Takes and releases the xa_lock while disabling interrupts. May sleep if the }(hjHNhhhNhNubjZ)}(h**gfp**h]hgfp}(hjPNhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjHNubh flags permit.}(hjHNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjLubh)}(h **Return**h]jZ)}(hjkNh]hReturn}(hjmNhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjiNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjLubh)}(h=The old value at this index or xa_err() if an error happened.h]h=The old value at this index or xa_err() if an error happened.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_insert (C function) c.xa_inserthNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hNint xa_insert (struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h]j])}(hMint xa_insert(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](jc)}(hinth]hint}(hjNhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjNhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubju)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjNhhhjNhMubj)}(h xa_inserth]j)}(h xa_inserth]h xa_insert}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](jjeh"]h$]h&]hhuh1jhjNhhhjNhMubj)}(h@(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjNubju)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjNubh)}(hhh]j)}(hxarrayh]hxarray}(hj OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj OmodnameN classnameNj%j%)}j%]j%)}j%jNsb c.xa_insertasbuh1hhjNubju)}(h h]h }(hj+OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjNubj)}(hj*h]h*}(hj9OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj)}(hxah]hxa}(hjFOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjNubj)}(hunsigned long indexh](jc)}(hunsignedh]hunsigned}(hj_OhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj[Oubju)}(h h]h }(hjmOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj[Oubjc)}(hlongh]hlong}(hj{OhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj[Oubju)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj[Oubj)}(hindexh]hindex}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[Oubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjNubj)}(h void *entryh](jc)}(hvoidh]hvoid}(hjOhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjOubju)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjOubj)}(hj*h]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj)}(hentryh]hentry}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjNubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjOmodnameN classnameNj%j%)}j%]j'O c.xa_insertasbuh1hhjOubju)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjOubj)}(hgfph]hgfp}(hj!PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjNubeh}(h]h ]h"]h$]h&]hhuh1jhjNhhhjNhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjNhhhjNhMubah}(h]jNah ](jj eh"]h$]h&]j$j%)j&huh1jVhjNhMhjNhhubj()}(hhh]h)}(hGStore this entry in the XArray unless another entry is already present.h]hGStore this entry in the XArray unless another entry is already present.}(hjKPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjHPhhubah}(h]h ]h"]h$]h&]uh1j'hjNhhhjNhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjcPjKjcPjLjMjNuh1jQhhhj/hNhNubjP)}(hX[**Parameters** ``struct xarray *xa`` XArray. ``unsigned long index`` Index into array. ``void *entry`` New entry. ``gfp_t gfp`` Memory allocation flags. **Description** Inserting a NULL entry will store a reserved entry (like xa_reserve()) if no entry is present. Inserting will fail if a reserved entry is present, even though loading from this index will return NULL. **Context** Any context. Takes and releases the xa_lock. May sleep if the **gfp** flags permit. **Return** 0 if the store succeeded. -EBUSY if another entry was present. -ENOMEM if memory could not be allocated.h](h)}(h**Parameters**h]jZ)}(hjmPh]h Parameters}(hjoPhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjkPubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjgPubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hjPh]hstruct xarray *xa}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjPubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjPubj)}(hhh]h)}(hXArray.h]hXArray.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjPubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjPubj)}(h*``unsigned long index`` Index into array. h](j)}(h``unsigned long index``h]jG)}(hjPh]hunsigned long index}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjPubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjPubj)}(hhh]h)}(hIndex into array.h]hIndex into array.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjPubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjPubj)}(h``void *entry`` New entry. h](j)}(h``void *entry``h]jG)}(hjPh]h void *entry}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjPubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjPubj)}(hhh]h)}(h New entry.h]h New entry.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjQubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjPubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]jG)}(hj7Qh]h gfp_t gfp}(hj9QhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj5Qubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj1Qubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hjPQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLQhMhjMQubah}(h]h ]h"]h$]h&]uh1jhj1Qubeh}(h]h ]h"]h$]h&]uh1jhjLQhMhjPubeh}(h]h ]h"]h$]h&]uh1jhjgPubh)}(h**Description**h]jZ)}(hjrQh]h Description}(hjtQhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjpQubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjgPubh)}(hInserting a NULL entry will store a reserved entry (like xa_reserve()) if no entry is present. Inserting will fail if a reserved entry is present, even though loading from this index will return NULL.h]hInserting a NULL entry will store a reserved entry (like xa_reserve()) if no entry is present. Inserting will fail if a reserved entry is present, even though loading from this index will return NULL.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjgPubh)}(h **Context**h]jZ)}(hjQh]hContext}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjQubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjgPubh)}(hUAny context. Takes and releases the xa_lock. May sleep if the **gfp** flags permit.h](h@Any context. Takes and releases the xa_lock. May sleep if the }(hjQhhhNhNubjZ)}(h**gfp**h]hgfp}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjQubh flags permit.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjgPubh)}(h **Return**h]jZ)}(hjQh]hReturn}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjQubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjgPubh)}(hi0 if the store succeeded. -EBUSY if another entry was present. -ENOMEM if memory could not be allocated.h]hi0 if the store succeeded. -EBUSY if another entry was present. -ENOMEM if memory could not be allocated.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjgPubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_insert_bh (C function)c.xa_insert_bhhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hQint xa_insert_bh (struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h]j])}(hPint xa_insert_bh(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](jc)}(hinth]hint}(hjRhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjRhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubju)}(h h]h }(hj&RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjRhhhj%RhMubj)}(h xa_insert_bhh]j)}(h xa_insert_bhh]h xa_insert_bh}(hj8RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4Rubah}(h]h ](jjeh"]h$]h&]hhuh1jhjRhhhj%RhMubj)}(h@(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hjTRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjPRubju)}(h h]h }(hjaRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjPRubh)}(hhh]j)}(hxarrayh]hxarray}(hjrRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoRubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjtRmodnameN classnameNj%j%)}j%]j%)}j%j:Rsbc.xa_insert_bhasbuh1hhjPRubju)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjPRubj)}(hj*h]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPRubj)}(hxah]hxa}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPRubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjLRubj)}(hunsigned long indexh](jc)}(hunsignedh]hunsigned}(hjRhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjRubju)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjRubjc)}(hlongh]hlong}(hjRhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjRubju)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjRubj)}(hindexh]hindex}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjLRubj)}(h void *entryh](jc)}(hvoidh]hvoid}(hjShhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjSubju)}(h h]h }(hj%ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjSubj)}(hj*h]h*}(hj3ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj)}(hentryh]hentry}(hj@ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjLRubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj\ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYSubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj^SmodnameN classnameNj%j%)}j%]jRc.xa_insert_bhasbuh1hhjUSubju)}(h h]h }(hjzShhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjUSubj)}(hgfph]hgfp}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUSubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjLRubeh}(h]h ]h"]h$]h&]hhuh1jhjRhhhj%RhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjRhhhj%RhMubah}(h]j Rah ](jj eh"]h$]h&]j$j%)j&huh1jVhj%RhMhj Rhhubj()}(hhh]h)}(hGStore this entry in the XArray unless another entry is already present.h]hGStore this entry in the XArray unless another entry is already present.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjShhubah}(h]h ]h"]h$]h&]uh1j'hj Rhhhj%RhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjSjKjSjLjMjNuh1jQhhhj/hNhNubjP)}(hXt**Parameters** ``struct xarray *xa`` XArray. ``unsigned long index`` Index into array. ``void *entry`` New entry. ``gfp_t gfp`` Memory allocation flags. **Description** Inserting a NULL entry will store a reserved entry (like xa_reserve()) if no entry is present. Inserting will fail if a reserved entry is present, even though loading from this index will return NULL. **Context** Any context. Takes and releases the xa_lock while disabling softirqs. May sleep if the **gfp** flags permit. **Return** 0 if the store succeeded. -EBUSY if another entry was present. -ENOMEM if memory could not be allocated.h](h)}(h**Parameters**h]jZ)}(hjSh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjSubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjSubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hjSh]hstruct xarray *xa}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjSubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjSubj)}(hhh]h)}(hXArray.h]hXArray.}(hj ThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhj Tubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjThMhjSubj)}(h*``unsigned long index`` Index into array. h](j)}(h``unsigned long index``h]jG)}(hj,Th]hunsigned long index}(hj.ThhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj*Tubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj&Tubj)}(hhh]h)}(hIndex into array.h]hIndex into array.}(hjEThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAThMhjBTubah}(h]h ]h"]h$]h&]uh1jhj&Tubeh}(h]h ]h"]h$]h&]uh1jhjAThMhjSubj)}(h``void *entry`` New entry. h](j)}(h``void *entry``h]jG)}(hjeTh]h void *entry}(hjgThhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjcTubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj_Tubj)}(hhh]h)}(h New entry.h]h New entry.}(hj~ThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzThMhj{Tubah}(h]h ]h"]h$]h&]uh1jhj_Tubeh}(h]h ]h"]h$]h&]uh1jhjzThMhjSubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]jG)}(hjTh]h gfp_t gfp}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjTubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjTubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjTubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjThMhjSubeh}(h]h ]h"]h$]h&]uh1jhjSubh)}(h**Description**h]jZ)}(hjTh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjTubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjSubh)}(hInserting a NULL entry will store a reserved entry (like xa_reserve()) if no entry is present. Inserting will fail if a reserved entry is present, even though loading from this index will return NULL.h]hInserting a NULL entry will store a reserved entry (like xa_reserve()) if no entry is present. Inserting will fail if a reserved entry is present, even though loading from this index will return NULL.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjSubh)}(h **Context**h]jZ)}(hjUh]hContext}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjTubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM"hjSubh)}(hnAny context. Takes and releases the xa_lock while disabling softirqs. May sleep if the **gfp** flags permit.h](hYAny context. Takes and releases the xa_lock while disabling softirqs. May sleep if the }(hjUhhhNhNubjZ)}(h**gfp**h]hgfp}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjUubh flags permit.}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM#hjSubh)}(h **Return**h]jZ)}(hj9Uh]hReturn}(hj;UhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj7Uubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM&hjSubh)}(hi0 if the store succeeded. -EBUSY if another entry was present. -ENOMEM if memory could not be allocated.h]hi0 if the store succeeded. -EBUSY if another entry was present. -ENOMEM if memory could not be allocated.}(hjOUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM%hjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_insert_irq (C function)c.xa_insert_irqhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hRint xa_insert_irq (struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h]j])}(hQint xa_insert_irq(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](jc)}(hinth]hint}(hj~UhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjzUhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM6ubju)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjzUhhhjUhM6ubj)}(h xa_insert_irqh]j)}(h xa_insert_irqh]h xa_insert_irq}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ](jjeh"]h$]h&]hhuh1jhjzUhhhjUhM6ubj)}(h@(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjUubju)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjUubh)}(hhh]j)}(hxarrayh]hxarray}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjUmodnameN classnameNj%j%)}j%]j%)}j%jUsbc.xa_insert_irqasbuh1hhjUubju)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjUubj)}(hj*h]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj)}(hxah]hxa}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjUubj)}(hunsigned long indexh](jc)}(hunsignedh]hunsigned}(hj-VhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj)Vubju)}(h h]h }(hj;VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj)Vubjc)}(hlongh]hlong}(hjIVhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj)Vubju)}(h h]h }(hjWVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj)Vubj)}(hindexh]hindex}(hjeVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)Vubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjUubj)}(h void *entryh](jc)}(hvoidh]hvoid}(hj~VhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjzVubju)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjzVubj)}(hj*h]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzVubj)}(hentryh]hentry}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzVubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjUubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjVmodnameN classnameNj%j%)}j%]jUc.xa_insert_irqasbuh1hhjVubju)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjVubj)}(hgfph]hgfp}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjUubeh}(h]h ]h"]h$]h&]hhuh1jhjzUhhhjUhM6ubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjvUhhhjUhM6ubah}(h]jqUah ](jj eh"]h$]h&]j$j%)j&huh1jVhjUhM6hjsUhhubj()}(hhh]h)}(hGStore this entry in the XArray unless another entry is already present.h]hGStore this entry in the XArray unless another entry is already present.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM6hjWhhubah}(h]h ]h"]h$]h&]uh1j'hjsUhhhjUhM6ubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJj1WjKj1WjLjMjNuh1jQhhhj/hNhNubjP)}(hXz**Parameters** ``struct xarray *xa`` XArray. ``unsigned long index`` Index into array. ``void *entry`` New entry. ``gfp_t gfp`` Memory allocation flags. **Description** Inserting a NULL entry will store a reserved entry (like xa_reserve()) if no entry is present. Inserting will fail if a reserved entry is present, even though loading from this index will return NULL. **Context** Process context. Takes and releases the xa_lock while disabling interrupts. May sleep if the **gfp** flags permit. **Return** 0 if the store succeeded. -EBUSY if another entry was present. -ENOMEM if memory could not be allocated.h](h)}(h**Parameters**h]jZ)}(hj;Wh]h Parameters}(hj=WhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj9Wubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM:hj5Wubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hjZWh]hstruct xarray *xa}(hj\WhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjXWubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM8hjTWubj)}(hhh]h)}(hXArray.h]hXArray.}(hjsWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjoWhM8hjpWubah}(h]h ]h"]h$]h&]uh1jhjTWubeh}(h]h ]h"]h$]h&]uh1jhjoWhM8hjQWubj)}(h*``unsigned long index`` Index into array. h](j)}(h``unsigned long index``h]jG)}(hjWh]hunsigned long index}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjWubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM9hjWubj)}(hhh]h)}(hIndex into array.h]hIndex into array.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhM9hjWubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjWhM9hjQWubj)}(h``void *entry`` New entry. h](j)}(h``void *entry``h]jG)}(hjWh]h void *entry}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjWubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM:hjWubj)}(hhh]h)}(h New entry.h]h New entry.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhM:hjWubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjWhM:hjQWubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]jG)}(hjXh]h gfp_t gfp}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjXubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM;hjWubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhM;hjXubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjXhM;hjQWubeh}(h]h ]h"]h$]h&]uh1jhj5Wubh)}(h**Description**h]jZ)}(hj@Xh]h Description}(hjBXhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj>Xubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM=hj5Wubh)}(hInserting a NULL entry will store a reserved entry (like xa_reserve()) if no entry is present. Inserting will fail if a reserved entry is present, even though loading from this index will return NULL.h]hInserting a NULL entry will store a reserved entry (like xa_reserve()) if no entry is present. Inserting will fail if a reserved entry is present, even though loading from this index will return NULL.}(hjVXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM<hj5Wubh)}(h **Context**h]jZ)}(hjgXh]hContext}(hjiXhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjeXubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM@hj5Wubh)}(htProcess context. Takes and releases the xa_lock while disabling interrupts. May sleep if the **gfp** flags permit.h](h_Process context. Takes and releases the xa_lock while disabling interrupts. May sleep if the }(hj}XhhhNhNubjZ)}(h**gfp**h]hgfp}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj}Xubh flags permit.}(hj}XhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMAhj5Wubh)}(h **Return**h]jZ)}(hjXh]hReturn}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjXubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMDhj5Wubh)}(hi0 if the store succeeded. -EBUSY if another entry was present. -ENOMEM if memory could not be allocated.h]hi0 if the store succeeded. -EBUSY if another entry was present. -ENOMEM if memory could not be allocated.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMChj5Wubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_alloc (C function) c.xa_allochNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hXint xa_alloc (struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, gfp_t gfp)h]j])}(hWint xa_alloc(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, gfp_t gfp)h](jc)}(hinth]hint}(hjXhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjXhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMTubju)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjXhhhjXhMTubj)}(hxa_alloch]j)}(hxa_alloch]hxa_alloc}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](jjeh"]h$]h&]hhuh1jhjXhhhjXhMTubj)}(hK(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, gfp_t gfp)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hj"YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjYubju)}(h h]h }(hj/YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjYubh)}(hhh]j)}(hxarrayh]hxarray}(hj@YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=Yubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjBYmodnameN classnameNj%j%)}j%]j%)}j%jYsb c.xa_allocasbuh1hhjYubju)}(h h]h }(hj`YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjYubj)}(hj*h]h*}(hjnYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hxah]hxa}(hj{YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjYubj)}(hu32 *idh](h)}(hhh]j)}(hu32h]hu32}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjYmodnameN classnameNj%j%)}j%]j\Y c.xa_allocasbuh1hhjYubju)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjYubj)}(hj*h]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hidh]hid}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjYubj)}(h void *entryh](jc)}(hvoidh]hvoid}(hjYhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjYubju)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjYubj)}(hj*h]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj)}(hentryh]hentry}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjYubj)}(hstruct xa_limit limith](jy)}(hj h]hstruct}(hj+ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj'Zubju)}(h h]h }(hj8ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj'Zubh)}(hhh]j)}(hxa_limith]hxa_limit}(hjIZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFZubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjKZmodnameN classnameNj%j%)}j%]j\Y c.xa_allocasbuh1hhj'Zubju)}(h h]h }(hjgZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj'Zubj)}(hlimith]hlimit}(hjuZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'Zubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjYubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjZmodnameN classnameNj%j%)}j%]j\Y c.xa_allocasbuh1hhjZubju)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjZubj)}(hgfph]hgfp}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjYubeh}(h]h ]h"]h$]h&]hhuh1jhjXhhhjXhMTubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjXhhhjXhMTubah}(h]jXah ](jj eh"]h$]h&]j$j%)j&huh1jVhjXhMThjXhhubj()}(hhh]h)}(h1Find somewhere to store this entry in the XArray.h]h1Find somewhere to store this entry in the XArray.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMThjZhhubah}(h]h ]h"]h$]h&]uh1j'hjXhhhjXhMTubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjZjKjZjLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xarray *xa`` XArray. ``u32 *id`` Pointer to ID. ``void *entry`` New entry. ``struct xa_limit limit`` Range of ID to allocate. ``gfp_t gfp`` Memory allocation flags. **Description** Finds an empty entry in **xa** between **limit.min** and **limit.max**, stores the index into the **id** pointer, then stores the entry at that index. A concurrent lookup will not see an uninitialised **id**. Must only be operated on an xarray initialized with flag XA_FLAGS_ALLOC set in xa_init_flags(). **Context** Any context. Takes and releases the xa_lock. May sleep if the **gfp** flags permit. **Return** 0 on success, -ENOMEM if memory could not be allocated or -EBUSY if there are no free entries in **limit**.h](h)}(h**Parameters**h]jZ)}(hj [h]h Parameters}(hj [hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj[ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMXhj[ubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hj([h]hstruct xarray *xa}(hj*[hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj&[ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMUhj"[ubj)}(hhh]h)}(hXArray.h]hXArray.}(hjA[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=[hMUhj>[ubah}(h]h ]h"]h$]h&]uh1jhj"[ubeh}(h]h ]h"]h$]h&]uh1jhj=[hMUhj[ubj)}(h``u32 *id`` Pointer to ID. h](j)}(h ``u32 *id``h]jG)}(hja[h]hu32 *id}(hjc[hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj_[ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMVhj[[ubj)}(hhh]h)}(hPointer to ID.h]hPointer to ID.}(hjz[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjv[hMVhjw[ubah}(h]h ]h"]h$]h&]uh1jhj[[ubeh}(h]h ]h"]h$]h&]uh1jhjv[hMVhj[ubj)}(h``void *entry`` New entry. h](j)}(h``void *entry``h]jG)}(hj[h]h void *entry}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj[ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMWhj[ubj)}(hhh]h)}(h New entry.h]h New entry.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hMWhj[ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj[hMWhj[ubj)}(h3``struct xa_limit limit`` Range of ID to allocate. h](j)}(h``struct xa_limit limit``h]jG)}(hj[h]hstruct xa_limit limit}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj[ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMXhj[ubj)}(hhh]h)}(hRange of ID to allocate.h]hRange of ID to allocate.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hMXhj[ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj[hMXhj[ubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]jG)}(hj \h]h gfp_t gfp}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj \ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMYhj\ubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hj%\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!\hMYhj"\ubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhj!\hMYhj[ubeh}(h]h ]h"]h$]h&]uh1jhj[ubh)}(h**Description**h]jZ)}(hjG\h]h Description}(hjI\hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjE\ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM[hj[ubh)}(hFinds an empty entry in **xa** between **limit.min** and **limit.max**, stores the index into the **id** pointer, then stores the entry at that index. A concurrent lookup will not see an uninitialised **id**.h](hFinds an empty entry in }(hj]\hhhNhNubjZ)}(h**xa**h]hxa}(hje\hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj]\ubh between }(hj]\hhhNhNubjZ)}(h **limit.min**h]h limit.min}(hjw\hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj]\ubh and }(hj]\hhhNhNubjZ)}(h **limit.max**h]h limit.max}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj]\ubh, stores the index into the }(hj]\hhhNhNubjZ)}(h**id**h]hid}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj]\ubhb pointer, then stores the entry at that index. A concurrent lookup will not see an uninitialised }(hj]\hhhNhNubjZ)}(h**id**h]hid}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj]\ubh.}(hj]\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMZhj[ubh)}(h_Must only be operated on an xarray initialized with flag XA_FLAGS_ALLOC set in xa_init_flags().h]h_Must only be operated on an xarray initialized with flag XA_FLAGS_ALLOC set in xa_init_flags().}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM^hj[ubh)}(h **Context**h]jZ)}(hj\h]hContext}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj\ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMahj[ubh)}(hUAny context. Takes and releases the xa_lock. May sleep if the **gfp** flags permit.h](h@Any context. Takes and releases the xa_lock. May sleep if the }(hj\hhhNhNubjZ)}(h**gfp**h]hgfp}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj\ubh flags permit.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMbhj[ubh)}(h **Return**h]jZ)}(hj]h]hReturn}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj]ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMehj[ubh)}(hk0 on success, -ENOMEM if memory could not be allocated or -EBUSY if there are no free entries in **limit**.h](ha0 on success, -ENOMEM if memory could not be allocated or -EBUSY if there are no free entries in }(hj&]hhhNhNubjZ)}(h **limit**h]hlimit}(hj.]hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj&]ubh.}(hj&]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMdhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_alloc_bh (C function) c.xa_alloc_bhhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h[int xa_alloc_bh (struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, gfp_t gfp)h]j])}(hZint xa_alloc_bh(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, gfp_t gfp)h](jc)}(hinth]hint}(hjg]hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjc]hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMuubju)}(h h]h }(hjv]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjc]hhhju]hMuubj)}(h xa_alloc_bhh]j)}(h xa_alloc_bhh]h xa_alloc_bh}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](jjeh"]h$]h&]hhuh1jhjc]hhhju]hMuubj)}(hK(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, gfp_t gfp)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj]ubju)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj]ubh)}(hhh]j)}(hxarrayh]hxarray}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj]modnameN classnameNj%j%)}j%]j%)}j%j]sb c.xa_alloc_bhasbuh1hhj]ubju)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj]ubj)}(hj*h]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj)}(hxah]hxa}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj]ubj)}(hu32 *idh](h)}(hhh]j)}(hu32h]hu32}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj^modnameN classnameNj%j%)}j%]j] c.xa_alloc_bhasbuh1hhj^ubju)}(h h]h }(hj7^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj^ubj)}(hj*h]h*}(hjE^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hidh]hid}(hjR^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj]ubj)}(h void *entryh](jc)}(hvoidh]hvoid}(hjk^hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjg^ubju)}(h h]h }(hjy^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjg^ubj)}(hj*h]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg^ubj)}(hentryh]hentry}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg^ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj]ubj)}(hstruct xa_limit limith](jy)}(hj h]hstruct}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj^ubju)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj^ubh)}(hhh]j)}(hxa_limith]hxa_limit}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj^modnameN classnameNj%j%)}j%]j] c.xa_alloc_bhasbuh1hhj^ubju)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj^ubj)}(hlimith]hlimit}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj]ubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj_modnameN classnameNj%j%)}j%]j] c.xa_alloc_bhasbuh1hhj _ubju)}(h h]h }(hj1_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj _ubj)}(hgfph]hgfp}(hj?_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj _ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj]ubeh}(h]h ]h"]h$]h&]hhuh1jhjc]hhhju]hMuubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj_]hhhju]hMuubah}(h]jZ]ah ](jj eh"]h$]h&]j$j%)j&huh1jVhju]hMuhj\]hhubj()}(hhh]h)}(h1Find somewhere to store this entry in the XArray.h]h1Find somewhere to store this entry in the XArray.}(hji_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMuhjf_hhubah}(h]h ]h"]h$]h&]uh1j'hj\]hhhju]hMuubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJj_jKj_jLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xarray *xa`` XArray. ``u32 *id`` Pointer to ID. ``void *entry`` New entry. ``struct xa_limit limit`` Range of ID to allocate. ``gfp_t gfp`` Memory allocation flags. **Description** Finds an empty entry in **xa** between **limit.min** and **limit.max**, stores the index into the **id** pointer, then stores the entry at that index. A concurrent lookup will not see an uninitialised **id**. Must only be operated on an xarray initialized with flag XA_FLAGS_ALLOC set in xa_init_flags(). **Context** Any context. Takes and releases the xa_lock while disabling softirqs. May sleep if the **gfp** flags permit. **Return** 0 on success, -ENOMEM if memory could not be allocated or -EBUSY if there are no free entries in **limit**.h](h)}(h**Parameters**h]jZ)}(hj_h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj_ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMyhj_ubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hj_h]hstruct xarray *xa}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj_ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMvhj_ubj)}(hhh]h)}(hXArray.h]hXArray.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMvhj_ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hMvhj_ubj)}(h``u32 *id`` Pointer to ID. h](j)}(h ``u32 *id``h]jG)}(hj_h]hu32 *id}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj_ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMwhj_ubj)}(hhh]h)}(hPointer to ID.h]hPointer to ID.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMwhj_ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hMwhj_ubj)}(h``void *entry`` New entry. h](j)}(h``void *entry``h]jG)}(hj`h]h void *entry}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj`ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMxhj`ubj)}(hhh]h)}(h New entry.h]h New entry.}(hj5`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1`hMxhj2`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj1`hMxhj_ubj)}(h3``struct xa_limit limit`` Range of ID to allocate. h](j)}(h``struct xa_limit limit``h]jG)}(hjU`h]hstruct xa_limit limit}(hjW`hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjS`ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMyhjO`ubj)}(hhh]h)}(hRange of ID to allocate.h]hRange of ID to allocate.}(hjn`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjj`hMyhjk`ubah}(h]h ]h"]h$]h&]uh1jhjO`ubeh}(h]h ]h"]h$]h&]uh1jhjj`hMyhj_ubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]jG)}(hj`h]h gfp_t gfp}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj`ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMzhj`ubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMzhj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hMzhj_ubeh}(h]h ]h"]h$]h&]uh1jhj_ubh)}(h**Description**h]jZ)}(hj`h]h Description}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj`ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM|hj_ubh)}(hFinds an empty entry in **xa** between **limit.min** and **limit.max**, stores the index into the **id** pointer, then stores the entry at that index. A concurrent lookup will not see an uninitialised **id**.h](hFinds an empty entry in }(hj`hhhNhNubjZ)}(h**xa**h]hxa}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj`ubh between }(hj`hhhNhNubjZ)}(h **limit.min**h]h limit.min}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj`ubh and }(hj`hhhNhNubjZ)}(h **limit.max**h]h limit.max}(hj ahhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj`ubh, stores the index into the }(hj`hhhNhNubjZ)}(h**id**h]hid}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj`ubhb pointer, then stores the entry at that index. A concurrent lookup will not see an uninitialised }(hj`hhhNhNubjZ)}(h**id**h]hid}(hj/ahhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj`ubh.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM{hj_ubh)}(h_Must only be operated on an xarray initialized with flag XA_FLAGS_ALLOC set in xa_init_flags().h]h_Must only be operated on an xarray initialized with flag XA_FLAGS_ALLOC set in xa_init_flags().}(hjHahhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj_ubh)}(h **Context**h]jZ)}(hjYah]hContext}(hj[ahhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjWaubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj_ubh)}(hnAny context. Takes and releases the xa_lock while disabling softirqs. May sleep if the **gfp** flags permit.h](hYAny context. Takes and releases the xa_lock while disabling softirqs. May sleep if the }(hjoahhhNhNubjZ)}(h**gfp**h]hgfp}(hjwahhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjoaubh flags permit.}(hjoahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj_ubh)}(h **Return**h]jZ)}(hjah]hReturn}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjaubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj_ubh)}(hk0 on success, -ENOMEM if memory could not be allocated or -EBUSY if there are no free entries in **limit**.h](ha0 on success, -ENOMEM if memory could not be allocated or -EBUSY if there are no free entries in }(hjahhhNhNubjZ)}(h **limit**h]hlimit}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjaubh.}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_alloc_irq (C function)c.xa_alloc_irqhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h\int xa_alloc_irq (struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, gfp_t gfp)h]j])}(h[int xa_alloc_irq(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, gfp_t gfp)h](jc)}(hinth]hint}(hjahhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjahhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubju)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjahhhjahMubj)}(h xa_alloc_irqh]j)}(h xa_alloc_irqh]h xa_alloc_irq}(hj bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ](jjeh"]h$]h&]hhuh1jhjahhhjahMubj)}(hK(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, gfp_t gfp)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hj&bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj"bubju)}(h h]h }(hj3bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj"bubh)}(hhh]j)}(hxarrayh]hxarray}(hjDbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAbubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjFbmodnameN classnameNj%j%)}j%]j%)}j%j bsbc.xa_alloc_irqasbuh1hhj"bubju)}(h h]h }(hjdbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj"bubj)}(hj*h]h*}(hjrbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"bubj)}(hxah]hxa}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"bubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjbubj)}(hu32 *idh](h)}(hhh]j)}(hu32h]hu32}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjbmodnameN classnameNj%j%)}j%]j`bc.xa_alloc_irqasbuh1hhjbubju)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjbubj)}(hj*h]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hidh]hid}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjbubj)}(h void *entryh](jc)}(hvoidh]hvoid}(hjbhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjbubju)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjbubj)}(hj*h]h*}(hj chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hentryh]hentry}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjbubj)}(hstruct xa_limit limith](jy)}(hj h]hstruct}(hj/chhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj+cubju)}(h h]h }(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj:iubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj6iubj)}(hhh]h)}(hPointer to ID.h]hPointer to ID.}(hjUihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQihMhjRiubah}(h]h ]h"]h$]h&]uh1jhj6iubeh}(h]h ]h"]h$]h&]uh1jhjQihMhjhubj)}(h``void *entry`` New entry. h](j)}(h``void *entry``h]jG)}(hjuih]h void *entry}(hjwihhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjsiubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjoiubj)}(hhh]h)}(h New entry.h]h New entry.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMhjiubah}(h]h ]h"]h$]h&]uh1jhjoiubeh}(h]h ]h"]h$]h&]uh1jhjihMhjhubj)}(h1``struct xa_limit limit`` Range of allocated ID. h](j)}(h``struct xa_limit limit``h]jG)}(hjih]hstruct xa_limit limit}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjiubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjiubj)}(hhh]h)}(hRange of allocated ID.h]hRange of allocated ID.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMhjiubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjihMhjhubj)}(h.``u32 *next`` Pointer to next ID to allocate. h](j)}(h ``u32 *next``h]jG)}(hjih]h u32 *next}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjiubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjiubj)}(hhh]h)}(hPointer to next ID to allocate.h]hPointer to next ID to allocate.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMhjiubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjihMhjhubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]jG)}(hj jh]h gfp_t gfp}(hj"jhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjjubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hj9jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5jhMhj6jubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhj5jhMhjhubeh}(h]h ]h"]h$]h&]uh1jhjhubh)}(h**Description**h]jZ)}(hj[jh]h Description}(hj]jhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjYjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjhubh)}(hX)Finds an empty entry in **xa** between **limit.min** and **limit.max**, stores the index into the **id** pointer, then stores the entry at that index. A concurrent lookup will not see an uninitialised **id**. The search for an empty entry will start at **next** and will wrap around if necessary.h](hFinds an empty entry in }(hjqjhhhNhNubjZ)}(h**xa**h]hxa}(hjyjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjqjubh between }(hjqjhhhNhNubjZ)}(h **limit.min**h]h limit.min}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjqjubh and }(hjqjhhhNhNubjZ)}(h **limit.max**h]h limit.max}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjqjubh, stores the index into the }(hjqjhhhNhNubjZ)}(h**id**h]hid}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjqjubhb pointer, then stores the entry at that index. A concurrent lookup will not see an uninitialised }(hjqjhhhNhNubjZ)}(h**id**h]hid}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjqjubh.. The search for an empty entry will start at }(hjqjhhhNhNubjZ)}(h**next**h]hnext}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjqjubh# and will wrap around if necessary.}(hjqjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjhubh)}(h_Must only be operated on an xarray initialized with flag XA_FLAGS_ALLOC set in xa_init_flags().h]h_Must only be operated on an xarray initialized with flag XA_FLAGS_ALLOC set in xa_init_flags().}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjhubh)}(heNote that callers interested in whether wrapping has occurred should use __xa_alloc_cyclic() instead.h]heNote that callers interested in whether wrapping has occurred should use __xa_alloc_cyclic() instead.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjhubh)}(h **Context**h]jZ)}(hj kh]hContext}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj kubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjhubh)}(hUAny context. Takes and releases the xa_lock. May sleep if the **gfp** flags permit.h](h@Any context. Takes and releases the xa_lock. May sleep if the }(hj"khhhNhNubjZ)}(h**gfp**h]hgfp}(hj*khhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj"kubh flags permit.}(hj"khhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjhubh)}(h **Return**h]jZ)}(hjEkh]hReturn}(hjGkhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjCkubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjhubh)}(h|0 if the allocation succeeded, -ENOMEM if memory could not be allocated or -EBUSY if there are no free entries in **limit**.h](hr0 if the allocation succeeded, -ENOMEM if memory could not be allocated or -EBUSY if there are no free entries in }(hj[khhhNhNubjZ)}(h **limit**h]hlimit}(hjckhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj[kubh.}(hj[khhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_alloc_cyclic_bh (C function)c.xa_alloc_cyclic_bhhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hmint xa_alloc_cyclic_bh (struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, u32 *next, gfp_t gfp)h]j])}(hlint xa_alloc_cyclic_bh(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, u32 *next, gfp_t gfp)h](jc)}(hinth]hint}(hjkhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjkhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubju)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjkhhhjkhMubj)}(hxa_alloc_cyclic_bhh]j)}(hxa_alloc_cyclic_bhh]hxa_alloc_cyclic_bh}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ](jjeh"]h$]h&]hhuh1jhjkhhhjkhMubj)}(hV(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, u32 *next, gfp_t gfp)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjkubju)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjkubh)}(hhh]j)}(hxarrayh]hxarray}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjkmodnameN classnameNj%j%)}j%]j%)}j%jksbc.xa_alloc_cyclic_bhasbuh1hhjkubju)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjkubj)}(hj*h]h*}(hj%lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj)}(hxah]hxa}(hj2lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjkubj)}(hu32 *idh](h)}(hhh]j)}(hu32h]hu32}(hjNlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKlubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjPlmodnameN classnameNj%j%)}j%]jlc.xa_alloc_cyclic_bhasbuh1hhjGlubju)}(h h]h }(hjllhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjGlubj)}(hj*h]h*}(hjzlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGlubj)}(hidh]hid}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGlubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjkubj)}(h void *entryh](jc)}(hvoidh]hvoid}(hjlhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjlubju)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjlubj)}(hj*h]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hentryh]hentry}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjkubj)}(hstruct xa_limit limith](jy)}(hj h]hstruct}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjlubju)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjlubh)}(hhh]j)}(hxa_limith]hxa_limit}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmmodnameN classnameNj%j%)}j%]jlc.xa_alloc_cyclic_bhasbuh1hhjlubju)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjlubj)}(hlimith]hlimit}(hj,mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjkubj)}(h u32 *nexth](h)}(hhh]j)}(hu32h]hu32}(hjHmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEmubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjJmmodnameN classnameNj%j%)}j%]jlc.xa_alloc_cyclic_bhasbuh1hhjAmubju)}(h h]h }(hjfmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjAmubj)}(hj*h]h*}(hjtmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAmubj)}(hnexth]hnext}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAmubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjkubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmmodnameN classnameNj%j%)}j%]jlc.xa_alloc_cyclic_bhasbuh1hhjmubju)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjmubj)}(hgfph]hgfp}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjkubeh}(h]h ]h"]h$]h&]hhuh1jhjkhhhjkhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjkhhhjkhMubah}(h]jkah ](jj eh"]h$]h&]j$j%)j&huh1jVhjkhMhjkhhubj()}(hhh]h)}(h1Find somewhere to store this entry in the XArray.h]h1Find somewhere to store this entry in the XArray.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjmhhubah}(h]h ]h"]h$]h&]uh1j'hjkhhhjkhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJj njKj njLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xarray *xa`` XArray. ``u32 *id`` Pointer to ID. ``void *entry`` New entry. ``struct xa_limit limit`` Range of allocated ID. ``u32 *next`` Pointer to next ID to allocate. ``gfp_t gfp`` Memory allocation flags. **Description** Finds an empty entry in **xa** between **limit.min** and **limit.max**, stores the index into the **id** pointer, then stores the entry at that index. A concurrent lookup will not see an uninitialised **id**. The search for an empty entry will start at **next** and will wrap around if necessary. Must only be operated on an xarray initialized with flag XA_FLAGS_ALLOC set in xa_init_flags(). Note that callers interested in whether wrapping has occurred should use __xa_alloc_cyclic() instead. **Context** Any context. Takes and releases the xa_lock while disabling softirqs. May sleep if the **gfp** flags permit. **Return** 0 if the allocation succeeded, -ENOMEM if memory could not be allocated or -EBUSY if there are no free entries in **limit**.h](h)}(h**Parameters**h]jZ)}(hjnh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjnubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjnubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hj4nh]hstruct xarray *xa}(hj6nhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj2nubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj.nubj)}(hhh]h)}(hXArray.h]hXArray.}(hjMnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjInhMhjJnubah}(h]h ]h"]h$]h&]uh1jhj.nubeh}(h]h ]h"]h$]h&]uh1jhjInhMhj+nubj)}(h``u32 *id`` Pointer to ID. h](j)}(h ``u32 *id``h]jG)}(hjmnh]hu32 *id}(hjonhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjknubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjgnubj)}(hhh]h)}(hPointer to ID.h]hPointer to ID.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjnubah}(h]h ]h"]h$]h&]uh1jhjgnubeh}(h]h ]h"]h$]h&]uh1jhjnhMhj+nubj)}(h``void *entry`` New entry. h](j)}(h``void *entry``h]jG)}(hjnh]h void *entry}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjnubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjnubj)}(hhh]h)}(h New entry.h]h New entry.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjnhMhj+nubj)}(h1``struct xa_limit limit`` Range of allocated ID. h](j)}(h``struct xa_limit limit``h]jG)}(hjnh]hstruct xa_limit limit}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjnubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjnubj)}(hhh]h)}(hRange of allocated ID.h]hRange of allocated ID.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjnhMhj+nubj)}(h.``u32 *next`` Pointer to next ID to allocate. h](j)}(h ``u32 *next``h]jG)}(hjoh]h u32 *next}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjoubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjoubj)}(hhh]h)}(hPointer to next ID to allocate.h]hPointer to next ID to allocate.}(hj1ohhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-ohMhj.oubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhj-ohMhj+nubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]jG)}(hjQoh]h gfp_t gfp}(hjSohhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjOoubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjKoubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hjjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfohMhjgoubah}(h]h ]h"]h$]h&]uh1jhjKoubeh}(h]h ]h"]h$]h&]uh1jhjfohMhj+nubeh}(h]h ]h"]h$]h&]uh1jhjnubh)}(h**Description**h]jZ)}(hjoh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjoubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjnubh)}(hX)Finds an empty entry in **xa** between **limit.min** and **limit.max**, stores the index into the **id** pointer, then stores the entry at that index. A concurrent lookup will not see an uninitialised **id**. The search for an empty entry will start at **next** and will wrap around if necessary.h](hFinds an empty entry in }(hjohhhNhNubjZ)}(h**xa**h]hxa}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjoubh between }(hjohhhNhNubjZ)}(h **limit.min**h]h limit.min}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjoubh and }(hjohhhNhNubjZ)}(h **limit.max**h]h limit.max}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjoubh, stores the index into the }(hjohhhNhNubjZ)}(h**id**h]hid}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjoubhb pointer, then stores the entry at that index. A concurrent lookup will not see an uninitialised }(hjohhhNhNubjZ)}(h**id**h]hid}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjoubh.. The search for an empty entry will start at }(hjohhhNhNubjZ)}(h**next**h]hnext}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjoubh# and will wrap around if necessary.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjnubh)}(h_Must only be operated on an xarray initialized with flag XA_FLAGS_ALLOC set in xa_init_flags().h]h_Must only be operated on an xarray initialized with flag XA_FLAGS_ALLOC set in xa_init_flags().}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjnubh)}(heNote that callers interested in whether wrapping has occurred should use __xa_alloc_cyclic() instead.h]heNote that callers interested in whether wrapping has occurred should use __xa_alloc_cyclic() instead.}(hj,phhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjnubh)}(h **Context**h]jZ)}(hj=ph]hContext}(hj?phhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj;pubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjnubh)}(hnAny context. Takes and releases the xa_lock while disabling softirqs. May sleep if the **gfp** flags permit.h](hYAny context. Takes and releases the xa_lock while disabling softirqs. May sleep if the }(hjSphhhNhNubjZ)}(h**gfp**h]hgfp}(hj[phhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjSpubh flags permit.}(hjSphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjnubh)}(h **Return**h]jZ)}(hjvph]hReturn}(hjxphhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjtpubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjnubh)}(h|0 if the allocation succeeded, -ENOMEM if memory could not be allocated or -EBUSY if there are no free entries in **limit**.h](hr0 if the allocation succeeded, -ENOMEM if memory could not be allocated or -EBUSY if there are no free entries in }(hjphhhNhNubjZ)}(h **limit**h]hlimit}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjpubh.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jM xa_alloc_cyclic_irq (C function)c.xa_alloc_cyclic_irqhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hnint xa_alloc_cyclic_irq (struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, u32 *next, gfp_t gfp)h]j])}(hmint xa_alloc_cyclic_irq(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, u32 *next, gfp_t gfp)h](jc)}(hinth]hint}(hjphhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjphhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubju)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjphhhjphMubj)}(hxa_alloc_cyclic_irqh]j)}(hxa_alloc_cyclic_irqh]hxa_alloc_cyclic_irq}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](jjeh"]h$]h&]hhuh1jhjphhhjphMubj)}(hV(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, u32 *next, gfp_t gfp)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hj qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjqubju)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjqubh)}(hhh]j)}(hxarrayh]hxarray}(hj(qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%qubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj*qmodnameN classnameNj%j%)}j%]j%)}j%jpsbc.xa_alloc_cyclic_irqasbuh1hhjqubju)}(h h]h }(hjHqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjqubj)}(hj*h]h*}(hjVqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hxah]hxa}(hjcqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjqubj)}(hu32 *idh](h)}(hhh]j)}(hu32h]hu32}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|qubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjqmodnameN classnameNj%j%)}j%]jDqc.xa_alloc_cyclic_irqasbuh1hhjxqubju)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjxqubj)}(hj*h]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxqubj)}(hidh]hid}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxqubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjqubj)}(h void *entryh](jc)}(hvoidh]hvoid}(hjqhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjqubju)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjqubj)}(hj*h]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hentryh]hentry}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjqubj)}(hstruct xa_limit limith](jy)}(hj h]hstruct}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjrubju)}(h h]h }(hj rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjrubh)}(hhh]j)}(hxa_limith]hxa_limit}(hj1rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.rubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj3rmodnameN classnameNj%j%)}j%]jDqc.xa_alloc_cyclic_irqasbuh1hhjrubju)}(h h]h }(hjOrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjrubj)}(hlimith]hlimit}(hj]rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjqubj)}(h u32 *nexth](h)}(hhh]j)}(hu32h]hu32}(hjyrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvrubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj{rmodnameN classnameNj%j%)}j%]jDqc.xa_alloc_cyclic_irqasbuh1hhjrrubju)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjrrubj)}(hj*h]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrrubj)}(hnexth]hnext}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrrubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjqubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjrmodnameN classnameNj%j%)}j%]jDqc.xa_alloc_cyclic_irqasbuh1hhjrubju)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjrubj)}(hgfph]hgfp}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjqubeh}(h]h ]h"]h$]h&]hhuh1jhjphhhjphMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjphhhjphMubah}(h]jpah ](jj eh"]h$]h&]j$j%)j&huh1jVhjphMhjphhubj()}(hhh]h)}(h1Find somewhere to store this entry in the XArray.h]h1Find somewhere to store this entry in the XArray.}(hj$shhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj!shhubah}(h]h ]h"]h$]h&]uh1j'hjphhhjphMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj+yhhhj=yhMDubj)}(h xa_reserve_bhh]j)}(h xa_reserve_bhh]h xa_reserve_bh}(hjPyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLyubah}(h]h ](jjeh"]h$]h&]hhuh1jhj+yhhhj=yhMDubj)}(h3(struct xarray *xa, unsigned long index, gfp_t gfp)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hjlyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjhyubju)}(h h]h }(hjyyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhyubh)}(hhh]j)}(hxarrayh]hxarray}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjymodnameN classnameNj%j%)}j%]j%)}j%jRysbc.xa_reserve_bhasbuh1hhjhyubju)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhyubj)}(hj*h]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhyubj)}(hxah]hxa}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhyubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjdyubj)}(hunsigned long indexh](jc)}(hunsignedh]hunsigned}(hjyhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjyubju)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjyubjc)}(hlongh]hlong}(hjyhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjyubju)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjyubj)}(hindexh]hindex}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjdyubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj2zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/zubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj4zmodnameN classnameNj%j%)}j%]jyc.xa_reserve_bhasbuh1hhj+zubju)}(h h]h }(hjPzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj+zubj)}(hgfph]hgfp}(hj^zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+zubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjdyubeh}(h]h ]h"]h$]h&]hhuh1jhj+yhhhj=yhMDubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj'yhhhj=yhMDubah}(h]j"yah ](jj eh"]h$]h&]j$j%)j&huh1jVhj=yhMDhj$yhhubj()}(hhh]h)}(h!Reserve this index in the XArray.h]h!Reserve this index in the XArray.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMDhjzhhubah}(h]h ]h"]h$]h&]uh1j'hj$yhhhj=yhMDubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjzjKjzjLjMjNuh1jQhhhj/hNhNubjP)}(hX_**Parameters** ``struct xarray *xa`` XArray. ``unsigned long index`` Index into array. ``gfp_t gfp`` Memory allocation flags. **Description** A softirq-disabling version of xa_reserve(). **Context** Any context. Takes and releases the xa_lock while disabling softirqs. **Return** 0 if the reservation succeeded or -ENOMEM if it failed.h](h)}(h**Parameters**h]jZ)}(hjzh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjzubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMHhjzubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hjzh]hstruct xarray *xa}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjzubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMEhjzubj)}(hhh]h)}(hXArray.h]hXArray.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMEhjzubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjzhMEhjzubj)}(h*``unsigned long index`` Index into array. h](j)}(h``unsigned long index``h]jG)}(hj{h]hunsigned long index}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj{ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMFhjzubj)}(hhh]h)}(hIndex into array.h]hIndex into array.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMFhj{ubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhj{hMFhjzubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]jG)}(hj;{h]h gfp_t gfp}(hj={hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj9{ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMGhj5{ubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hjT{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjP{hMGhjQ{ubah}(h]h ]h"]h$]h&]uh1jhj5{ubeh}(h]h ]h"]h$]h&]uh1jhjP{hMGhjzubeh}(h]h ]h"]h$]h&]uh1jhjzubh)}(h**Description**h]jZ)}(hjv{h]h Description}(hjx{hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjt{ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMIhjzubh)}(h,A softirq-disabling version of xa_reserve().h]h,A softirq-disabling version of xa_reserve().}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMHhjzubh)}(h **Context**h]jZ)}(hj{h]hContext}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj{ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMJhjzubh)}(hFAny context. Takes and releases the xa_lock while disabling softirqs.h]hFAny context. Takes and releases the xa_lock while disabling softirqs.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMKhjzubh)}(h **Return**h]jZ)}(hj{h]hReturn}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj{ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMNhjzubh)}(h70 if the reservation succeeded or -ENOMEM if it failed.h]h70 if the reservation succeeded or -ENOMEM if it failed.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMMhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_reserve_irq (C function)c.xa_reserve_irqhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hFint xa_reserve_irq (struct xarray *xa, unsigned long index, gfp_t gfp)h]j])}(hEint xa_reserve_irq(struct xarray *xa, unsigned long index, gfp_t gfp)h](jc)}(hinth]hint}(hj |hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj|hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMVubju)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj|hhhj|hMVubj)}(hxa_reserve_irqh]j)}(hxa_reserve_irqh]hxa_reserve_irq}(hj*|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&|ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj|hhhj|hMVubj)}(h3(struct xarray *xa, unsigned long index, gfp_t gfp)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hjF|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjB|ubju)}(h h]h }(hjS|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjB|ubh)}(hhh]j)}(hxarrayh]hxarray}(hjd|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja|ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjf|modnameN classnameNj%j%)}j%]j%)}j%j,|sbc.xa_reserve_irqasbuh1hhjB|ubju)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjB|ubj)}(hj*h]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB|ubj)}(hxah]hxa}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB|ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj>|ubj)}(hunsigned long indexh](jc)}(hunsignedh]hunsigned}(hj|hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj|ubju)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj|ubjc)}(hlongh]hlong}(hj|hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj|ubju)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj|ubj)}(hindexh]hindex}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj>|ubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj }hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj }ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj}modnameN classnameNj%j%)}j%]j|c.xa_reserve_irqasbuh1hhj}ubju)}(h h]h }(hj*}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj}ubj)}(hgfph]hgfp}(hj8}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj>|ubeh}(h]h ]h"]h$]h&]hhuh1jhj|hhhj|hMVubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj|hhhj|hMVubah}(h]j{ah ](jj eh"]h$]h&]j$j%)j&huh1jVhj|hMVhj{hhubj()}(hhh]h)}(h!Reserve this index in the XArray.h]h!Reserve this index in the XArray.}(hjb}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMVhj_}hhubah}(h]h ]h"]h$]h&]uh1j'hj{hhhj|hMVubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjz}jKjz}jLjMjNuh1jQhhhj/hNhNubjP)}(hXh**Parameters** ``struct xarray *xa`` XArray. ``unsigned long index`` Index into array. ``gfp_t gfp`` Memory allocation flags. **Description** An interrupt-disabling version of xa_reserve(). **Context** Process context. Takes and releases the xa_lock while disabling interrupts. **Return** 0 if the reservation succeeded or -ENOMEM if it failed.h](h)}(h**Parameters**h]jZ)}(hj}h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj}ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMZhj~}ubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hj}h]hstruct xarray *xa}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj}ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMWhj}ubj)}(hhh]h)}(hXArray.h]hXArray.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMWhj}ubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhj}hMWhj}ubj)}(h*``unsigned long index`` Index into array. h](j)}(h``unsigned long index``h]jG)}(hj}h]hunsigned long index}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj}ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMXhj}ubj)}(hhh]h)}(hIndex into array.h]hIndex into array.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMXhj}ubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhj}hMXhj}ubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]jG)}(hj~h]h gfp_t gfp}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj~ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMYhj~ubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hj.~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*~hMYhj+~ubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj*~hMYhj}ubeh}(h]h ]h"]h$]h&]uh1jhj~}ubh)}(h**Description**h]jZ)}(hjP~h]h Description}(hjR~hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjN~ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM[hj~}ubh)}(h/An interrupt-disabling version of xa_reserve().h]h/An interrupt-disabling version of xa_reserve().}(hjf~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMZhj~}ubh)}(h **Context**h]jZ)}(hjw~h]hContext}(hjy~hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhju~ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM\hj~}ubh)}(hLProcess context. Takes and releases the xa_lock while disabling interrupts.h]hLProcess context. Takes and releases the xa_lock while disabling interrupts.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM]hj~}ubh)}(h **Return**h]jZ)}(hj~h]hReturn}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj~ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM`hj~}ubh)}(h70 if the reservation succeeded or -ENOMEM if it failed.h]h70 if the reservation succeeded or -ENOMEM if it failed.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM_hj~}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_release (C function) c.xa_releasehNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h8void xa_release (struct xarray *xa, unsigned long index)h]j])}(h7void xa_release(struct xarray *xa, unsigned long index)h](jc)}(hvoidh]hvoid}(hj~hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj~hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhubju)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj~hhhj~hMhubj)}(h xa_releaseh]j)}(h xa_releaseh]h xa_release}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhj~hhhj~hMhubj)}(h((struct xarray *xa, unsigned long index)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxarrayh]hxarray}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj@modnameN classnameNj%j%)}j%]j%)}j%jsb c.xa_releaseasbuh1hhjubju)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxah]hxa}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long indexh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhj~hhhj~hMhubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj~hhhj~hMhubah}(h]j~ah ](jj eh"]h$]h&]j$j%)j&huh1jVhj~hMhhj~hhubj()}(hhh]h)}(hRelease a reserved entry.h]hRelease a reserved entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhhjhhubah}(h]h ]h"]h$]h&]uh1j'hj~hhhj~hMhubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJj jKj jLjMjNuh1jQhhhj/hNhNubjP)}(hX **Parameters** ``struct xarray *xa`` XArray. ``unsigned long index`` Index of entry. **Description** After calling xa_reserve(), you can call this function to release the reservation. If the entry at **index** has been stored to, this function will do nothing.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMlhjubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hj5h]hstruct xarray *xa}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj3ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMihj/ubj)}(hhh]h)}(hXArray.h]hXArray.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMihjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMihj,ubj)}(h(``unsigned long index`` Index of entry. h](j)}(h``unsigned long index``h]jG)}(hjnh]hunsigned long index}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjlubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMjhjhubj)}(hhh]h)}(hIndex of entry.h]hIndex of entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMjhjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhMjhj,ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMlhjubh)}(hAfter calling xa_reserve(), you can call this function to release the reservation. If the entry at **index** has been stored to, this function will do nothing.h](hdAfter calling xa_reserve(), you can call this function to release the reservation. If the entry at }(hjhhhNhNubjZ)}(h **index**h]hindex}(hjǀhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh3 has been stored to, this function will do nothing.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMkhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_is_sibling (C function)c.xa_is_siblinghNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h&bool xa_is_sibling (const void *entry)h]j])}(h%bool xa_is_sibling(const void *entry)h](jc)}(hjh]hbool}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhj hMubj)}(h xa_is_siblingh]j)}(h xa_is_siblingh]h xa_is_sibling}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhj hMubj)}(h(const void *entry)h]j)}(hconst void *entryh](jy)}(hj|h]hconst}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj8ubju)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj8ubjc)}(hvoidh]hvoid}(hjWhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj8ubju)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj8ubj)}(hj*h]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj4ubah}(h]h ]h"]h$]h&]hhuh1jhjhhhj hMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhj hMubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhj hMhjhhubj()}(hhh]h)}(hIs the entry a sibling entry?h]hIs the entry a sibling entry?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j'hjhhhj hMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(h~**Parameters** ``const void *entry`` Entry retrieved from the XArray **Return** ``true`` if the entry is a sibling entry.h](h)}(h**Parameters**h]jZ)}(hj́h]h Parameters}(hj΁hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjʁubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM hjƁubj)}(hhh]j)}(h6``const void *entry`` Entry retrieved from the XArray h](j)}(h``const void *entry``h]jG)}(hjh]hconst void *entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubj)}(hhh]h)}(hEntry retrieved from the XArrayh]hEntry retrieved from the XArray}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjƁubh)}(h **Return**h]jZ)}(hj&h]hReturn}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj$ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM hjƁubh)}(h)``true`` if the entry is a sibling entry.h](jG)}(h``true``h]htrue}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj<ubh! if the entry is a sibling entry.}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM hjƁubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_is_retry (C function) c.xa_is_retryhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h$bool xa_is_retry (const void *entry)h]j])}(h#bool xa_is_retry(const void *entry)h](jc)}(hjh]hbool}(hjyhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjuhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjuhhhjhMubj)}(h xa_is_retryh]j)}(h xa_is_retryh]h xa_is_retry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjuhhhjhMubj)}(h(const void *entry)h]j)}(hconst void *entryh](jy)}(hj|h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hj‚hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubjc)}(hvoidh]hvoid}(hjЂhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjނhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjuhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjqhhhjhMubah}(h]jlah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhMhjnhhubj()}(hhh]h)}(hIs the entry a retry entry?h]hIs the entry a retry entry?}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj hhubah}(h]h ]h"]h$]h&]uh1j'hjnhhhjhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJj;jKj;jLjMjNuh1jQhhhj/hNhNubjP)}(h|**Parameters** ``const void *entry`` Entry retrieved from the XArray **Return** ``true`` if the entry is a retry entry.h](h)}(h**Parameters**h]jZ)}(hjEh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjCubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj?ubj)}(hhh]j)}(h6``const void *entry`` Entry retrieved from the XArray h](j)}(h``const void *entry``h]jG)}(hjdh]hconst void *entry}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjbubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj^ubj)}(hhh]h)}(hEntry retrieved from the XArrayh]hEntry retrieved from the XArray}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj?ubh)}(h'``true`` if the entry is a retry entry.h](jG)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh if the entry is a retry entry.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_is_advanced (C function)c.xa_is_advancedhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h'bool xa_is_advanced (const void *entry)h]j])}(h&bool xa_is_advanced(const void *entry)h](jc)}(hjh]hbool}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjhMubj)}(hxa_is_advancedh]j)}(hxa_is_advancedh]hxa_is_advanced}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMubj)}(h(const void *entry)h]j)}(hconst void *entryh](jy)}(hj|h]hconst}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj*ubju)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj*ubjc)}(hvoidh]hvoid}(hjIhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj*ubju)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj*ubj)}(hj*h]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hentryh]hentry}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj&ubah}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjhMubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhMhjhhubj()}(hhh]h)}(h1Is the entry only permitted for the advanced API?h]h1Is the entry only permitted for the advanced API?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(h**Parameters** ``const void *entry`` Entry to be stored in the XArray. **Return** ``true`` if the entry cannot be stored by the normal API.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM#hjubj)}(hhh]j)}(h8``const void *entry`` Entry to be stored in the XArray. h](j)}(h``const void *entry``h]jG)}(hj݄h]hconst void *entry}(hj߄hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjۄubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM hjׄubj)}(hhh]h)}(h!Entry to be stored in the XArray.h]h!Entry to be stored in the XArray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjׄubeh}(h]h ]h"]h$]h&]uh1jhjhM hjԄubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM"hjubh)}(h9``true`` if the entry cannot be stored by the normal API.h](jG)}(h``true``h]htrue}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj.ubh1 if the entry cannot be stored by the normal API.}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM"hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_update_node_t (C macro)c.xa_update_node_thNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hxa_update_node_th]j])}(hxa_update_node_th]j)}(hxa_update_node_th]j)}(hjeh]hxa_update_node_t}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ](jjeh"]h$]h&]hhuh1jhjghhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM*ubah}(h]h ]h"]h$]h&]hhjuh1j\jjhjchhhjhM*ubah}(h]j^ah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhM*hj`hhubj()}(hhh]h)}(h1**Typedef**: A callback function from the XArray.h](jZ)}(h **Typedef**h]hTypedef}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh&: A callback function from the XArray.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM,hjhhubah}(h]h ]h"]h$]h&]uh1j'hj`hhhjhM*ubeh}(h]h ](jDmacroeh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubh)}(h **Syntax**h]jZ)}(hjh]hSyntax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM/hj/hhubj )}(h1``void xa_update_node_t (struct xa_node *node)`` h]h)}(h0``void xa_update_node_t (struct xa_node *node)``h]jG)}(hjڅh]h,void xa_update_node_t (struct xa_node *node)}(hj܅hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj؅ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM1hjԅubah}(h]h ]h"]h$]h&]uh1j hjhM1hj/hhubjP)}(hX**Parameters** ``struct xa_node *node`` The node which is being processed **Description** This function is called every time the XArray updates the count of present and value entries in a node. It allows advanced users to maintain the private_list in the node. **Context** The xa_lock is held and interrupts may be disabled. Implementations should not drop the xa_lock, nor re-enable interrupts.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM5hjubj)}(hhh]j)}(h;``struct xa_node *node`` The node which is being processed h](j)}(h``struct xa_node *node``h]jG)}(hjh]hstruct xa_node *node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM+hjubj)}(hhh]h)}(h!The node which is being processedh]h!The node which is being processed}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hM+hj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hM+hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjVh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjTubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM-hjubh)}(hThis function is called every time the XArray updates the count of present and value entries in a node. It allows advanced users to maintain the private_list in the node.h]hThis function is called every time the XArray updates the count of present and value entries in a node. It allows advanced users to maintain the private_list in the node.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM,hjubh)}(h **Context**h]jZ)}(hj}h]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj{ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM0hjubh)}(hzThe xa_lock is held and interrupts may be disabled. Implementations should not drop the xa_lock, nor re-enable interrupts.h]hzThe xa_lock is held and interrupts may be disabled. Implementations should not drop the xa_lock, nor re-enable interrupts.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM1hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMXA_STATE (C macro) c.XA_STATEhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hXA_STATEh]j])}(hXA_STATEh]j)}(hXA_STATEh]j)}(hjh]hXA_STATE}(hjƆhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj†ubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMmubah}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjنhMmubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjنhMmhjhhubj()}(hhh]h}(h]h ]h"]h$]h&]uh1j'hjhhhjنhMmubeh}(h]h ](jDmacroeh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubh)}(h!``XA_STATE (name, array, index)``h]jG)}(hjh]hXA_STATE (name, array, index)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMohj/hhubj )}(h#Declare an XArray operation state. h]h)}(h"Declare an XArray operation state.h]h"Declare an XArray operation state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMmhjubah}(h]h ]h"]h$]h&]uh1j hj hMmhj/hhubjP)}(h**Parameters** ``name`` Name of this operation state (usually xas). ``array`` Array to operate on. ``index`` Initial index of interest. **Description** Declare and initialise an xa_state on the stack.h](h)}(h**Parameters**h]jZ)}(hj-h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj+ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMqhj'ubj)}(hhh](j)}(h5``name`` Name of this operation state (usually xas). h](j)}(h``name``h]jG)}(hjLh]hname}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjJubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMnhjFubj)}(hhh]h)}(h+Name of this operation state (usually xas).h]h+Name of this operation state (usually xas).}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahMnhjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahMnhjCubj)}(h``array`` Array to operate on. h](j)}(h ``array``h]jG)}(hjh]harray}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMohjubj)}(hhh]h)}(hArray to operate on.h]hArray to operate on.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMohjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMohjCubj)}(h%``index`` Initial index of interest. h](j)}(h ``index``h]jG)}(hjh]hindex}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMphjubj)}(hhh]h)}(hInitial index of interest.h]hInitial index of interest.}(hjׇhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjӇhMphjԇubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjӇhMphjCubeh}(h]h ]h"]h$]h&]uh1jhj'ubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMrhj'ubh)}(h0Declare and initialise an xa_state on the stack.h]h0Declare and initialise an xa_state on the stack.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMqhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMXA_STATE_ORDER (C macro)c.XA_STATE_ORDERhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hXA_STATE_ORDERh]j])}(hXA_STATE_ORDERh]j)}(hXA_STATE_ORDERh]j)}(hj8h]hXA_STATE_ORDER}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj:hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMxubah}(h]h ]h"]h$]h&]hhjuh1j\jjhj6hhhjUhMxubah}(h]j1ah ](jj eh"]h$]h&]j$j%)j&huh1jVhjUhMxhj3hhubj()}(hhh]h}(h]h ]h"]h$]h&]uh1j'hj3hhhjUhMxubeh}(h]h ](jDmacroeh"]h$]h&]jIjDjJjnjKjnjLjMjNuh1jQhhhj/hNhNubh)}(h.``XA_STATE_ORDER (name, array, index, order)``h]jG)}(hjth]h*XA_STATE_ORDER (name, array, index, order)}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjrubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMzhj/hhubj )}(h#Declare an XArray operation state. h]h)}(h"Declare an XArray operation state.h]h"Declare an XArray operation state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMxhjubah}(h]h ]h"]h$]h&]uh1j hjhMxhj/hhubjP)}(hXV**Parameters** ``name`` Name of this operation state (usually xas). ``array`` Array to operate on. ``index`` Initial index of interest. ``order`` Order of entry. **Description** Declare and initialise an xa_state on the stack. This variant of XA_STATE() allows you to specify the 'order' of the element you want to operate on.`h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM|hjubj)}(hhh](j)}(h5``name`` Name of this operation state (usually xas). h](j)}(h``name``h]jG)}(hjȈh]hname}(hjʈhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjƈubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMyhjˆubj)}(hhh]h)}(h+Name of this operation state (usually xas).h]h+Name of this operation state (usually xas).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj݈hMyhjވubah}(h]h ]h"]h$]h&]uh1jhjˆubeh}(h]h ]h"]h$]h&]uh1jhj݈hMyhjubj)}(h``array`` Array to operate on. h](j)}(h ``array``h]jG)}(hjh]harray}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMzhjubj)}(hhh]h)}(hArray to operate on.h]hArray to operate on.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMzhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMzhjubj)}(h%``index`` Initial index of interest. h](j)}(h ``index``h]jG)}(hj:h]hindex}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj8ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM{hj4ubj)}(hhh]h)}(hInitial index of interest.h]hInitial index of interest.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhM{hjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhM{hjubj)}(h``order`` Order of entry. h](j)}(h ``order``h]jG)}(hjsh]horder}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjqubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM|hjmubj)}(hhh]h)}(hOrder of entry.h]hOrder of entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM|hjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhM|hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM~hjubh)}(hDeclare and initialise an xa_state on the stack. This variant of XA_STATE() allows you to specify the 'order' of the element you want to operate on.`h]hDeclare and initialise an xa_state on the stack. This variant of XA_STATE() allows you to specify the ‘order’ of the element you want to operate on.`}(hjĉhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM}hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_error (C function) c.xas_errorhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h*int xas_error (const struct xa_state *xas)h]j])}(h)int xas_error(const struct xa_state *xas)h](jc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjhMubj)}(h xas_errorh]j)}(h xas_errorh]h xas_error}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMubj)}(h(const struct xa_state *xas)h]j)}(hconst struct xa_state *xash](jy)}(hj|h]hconst}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj,ubju)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj,ubjy)}(hj h]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj,ubju)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj,ubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjkmodnameN classnameNj%j%)}j%]j%)}j%jsb c.xas_errorasbuh1hhj,ubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj,ubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj)}(hxash]hxas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj(ubah}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjhMubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhMhjhhubj()}(hhh]h)}(h'Return an errno stored in the xa_state.h]h'Return an errno stored in the xa_state.}(hjΊhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjˊhhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(h**Parameters** ``const struct xa_state *xas`` XArray operation state. **Return** 0 if no error has been noted. A negative errno if one has.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubj)}(hhh]j)}(h7``const struct xa_state *xas`` XArray operation state. h](j)}(h``const struct xa_state *xas``h]jG)}(hjh]hconst struct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj ubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]jZ)}(hjJh]hReturn}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjHubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubh)}(h;0 if no error has been noted. A negative errno if one has.h]h;0 if no error has been noted. A negative errno if one has.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_set_err (C function) c.xas_set_errhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h1void xas_set_err (struct xa_state *xas, long err)h]j])}(h0void xas_set_err(struct xa_state *xas, long err)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjhMubj)}(h xas_set_errh]j)}(h xas_set_errh]h xas_set_err}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMubj)}(h (struct xa_state *xas, long err)h](j)}(hstruct xa_state *xash](jy)}(hj h]hstruct}(hj̋hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjȋubju)}(h h]h }(hjًhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjȋubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jsb c.xas_set_errasbuh1hhjȋubju)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjȋubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȋubj)}(hxash]hxas}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȋubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjċubj)}(hlong errh](jc)}(hlongh]hlong}(hj>hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj:ubju)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj:ubj)}(herrh]herr}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjċubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjhMubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhMhjhhubj()}(hhh]h)}(hNote an error in the xa_state.h]hNote an error in the xa_state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(hX?**Parameters** ``struct xa_state *xas`` XArray operation state. ``long err`` Negative error number. **Description** Only call this function with a negative **err**; zero or positive errors will probably not behave the way you think they should. If you want to clear the error from an xa_state, use xas_reset().h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubj)}(hhh](j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]jG)}(hjŌh]hstruct xa_state *xas}(hjnjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjÌubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjތhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjڌhMhjیubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjڌhMhjubj)}(h$``long err`` Negative error number. h](j)}(h ``long err``h]jG)}(hjh]hlong err}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubj)}(hhh]h)}(hNegative error number.h]hNegative error number.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hj9h]h Description}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj7ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubh)}(hOnly call this function with a negative **err**; zero or positive errors will probably not behave the way you think they should. If you want to clear the error from an xa_state, use xas_reset().h](h(Only call this function with a negative }(hjOhhhNhNubjZ)}(h**err**h]herr}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjOubh; zero or positive errors will probably not behave the way you think they should. If you want to clear the error from an xa_state, use xas_reset().}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_invalid (C function) c.xas_invalidhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h-bool xas_invalid (const struct xa_state *xas)h]j])}(h,bool xas_invalid(const struct xa_state *xas)h](jc)}(hjh]hbool}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjhMubj)}(h xas_invalidh]j)}(h xas_invalidh]h xas_invalid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMubj)}(h(const struct xa_state *xas)h]j)}(hconst struct xa_state *xash](jy)}(hj|h]hconst}(hj̍hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjȍubju)}(h h]h }(hjٍhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjȍubjy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjȍubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjȍubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jsb c.xas_invalidasbuh1hhjȍubju)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjȍubj)}(hj*h]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȍubj)}(hxash]hxas}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȍubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjčubah}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjhMubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhMhjhhubj()}(hhh]h)}(h%Is the xas in a retry or error state?h]h%Is the xas in a retry or error state?}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjghhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(h**Parameters** ``const struct xa_state *xas`` XArray operation state. **Return** ``true`` if the xas cannot be used for operations.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubj)}(hhh]j)}(h7``const struct xa_state *xas`` XArray operation state. h](j)}(h``const struct xa_state *xas``h]jG)}(hjh]hconst struct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjĎhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubh)}(h2``true`` if the xas cannot be used for operations.h](jG)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh* if the xas cannot be used for operations.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_valid (C function) c.xas_validhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h+bool xas_valid (const struct xa_state *xas)h]j])}(h*bool xas_valid(const struct xa_state *xas)h](jc)}(hjh]hbool}(hj9hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj5hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubju)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj5hhhjFhMubj)}(h xas_validh]j)}(h xas_validh]h xas_valid}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ](jjeh"]h$]h&]hhuh1jhj5hhhjFhMubj)}(h(const struct xa_state *xas)h]j)}(hconst struct xa_state *xash](jy)}(hj|h]hconst}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjqubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjqubjy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjqubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjqubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%j[sb c.xas_validasbuh1hhjqubju)}(h h]h }(hjΏhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjqubj)}(hj*h]h*}(hj܏hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hxash]hxas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjmubah}(h]h ]h"]h$]h&]hhuh1jhj5hhhjFhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj1hhhjFhMubah}(h]j,ah ](jj eh"]h$]h&]j$j%)j&huh1jVhjFhMhj.hhubj()}(hhh]h)}(h)Is the xas a valid cursor into the array?h]h)Is the xas a valid cursor into the array?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j'hj.hhhjFhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJj+jKj+jLjMjNuh1jQhhhj/hNhNubjP)}(h**Parameters** ``const struct xa_state *xas`` XArray operation state. **Return** ``true`` if the xas can be used for operations.h](h)}(h**Parameters**h]jZ)}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj3ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj/ubj)}(hhh]j)}(h7``const struct xa_state *xas`` XArray operation state. h](j)}(h``const struct xa_state *xas``h]jG)}(hjTh]hconst struct xa_state *xas}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjRubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjNubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMhjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihMhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj/ubh)}(h/``true`` if the xas can be used for operations.h](jG)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh' if the xas can be used for operations.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_is_node (C function) c.xas_is_nodehNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h-bool xas_is_node (const struct xa_state *xas)h]j])}(h,bool xas_is_node(const struct xa_state *xas)h](jc)}(hjh]hbool}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjސhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjސhhhjhMubj)}(h xas_is_nodeh]j)}(h xas_is_nodeh]h xas_is_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjސhhhjhMubj)}(h(const struct xa_state *xas)h]j)}(hconst struct xa_state *xash](jy)}(hj|h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubjy)}(hj h]hstruct}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjYmodnameN classnameNj%j%)}j%]j%)}j%jsb c.xas_is_nodeasbuh1hhjubju)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxash]hxas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjސhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjڐhhhjhMubah}(h]jՐah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhMhjאhhubj()}(hhh]h)}(hDoes the xas point to a node?h]hDoes the xas point to a node?}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjhhubah}(h]h ]h"]h$]h&]uh1j'hjאhhhjhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjԑjKjԑjLjMjNuh1jQhhhj/hNhNubjP)}(h**Parameters** ``const struct xa_state *xas`` XArray operation state. **Return** ``true`` if the xas currently references a node.h](h)}(h**Parameters**h]jZ)}(hjޑh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjܑubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjؑubj)}(hhh]j)}(h7``const struct xa_state *xas`` XArray operation state. h](j)}(h``const struct xa_state *xas``h]jG)}(hjh]hconst struct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjؑubh)}(h **Return**h]jZ)}(hj8h]hReturn}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj6ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjؑubh)}(h0``true`` if the xas currently references a node.h](jG)}(h``true``h]htrue}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjNubh( if the xas currently references a node.}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjؑubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_reset (C function) c.xas_resethNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h%void xas_reset (struct xa_state *xas)h]j])}(h$void xas_reset(struct xa_state *xas)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjhMubj)}(h xas_reseth]j)}(h xas_reseth]h xas_reset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMubj)}(h(struct xa_state *xas)h]j)}(hstruct xa_state *xash](jy)}(hj h]hstruct}(hjȒhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjĒubju)}(h h]h }(hjՒhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjĒubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jsb c.xas_resetasbuh1hhjĒubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjĒubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĒubj)}(hxash]hxas}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĒubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjhMubah}(h]j~ah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhMhjhhubj()}(hhh]h)}(h Reset an XArray operation state.h]h Reset an XArray operation state.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjHhhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjcjKjcjLjMjNuh1jQhhhj/hNhNubjP)}(hX"**Parameters** ``struct xa_state *xas`` XArray operation state. **Description** Resets the error or walk state of the **xas** so future walks of the array will start from the root. Use this if you have dropped the xarray lock and want to reuse the xa_state. **Context** Any context.h](h)}(h**Parameters**h]jZ)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjkubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjgubj)}(hhh]j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]jG)}(hjh]hstruct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjgubh)}(h**Description**h]jZ)}(hjǓh]h Description}(hjɓhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjœubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjgubh)}(hResets the error or walk state of the **xas** so future walks of the array will start from the root. Use this if you have dropped the xarray lock and want to reuse the xa_state.h](h&Resets the error or walk state of the }(hjݓhhhNhNubjZ)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjݓubh so future walks of the array will start from the root. Use this if you have dropped the xarray lock and want to reuse the xa_state.}(hjݓhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjgubh)}(h **Context**h]jZ)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjgubh)}(h Any context.h]h Any context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_retry (C function) c.xas_retryhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h8bool xas_retry (struct xa_state *xas, const void *entry)h]j])}(h7bool xas_retry(struct xa_state *xas, const void *entry)h](jc)}(hjh]hbool}(hjEhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjAhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubju)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjAhhhjRhMubj)}(h xas_retryh]j)}(h xas_retryh]h xas_retry}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ](jjeh"]h$]h&]hhuh1jhjAhhhjRhMubj)}(h)(struct xa_state *xas, const void *entry)h](j)}(hstruct xa_state *xash](jy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj}ubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj}ubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jgsb c.xas_retryasbuh1hhj}ubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj}ubj)}(hj*h]h*}(hj͔hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj)}(hxash]hxas}(hjڔhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjyubj)}(hconst void *entryh](jy)}(hj|h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubjc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hentryh]hentry}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjyubeh}(h]h ]h"]h$]h&]hhuh1jhjAhhhjRhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj=hhhjRhMubah}(h]j8ah ](jj eh"]h$]h&]j$j%)j&huh1jVhjRhMhj:hhubj()}(hhh]h)}(h#Retry the operation if appropriate.h]h#Retry the operation if appropriate.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj^hhubah}(h]h ]h"]h$]h&]uh1j'hj:hhhjRhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjyjKjyjLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xa_state *xas`` XArray operation state. ``const void *entry`` Entry from xarray. **Description** The advanced functions may sometimes return an internal entry, such as a retry entry or a zero entry. This function sets up the **xas** to restart the walk from the head of the array if needed. **Context** Any context. **Return** true if the operation needs to be retried.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj}ubj)}(hhh](j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]jG)}(hjh]hstruct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h)``const void *entry`` Entry from xarray. h](j)}(h``const void *entry``h]jG)}(hjەh]hconst void *entry}(hjݕhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjٕubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjՕubj)}(hhh]h)}(hEntry from xarray.h]hEntry from xarray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjՕubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhj}ubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj}ubh)}(hThe advanced functions may sometimes return an internal entry, such as a retry entry or a zero entry. This function sets up the **xas** to restart the walk from the head of the array if needed.h](hThe advanced functions may sometimes return an internal entry, such as a retry entry or a zero entry. This function sets up the }(hj,hhhNhNubjZ)}(h**xas**h]hxas}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj,ubh: to restart the walk from the head of the array if needed.}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj}ubh)}(h **Context**h]jZ)}(hjOh]hContext}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjMubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj}ubh)}(h Any context.h]h Any context.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj}ubh)}(h **Return**h]jZ)}(hjvh]hReturn}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjtubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj}ubh)}(h*true if the operation needs to be retried.h]h*true if the operation needs to be retried.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_reload (C function) c.xas_reloadhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h(void * xas_reload (struct xa_state *xas)h]j])}(h&void *xas_reload(struct xa_state *xas)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMAubju)}(h h]h }(hjʖhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjɖhMAubj)}(hj*h]h*}(hjؖhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjɖhMAubj)}(h xas_reloadh]j)}(h xas_reloadh]h xas_reload}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjɖhMAubj)}(h(struct xa_state *xas)h]j)}(hstruct xa_state *xash](jy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj%modnameN classnameNj%j%)}j%]j%)}j%jsb c.xas_reloadasbuh1hhjubju)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxash]hxas}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjhhhjɖhMAubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjɖhMAubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjɖhMAhjhhubj()}(hhh]h)}(h!Refetch an entry from the xarray.h]h!Refetch an entry from the xarray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMAhjhhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjɖhMAubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xa_state *xas`` XArray operation state. **Description** Use this function to check that a previously loaded entry still has the same value. This is useful for the lockless pagecache lookup where we walk the array with only the RCU lock to protect us, lock the page, then check that the page hasn't moved since we looked it up. The caller guarantees that **xas** is still valid. If it may be in an error or restart state, call xas_load() instead. **Return** The entry at this location in the xarray.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMEhjubj)}(hhh]j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]jG)}(hjɗh]hstruct xa_state *xas}(hj˗hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjǗubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMBhj×ubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjޗhMBhjߗubah}(h]h ]h"]h$]h&]uh1jhj×ubeh}(h]h ]h"]h$]h&]uh1jhjޗhMBhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMDhjubh)}(hXUse this function to check that a previously loaded entry still has the same value. This is useful for the lockless pagecache lookup where we walk the array with only the RCU lock to protect us, lock the page, then check that the page hasn't moved since we looked it up.h]hXUse this function to check that a previously loaded entry still has the same value. This is useful for the lockless pagecache lookup where we walk the array with only the RCU lock to protect us, lock the page, then check that the page hasn’t moved since we looked it up.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMChjubh)}(hwThe caller guarantees that **xas** is still valid. If it may be in an error or restart state, call xas_load() instead.h](hThe caller guarantees that }(hj)hhhNhNubjZ)}(h**xas**h]hxas}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj)ubhU is still valid. If it may be in an error or restart state, call xas_load() instead.}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMHhjubh)}(h **Return**h]jZ)}(hjLh]hReturn}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjJubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMKhjubh)}(h)The entry at this location in the xarray.h]h)The entry at this location in the xarray.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMLhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_set (C function) c.xas_sethNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h8void xas_set (struct xa_state *xas, unsigned long index)h]j])}(h7void xas_set(struct xa_state *xas, unsigned long index)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMcubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjhMcubj)}(hxas_seth]j)}(hxas_seth]hxas_set}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMcubj)}(h+(struct xa_state *xas, unsigned long index)h](j)}(hstruct xa_state *xash](jy)}(hj h]hstruct}(hjΘhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjʘubju)}(h h]h }(hjۘhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjʘubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jsb c.xas_setasbuh1hhjʘubju)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjʘubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʘubj)}(hxash]hxas}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʘubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjƘubj)}(hunsigned long indexh](jc)}(hunsignedh]hunsigned}(hj@hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj<ubju)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj<ubjc)}(hlongh]hlong}(hj\hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj<ubju)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj<ubj)}(hindexh]hindex}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjƘubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMcubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjhMcubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhMchjhhubj()}(hhh]h)}(h4Set up XArray operation state for a different index.h]h4Set up XArray operation state for a different index.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMchjhhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjhMcubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(hX+**Parameters** ``struct xa_state *xas`` XArray operation state. ``unsigned long index`` New index into the XArray. **Description** Move the operation state to refer to a different index. This will have the effect of starting a walk from the top; see xas_next() to move to an adjacent index.h](h)}(h**Parameters**h]jZ)}(hjęh]h Parameters}(hjƙhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj™ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMghjubj)}(hhh](j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]jG)}(hjh]hstruct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMdhjݙubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMdhjubah}(h]h ]h"]h$]h&]uh1jhjݙubeh}(h]h ]h"]h$]h&]uh1jhjhMdhjڙubj)}(h3``unsigned long index`` New index into the XArray. h](j)}(h``unsigned long index``h]jG)}(hjh]hunsigned long index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMehjubj)}(hhh]h)}(hNew index into the XArray.h]hNew index into the XArray.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMehj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hMehjڙubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjWh]h Description}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjUubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMghjubh)}(hMove the operation state to refer to a different index. This will have the effect of starting a walk from the top; see xas_next() to move to an adjacent index.h]hMove the operation state to refer to a different index. This will have the effect of starting a walk from the top; see xas_next() to move to an adjacent index.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMfhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_advance (C function) c.xas_advancehNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj:ubj)}(hhh](j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]jG)}(hj_h]hstruct xa_state *xas}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj]ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjYubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthMhjVubj)}(hC``xa_update_node_t update`` Function to call when updating a node. h](j)}(h``xa_update_node_t update``h]jG)}(hjh]hxa_update_node_t update}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubj)}(hhh]h)}(h&Function to call when updating a node.h]h&Function to call when updating a node.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjVubeh}(h]h ]h"]h$]h&]uh1jhj:ubh)}(h**Description**h]jZ)}(hjӠh]h Description}(hjՠhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjѠubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj:ubh)}(hThe XArray can notify a caller after it has updated an xa_node. This is advanced functionality and is only needed by the page cache and swap cache.h]hThe XArray can notify a caller after it has updated an xa_node. This is advanced functionality and is only needed by the page cache and swap cache.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_next_entry (C function)c.xas_next_entryhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h?void * xas_next_entry (struct xa_state *xas, unsigned long max)h]j])}(h=void *xas_next_entry(struct xa_state *xas, unsigned long max)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubju)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhj&hMubj)}(hj*h]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj&hMubj)}(hxas_next_entryh]j)}(hxas_next_entryh]hxas_next_entry}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhj&hMubj)}(h)(struct xa_state *xas, unsigned long max)h](j)}(hstruct xa_state *xash](jy)}(hj h]hstruct}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj^ubju)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj^ubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jHsbc.xas_next_entryasbuh1hhj^ubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj^ubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj)}(hxash]hxas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjZubj)}(hunsigned long maxh](jc)}(hunsignedh]hunsigned}(hjԡhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjСubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjСubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjСubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjСubj)}(hmaxh]hmax}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjСubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjZubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhj&hMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhj&hMubah}(h]j ah ](jj eh"]h$]h&]j$j%)j&huh1jVhj&hMhj hhubj()}(hhh]h)}(h'Advance iterator to next present entry.h]h'Advance iterator to next present entry.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj3hhubah}(h]h ]h"]h$]h&]uh1j'hj hhhj&hMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjNjKjNjLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xa_state *xas`` XArray operation state. ``unsigned long max`` Highest index to return. **Description** xas_next_entry() is an inline function to optimise xarray traversal for speed. It is equivalent to calling xas_find(), and will call xas_find() for all the hard cases. **Return** The next present entry after the one currently referred to by **xas**.h](h)}(h**Parameters**h]jZ)}(hjXh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjVubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjRubj)}(hhh](j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]jG)}(hjwh]hstruct xa_state *xas}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjuubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjqubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMhjnubj)}(h/``unsigned long max`` Highest index to return. h](j)}(h``unsigned long max``h]jG)}(hjh]hunsigned long max}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubj)}(hhh]h)}(hHighest index to return.h]hHighest index to return.}(hjɢhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjŢhMhjƢubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjŢhMhjnubeh}(h]h ]h"]h$]h&]uh1jhjRubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjRubh)}(hxas_next_entry() is an inline function to optimise xarray traversal for speed. It is equivalent to calling xas_find(), and will call xas_find() for all the hard cases.h]hxas_next_entry() is an inline function to optimise xarray traversal for speed. It is equivalent to calling xas_find(), and will call xas_find() for all the hard cases.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjRubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjRubh)}(hFThe next present entry after the one currently referred to by **xas**.h](h>The next present entry after the one currently referred to by }(hj(hhhNhNubjZ)}(h**xas**h]hxas}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj(ubh.}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_next_marked (C function)c.xas_next_markedhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hPvoid * xas_next_marked (struct xa_state *xas, unsigned long max, xa_mark_t mark)h]j])}(hNvoid *xas_next_marked(struct xa_state *xas, unsigned long max, xa_mark_t mark)h](jc)}(hvoidh]hvoid}(hjihhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjehhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubju)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjehhhjwhMubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhjwhMubj)}(hxas_next_markedh]j)}(hxas_next_markedh]hxas_next_marked}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjehhhjwhMubj)}(h9(struct xa_state *xas, unsigned long max, xa_mark_t mark)h](j)}(hstruct xa_state *xash](jy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjѣhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΣubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjӣmodnameN classnameNj%j%)}j%]j%)}j%jsbc.xas_next_markedasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxash]hxas}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long maxh](jc)}(hunsignedh]hunsigned}(hj%hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj!ubju)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj!ubjc)}(hlongh]hlong}(hjAhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj!ubju)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj!ubj)}(hmaxh]hmax}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hxa_mark_t markh](h)}(hhh]j)}(h xa_mark_th]h xa_mark_t}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj{modnameN classnameNj%j%)}j%]jc.xas_next_markedasbuh1hhjrubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjrubj)}(hmarkh]hmark}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjehhhjwhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjahhhjwhMubah}(h]j\ah ](jj eh"]h$]h&]j$j%)j&huh1jVhjwhMhj^hhubj()}(hhh]h)}(h&Advance iterator to next marked entry.h]h&Advance iterator to next marked entry.}(hjϤhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj̤hhubah}(h]h ]h"]h$]h&]uh1j'hj^hhhjwhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xa_state *xas`` XArray operation state. ``unsigned long max`` Highest index to return. ``xa_mark_t mark`` Mark to search for. **Description** xas_next_marked() is an inline function to optimise xarray traversal for speed. It is equivalent to calling xas_find_marked(), and will call xas_find_marked() for all the hard cases. **Return** The next marked entry after the one currently referred to by **xas**.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubj)}(hhh](j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]jG)}(hjh]hstruct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj ubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hMhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhjubj)}(h/``unsigned long max`` Highest index to return. h](j)}(h``unsigned long max``h]jG)}(hjIh]hunsigned long max}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjGubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjCubj)}(hhh]h)}(hHighest index to return.h]hHighest index to return.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMhjubj)}(h'``xa_mark_t mark`` Mark to search for. h](j)}(h``xa_mark_t mark``h]jG)}(hjh]hxa_mark_t mark}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj|ubj)}(hhh]h)}(hMark to search for.h]hMark to search for.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubh)}(hxas_next_marked() is an inline function to optimise xarray traversal for speed. It is equivalent to calling xas_find_marked(), and will call xas_find_marked() for all the hard cases.h]hxas_next_marked() is an inline function to optimise xarray traversal for speed. It is equivalent to calling xas_find_marked(), and will call xas_find_marked() for all the hard cases.}(hjӥhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubh)}(hEThe next marked entry after the one currently referred to by **xas**.h](h=The next marked entry after the one currently referred to by }(hjhhhNhNubjZ)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_for_each (C macro)c.xas_for_eachhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h xas_for_eachh]j])}(h xas_for_eachh]j)}(h xas_for_eachh]j)}(hj5h]h xas_for_each}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj7hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM ubah}(h]h ]h"]h$]h&]hhjuh1j\jjhj3hhhjRhM ubah}(h]j.ah ](jj eh"]h$]h&]j$j%)j&huh1jVhjRhM hj0hhubj()}(hhh]h}(h]h ]h"]h$]h&]uh1j'hj0hhhjRhM ubeh}(h]h ](jDmacroeh"]h$]h&]jIjDjJjkjKjkjLjMjNuh1jQhhhj/hNhNubh)}(h"``xas_for_each (xas, entry, max)``h]jG)}(hjqh]hxas_for_each (xas, entry, max)}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjoubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj/hhubj )}(h#Iterate over a range of an XArray. h]h)}(h"Iterate over a range of an XArray.h]h"Iterate over a range of an XArray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM hjubah}(h]h ]h"]h$]h&]uh1j hjhM hj/hhubjP)}(hX **Parameters** ``xas`` XArray operation state. ``entry`` Entry retrieved from the array. ``max`` Maximum index to retrieve from array. **Description** The loop body will be executed for each entry present in the xarray between the current xas position and **max**. **entry** will be set to the entry retrieved from the xarray. It is safe to delete entries from the array in the loop body. You should hold either the RCU lock or the xa_lock while iterating. If you need to drop the lock, call xas_pause() first.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubj)}(hhh](j)}(h ``xas`` XArray operation state. h](j)}(h``xas``h]jG)}(hjŦh]hxas}(hjǦhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjæubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjަhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjڦhMhjۦubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjڦhMhjubj)}(h*``entry`` Entry retrieved from the array. h](j)}(h ``entry``h]jG)}(hjh]hentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubj)}(hhh]h)}(hEntry retrieved from the array.h]hEntry retrieved from the array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h.``max`` Maximum index to retrieve from array. h](j)}(h``max``h]jG)}(hj7h]hmax}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj5ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj1ubj)}(hhh]h)}(h%Maximum index to retrieve from array.h]h%Maximum index to retrieve from array.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjrh]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjpubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubh)}(hXkThe loop body will be executed for each entry present in the xarray between the current xas position and **max**. **entry** will be set to the entry retrieved from the xarray. It is safe to delete entries from the array in the loop body. You should hold either the RCU lock or the xa_lock while iterating. If you need to drop the lock, call xas_pause() first.h](hiThe loop body will be executed for each entry present in the xarray between the current xas position and }(hjhhhNhNubjZ)}(h**max**h]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh. }(hjhhhNhNubjZ)}(h **entry**h]hentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh will be set to the entry retrieved from the xarray. It is safe to delete entries from the array in the loop body. You should hold either the RCU lock or the xa_lock while iterating. If you need to drop the lock, call xas_pause() first.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_for_each_marked (C macro)c.xas_for_each_markedhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hxas_for_each_markedh]j])}(hxas_for_each_markedh]j)}(hxas_for_each_markedh]j)}(hjէh]hxas_for_each_marked}(hjߧhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۧubah}(h]h ](jjeh"]h$]h&]hhuh1jhjקhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubah}(h]h ]h"]h$]h&]hhjuh1j\jjhjӧhhhjhMubah}(h]jΧah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhMhjЧhhubj()}(hhh]h}(h]h ]h"]h$]h&]uh1j'hjЧhhhjhMubeh}(h]h ](jDmacroeh"]h$]h&]jIjDjJj jKj jLjMjNuh1jQhhhj/hNhNubh)}(h/``xas_for_each_marked (xas, entry, max, mark)``h]jG)}(hjh]h+xas_for_each_marked (xas, entry, max, mark)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM hj/hhubj )}(h#Iterate over a range of an XArray. h]h)}(h"Iterate over a range of an XArray.h]h"Iterate over a range of an XArray.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj'ubah}(h]h ]h"]h$]h&]uh1j hj9hMhj/hhubjP)}(hX,**Parameters** ``xas`` XArray operation state. ``entry`` Entry retrieved from the array. ``max`` Maximum index to retrieve from array. ``mark`` Mark to search for. **Description** The loop body will be executed for each marked entry in the xarray between the current xas position and **max**. **entry** will be set to the entry retrieved from the xarray. It is safe to delete entries from the array in the loop body. You should hold either the RCU lock or the xa_lock while iterating. If you need to drop the lock, call xas_pause() first.h](h)}(h**Parameters**h]jZ)}(hjFh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjDubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM"hj@ubj)}(hhh](j)}(h ``xas`` XArray operation state. h](j)}(h``xas``h]jG)}(hjeh]hxas}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjcubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj_ubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMhj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMhj\ubj)}(h*``entry`` Entry retrieved from the array. h](j)}(h ``entry``h]jG)}(hjh]hentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM hjubj)}(hhh]h)}(hEntry retrieved from the array.h]hEntry retrieved from the array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj\ubj)}(h.``max`` Maximum index to retrieve from array. h](j)}(h``max``h]jG)}(hjרh]hmax}(hj٨hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjըubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM!hjѨubj)}(hhh]h)}(h%Maximum index to retrieve from array.h]h%Maximum index to retrieve from array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM!hjubah}(h]h ]h"]h$]h&]uh1jhjѨubeh}(h]h ]h"]h$]h&]uh1jhjhM!hj\ubj)}(h``mark`` Mark to search for. h](j)}(h``mark``h]jG)}(hjh]hmark}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM"hj ubj)}(hhh]h)}(hMark to search for.h]hMark to search for.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hM"hj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hM"hj\ubeh}(h]h ]h"]h$]h&]uh1jhj@ubh)}(h**Description**h]jZ)}(hjKh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjIubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM$hj@ubh)}(hXjThe loop body will be executed for each marked entry in the xarray between the current xas position and **max**. **entry** will be set to the entry retrieved from the xarray. It is safe to delete entries from the array in the loop body. You should hold either the RCU lock or the xa_lock while iterating. If you need to drop the lock, call xas_pause() first.h](hhThe loop body will be executed for each marked entry in the xarray between the current xas position and }(hjahhhNhNubjZ)}(h**max**h]hmax}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjaubh. }(hjahhhNhNubjZ)}(h **entry**h]hentry}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjaubh will be set to the entry retrieved from the xarray. It is safe to delete entries from the array in the loop body. You should hold either the RCU lock or the xa_lock while iterating. If you need to drop the lock, call xas_pause() first.}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM#hj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_for_each_conflict (C macro)c.xas_for_each_conflicthNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hxas_for_each_conflicth]j])}(hxas_for_each_conflicth]j)}(hxas_for_each_conflicth]j)}(hjh]hxas_for_each_conflict}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM0ubah}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhj˩hM0ubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhj˩hM0hjhhubj()}(hhh]h}(h]h ]h"]h$]h&]uh1j'hjhhhj˩hM0ubeh}(h]h ](jDmacroeh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubh)}(h&``xas_for_each_conflict (xas, entry)``h]jG)}(hjh]h"xas_for_each_conflict (xas, entry)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM2hj/hhubj )}(h#Iterate over a range of an XArray. h]h)}(h"Iterate over a range of an XArray.h]h"Iterate over a range of an XArray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM0hjubah}(h]h ]h"]h$]h&]uh1j hjhM0hj/hhubjP)}(hX**Parameters** ``xas`` XArray operation state. ``entry`` Entry retrieved from the array. **Description** The loop body will be executed for each entry in the XArray that lies within the range specified by **xas**. If the loop terminates normally, **entry** will be ``NULL``. The user may break out of the loop, which will leave **entry** set to the conflicting entry. The caller may also call xa_set_err() to exit the loop while setting an error to record the reason.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM4hjubj)}(hhh](j)}(h ``xas`` XArray operation state. h](j)}(h``xas``h]jG)}(hj>h]hxas}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj<ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM1hj8ubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShM1hjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShM1hj5ubj)}(h*``entry`` Entry retrieved from the array. h](j)}(h ``entry``h]jG)}(hjwh]hentry}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjuubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM2hjqubj)}(hhh]h)}(hEntry retrieved from the array.h]hEntry retrieved from the array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM2hjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhM2hj5ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM4hjubh)}(hXmThe loop body will be executed for each entry in the XArray that lies within the range specified by **xas**. If the loop terminates normally, **entry** will be ``NULL``. The user may break out of the loop, which will leave **entry** set to the conflicting entry. The caller may also call xa_set_err() to exit the loop while setting an error to record the reason.h](hdThe loop body will be executed for each entry in the XArray that lies within the range specified by }(hjȪhhhNhNubjZ)}(h**xas**h]hxas}(hjЪhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjȪubh$. If the loop terminates normally, }(hjȪhhhNhNubjZ)}(h **entry**h]hentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjȪubh will be }(hjȪhhhNhNubjG)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjȪubh8. The user may break out of the loop, which will leave }(hjȪhhhNhNubjZ)}(h **entry**h]hentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjȪubh set to the conflicting entry. The caller may also call xa_set_err() to exit the loop while setting an error to record the reason.}(hjȪhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM3hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_prev (C function) c.xas_prevhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h&void * xas_prev (struct xa_state *xas)h]j])}(h$void *xas_prev(struct xa_state *xas)h](jc)}(hvoidh]hvoid}(hj?hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj;hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMBubju)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj;hhhjMhMBubj)}(hj*h]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhjMhMBubj)}(hxas_prevh]j)}(hxas_prevh]hxas_prev}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ](jjeh"]h$]h&]hhuh1jhj;hhhjMhMBubj)}(h(struct xa_state *xas)h]j)}(hstruct xa_state *xash](jy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%josb c.xas_prevasbuh1hhjubju)}(h h]h }(hjǫhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjիhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxash]hxas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhj;hhhjMhMBubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj7hhhjMhMBubah}(h]j2ah ](jj eh"]h$]h&]j$j%)j&huh1jVhjMhMBhj4hhubj()}(hhh]h)}(h Move iterator to previous index.h]h Move iterator to previous index.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMBhj hhubah}(h]h ]h"]h$]h&]uh1j'hj4hhhjMhMBubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJj$jKj$jLjMjNuh1jQhhhj/hNhNubjP)}(hXP**Parameters** ``struct xa_state *xas`` XArray operation state. **Description** If the **xas** was in an error state, it will remain in an error state and this function will return ``NULL``. If the **xas** has never been walked, it will have the effect of calling xas_load(). Otherwise one will be subtracted from the index and the state will be walked to the correct location in the array for the next operation. If the iterator was referencing index 0, this function wraps around to ``ULONG_MAX``. **Return** The entry at the new index. This may be ``NULL`` or an internal entry.h](h)}(h**Parameters**h]jZ)}(hj.h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj,ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMFhj(ubj)}(hhh]j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]jG)}(hjMh]hstruct xa_state *xas}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjKubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMChjGubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMChjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMChjDubah}(h]h ]h"]h$]h&]uh1jhj(ubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMEhj(ubh)}(hXOIf the **xas** was in an error state, it will remain in an error state and this function will return ``NULL``. If the **xas** has never been walked, it will have the effect of calling xas_load(). Otherwise one will be subtracted from the index and the state will be walked to the correct location in the array for the next operation.h](hIf the }(hjhhhNhNubjZ)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubhW was in an error state, it will remain in an error state and this function will return }(hjhhhNhNubjG)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh . If the }(hjhhhNhNubjZ)}(h**xas**h]hxas}(hjʬhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh has never been walked, it will have the effect of calling xas_load(). Otherwise one will be subtracted from the index and the state will be walked to the correct location in the array for the next operation.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMDhj(ubh)}(hUIf the iterator was referencing index 0, this function wraps around to ``ULONG_MAX``.h](hGIf the iterator was referencing index 0, this function wraps around to }(hjhhhNhNubjG)}(h ``ULONG_MAX``h]h ULONG_MAX}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMJhj(ubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMMhj(ubh)}(hGThe entry at the new index. This may be ``NULL`` or an internal entry.h](h)The entry at the new index. This may be }(hjhhhNhNubjG)}(h``NULL``h]hNULL}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh or an internal entry.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMNhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_next (C function) c.xas_nexthNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h&void * xas_next (struct xa_state *xas)h]j])}(h$void *xas_next(struct xa_state *xas)h](jc)}(hvoidh]hvoid}(hj]hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjYhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM_ubju)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjYhhhjkhM_ubj)}(hj*h]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjkhM_ubj)}(hxas_nexth]j)}(hxas_nexth]hxas_next}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjYhhhjkhM_ubj)}(h(struct xa_state *xas)h]j)}(hstruct xa_state *xash](jy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjŭhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj­ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjǭmodnameN classnameNj%j%)}j%]j%)}j%jsb c.xas_nextasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxash]hxas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjYhhhjkhM_ubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjUhhhjkhM_ubah}(h]jPah ](jj eh"]h$]h&]j$j%)j&huh1jVhjkhM_hjRhhubj()}(hhh]h)}(hMove state to next index.h]hMove state to next index.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM_hj'hhubah}(h]h ]h"]h$]h&]uh1j'hjRhhhjkhM_ubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjBjKjBjLjMjNuh1jQhhhj/hNhNubjP)}(hXI**Parameters** ``struct xa_state *xas`` XArray operation state. **Description** If the **xas** was in an error state, it will remain in an error state and this function will return ``NULL``. If the **xas** has never been walked, it will have the effect of calling xas_load(). Otherwise one will be added to the index and the state will be walked to the correct location in the array for the next operation. If the iterator was referencing index ``ULONG_MAX``, this function wraps around to 0. **Return** The entry at the new index. This may be ``NULL`` or an internal entry.h](h)}(h**Parameters**h]jZ)}(hjLh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjJubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMchjFubj)}(hhh]j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]jG)}(hjkh]hstruct xa_state *xas}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjiubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM`hjeubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM`hjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhM`hjbubah}(h]h ]h"]h$]h&]uh1jhjFubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMbhjFubh)}(hXHIf the **xas** was in an error state, it will remain in an error state and this function will return ``NULL``. If the **xas** has never been walked, it will have the effect of calling xas_load(). Otherwise one will be added to the index and the state will be walked to the correct location in the array for the next operation.h](hIf the }(hjhhhNhNubjZ)}(h**xas**h]hxas}(hjĮhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubhW was in an error state, it will remain in an error state and this function will return }(hjhhhNhNubjG)}(h``NULL``h]hNULL}(hj֮hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh . If the }(hjhhhNhNubjZ)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh has never been walked, it will have the effect of calling xas_load(). Otherwise one will be added to the index and the state will be walked to the correct location in the array for the next operation.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMahjFubh)}(hUIf the iterator was referencing index ``ULONG_MAX``, this function wraps around to 0.h](h&If the iterator was referencing index }(hjhhhNhNubjG)}(h ``ULONG_MAX``h]h ULONG_MAX}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh", this function wraps around to 0.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMghjFubh)}(h **Return**h]jZ)}(hj$h]hReturn}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj"ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMjhjFubh)}(hGThe entry at the new index. This may be ``NULL`` or an internal entry.h](h)The entry at the new index. This may be }(hj:hhhNhNubjG)}(h``NULL``h]hNULL}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj:ubh or an internal entry.}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMkhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_load (C function) c.xas_loadhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h&void * xas_load (struct xa_state *xas)h]j])}(h$void *xas_load(struct xa_state *xas)h](jc)}(hvoidh]hvoid}(hj{hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjwhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chKubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjwhhhjhKubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhjhKubj)}(hxas_loadh]j)}(hxas_loadh]hxas_load}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjwhhhjhKubj)}(h(struct xa_state *xas)h]j)}(hstruct xa_state *xash](jy)}(hj h]hstruct}(hjůhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjүhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jsb c.xas_loadasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxash]hxas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjwhhhjhKubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjshhhjhKubah}(h]jnah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhKhjphhubj()}(hhh]h)}(h)Load an entry from the XArray (advanced).h]h)Load an entry from the XArray (advanced).}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chKhjEhhubah}(h]h ]h"]h$]h&]uh1j'hjphhhjhKubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJj`jKj`jLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xa_state *xas`` XArray operation state. **Description** Usually walks the **xas** to the appropriate state to load the entry stored at xa_index. However, it will do nothing and return ``NULL`` if **xas** is in an error state. xas_load() will never expand the tree. If the xa_state is set up to operate on a multi-index entry, xas_load() may return ``NULL`` or an internal entry, even if there are entries present within the range specified by **xas**. **Context** Any context. The caller should hold the xa_lock or the RCU lock. **Return** Usually an entry in the XArray, but see description for exceptions.h](h)}(h**Parameters**h]jZ)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjhubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chKhjdubj)}(hhh]j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]jG)}(hjh]hstruct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chKhjubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjdubh)}(h**Description**h]jZ)}(hjİh]h Description}(hjưhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj°ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chKhjdubh)}(hUsually walks the **xas** to the appropriate state to load the entry stored at xa_index. However, it will do nothing and return ``NULL`` if **xas** is in an error state. xas_load() will never expand the tree.h](hUsually walks the }(hjڰhhhNhNubjZ)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjڰubhh to the appropriate state to load the entry stored at xa_index. However, it will do nothing and return }(hjڰhhhNhNubjG)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjڰubh if }(hjڰhhhNhNubjZ)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjڰubh> is in an error state. xas_load() will never expand the tree.}(hjڰhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chKhjdubh)}(hIf the xa_state is set up to operate on a multi-index entry, xas_load() may return ``NULL`` or an internal entry, even if there are entries present within the range specified by **xas**.h](hSIf the xa_state is set up to operate on a multi-index entry, xas_load() may return }(hjhhhNhNubjG)}(h``NULL``h]hNULL}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubhW or an internal entry, even if there are entries present within the range specified by }(hjhhhNhNubjZ)}(h**xas**h]hxas}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chKhjdubh)}(h **Context**h]jZ)}(hjTh]hContext}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjRubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chKhjdubh)}(hAAny context. The caller should hold the xa_lock or the RCU lock.h]hAAny context. The caller should hold the xa_lock or the RCU lock.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chKhjdubh)}(h **Return**h]jZ)}(hj{h]hReturn}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjyubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chKhjdubh)}(hCUsually an entry in the XArray, but see description for exceptions.h]hCUsually an entry in the XArray, but see description for exceptions.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chKhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_nomem (C function) c.xas_nomemhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h0bool xas_nomem (struct xa_state *xas, gfp_t gfp)h]j])}(h/bool xas_nomem(struct xa_state *xas, gfp_t gfp)h](jc)}(hjh]hbool}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubju)}(h h]h }(hjαhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjͱhMubj)}(h xas_nomemh]j)}(h xas_nomemh]h xas_nomem}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܱubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjͱhMubj)}(h!(struct xa_state *xas, gfp_t gfp)h](j)}(hstruct xa_state *xash](jy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jsb c.xas_nomemasbuh1hhjubju)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxash]hxas}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjsmodnameN classnameNj%j%)}j%]j6 c.xas_nomemasbuh1hhjjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjjubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjͱhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjͱhMubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjͱhMhjhhubj()}(hhh]h)}(hAllocate memory if needed.h]hAllocate memory if needed.}(hjDzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjIJhhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjͱhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJj߲jKj߲jLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xa_state *xas`` XArray operation state. ``gfp_t gfp`` Memory allocation flags. **Description** If we need to add new nodes to the XArray, we try to allocate memory with GFP_NOWAIT while holding the lock, which will usually succeed. If it fails, **xas** is flagged as needing memory to continue. The caller should drop the lock and call xas_nomem(). If xas_nomem() succeeds, the caller should retry the operation. Forward progress is guaranteed as one node is allocated here and stored in the xa_state where it will be found by xas_alloc(). More nodes will likely be found in the slab allocator, but we do not tie them up here. **Return** true if memory was needed, and was successfully allocated.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubj)}(hhh](j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]jG)}(hjh]hstruct xa_state *xas}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]jG)}(hjAh]h gfp_t gfp}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj?ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj;ubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hj|h]h Description}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjzubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubh)}(hX?If we need to add new nodes to the XArray, we try to allocate memory with GFP_NOWAIT while holding the lock, which will usually succeed. If it fails, **xas** is flagged as needing memory to continue. The caller should drop the lock and call xas_nomem(). If xas_nomem() succeeds, the caller should retry the operation.h](hIf we need to add new nodes to the XArray, we try to allocate memory with GFP_NOWAIT while holding the lock, which will usually succeed. If it fails, }(hjhhhNhNubjZ)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh is flagged as needing memory to continue. The caller should drop the lock and call xas_nomem(). If xas_nomem() succeeds, the caller should retry the operation.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(hForward progress is guaranteed as one node is allocated here and stored in the xa_state where it will be found by xas_alloc(). More nodes will likely be found in the slab allocator, but we do not tie them up here.h]hForward progress is guaranteed as one node is allocated here and stored in the xa_state where it will be found by xas_alloc(). More nodes will likely be found in the slab allocator, but we do not tie them up here.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM%hjubh)}(h **Return**h]jZ)}(hjijh]hReturn}(hjƳhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj³ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM*hjubh)}(h:true if memory was needed, and was successfully allocated.h]h:true if memory was needed, and was successfully allocated.}(hjڳhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM+hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_free_nodes (C function)c.xas_free_nodeshNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h?void xas_free_nodes (struct xa_state *xas, struct xa_node *top)h]j])}(h>void xas_free_nodes(struct xa_state *xas, struct xa_node *top)h](jc)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM ubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjhM ubj)}(hxas_free_nodesh]j)}(hxas_free_nodesh]hxas_free_nodes}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhM ubj)}(h+(struct xa_state *xas, struct xa_node *top)h](j)}(hstruct xa_state *xash](jy)}(hj h]hstruct}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjBubju)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjBubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjfmodnameN classnameNj%j%)}j%]j%)}j%j,sbc.xas_free_nodesasbuh1hhjBubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjBubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj)}(hxash]hxas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj>ubj)}(hstruct xa_node *toph](jy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjŴhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxa_nodeh]hxa_node}(hjִhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӴubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjشmodnameN classnameNj%j%)}j%]jc.xas_free_nodesasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(htoph]htop}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj>ubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjhM ubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhM hjhhubj()}(hhh]h)}(h/Free this node and all nodes that it referencesh]h/Free this node and all nodes that it references}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hj6hhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjhM ubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjQjKjQjLjMjNuh1jQhhhj/hNhNubjP)}(hX?**Parameters** ``struct xa_state *xas`` Array operation state. ``struct xa_node *top`` Node to free **Description** This node has been removed from the tree. We must now free it and all of its subnodes. There may be RCU walkers with references into the tree, so we must replace all entries with retry markers.h](h)}(h**Parameters**h]jZ)}(hj[h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjYubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjUubj)}(hhh](j)}(h0``struct xa_state *xas`` Array operation state. h](j)}(h``struct xa_state *xas``h]jG)}(hjzh]hstruct xa_state *xas}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjxubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjtubj)}(hhh]h)}(hArray operation state.h]hArray operation state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhM hjqubj)}(h%``struct xa_node *top`` Node to free h](j)}(h``struct xa_node *top``h]jG)}(hjh]hstruct xa_node *top}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubj)}(hhh]h)}(h Node to freeh]h Node to free}(hj̵hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjȵhM hjɵubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjȵhM hjqubeh}(h]h ]h"]h$]h&]uh1jhjUubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjUubh)}(hThis node has been removed from the tree. We must now free it and all of its subnodes. There may be RCU walkers with references into the tree, so we must replace all entries with retry markers.h]hThis node has been removed from the tree. We must now free it and all of its subnodes. There may be RCU walkers with references into the tree, so we must replace all entries with retry markers.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_create_range (C function)c.xas_create_rangehNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h,void xas_create_range (struct xa_state *xas)h]j])}(h+void xas_create_range(struct xa_state *xas)h](jc)}(hvoidh]hvoid}(hj3hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj/hhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubju)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj/hhhjAhMubj)}(hxas_create_rangeh]j)}(hxas_create_rangeh]hxas_create_range}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ](jjeh"]h$]h&]hhuh1jhj/hhhjAhMubj)}(h(struct xa_state *xas)h]j)}(hstruct xa_state *xash](jy)}(hj h]hstruct}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjlubju)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjlubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jVsbc.xas_create_rangeasbuh1hhjlubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjlubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj)}(hxash]hxas}(hjɶhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjhubah}(h]h ]h"]h$]h&]hhuh1jhj/hhhjAhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj+hhhjAhMubah}(h]j&ah ](jj eh"]h$]h&]j$j%)j&huh1jVhjAhMhj(hhubj()}(hhh]h)}(h-Ensure that stores to this range will succeedh]h-Ensure that stores to this range will succeed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjhhubah}(h]h ]h"]h$]h&]uh1j'hj(hhhjAhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJj jKj jLjMjNuh1jQhhhj/hNhNubjP)}(hXK**Parameters** ``struct xa_state *xas`` XArray operation state. **Description** Creates all of the slots in the range covered by **xas**. Sets **xas** to create single-index entries and positions it at the beginning of the range. This is for the benefit of users which have not yet been converted to use multi-index entries.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]jG)}(hj4h]hstruct xa_state *xas}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj2ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj.ubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhj+ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjoh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjmubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(hCreates all of the slots in the range covered by **xas**. Sets **xas** to create single-index entries and positions it at the beginning of the range. This is for the benefit of users which have not yet been converted to use multi-index entries.h](h1Creates all of the slots in the range covered by }(hjhhhNhNubjZ)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh. Sets }(hjhhhNhNubjZ)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh to create single-index entries and positions it at the beginning of the range. This is for the benefit of users which have not yet been converted to use multi-index entries.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_store (C function) c.xas_storehNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h4void * xas_store (struct xa_state *xas, void *entry)h]j])}(h2void *xas_store(struct xa_state *xas, void *entry)h](jc)}(hvoidh]hvoid}(hjطhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjԷhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjԷhhhjhMubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԷhhhjhMubj)}(h xas_storeh]j)}(h xas_storeh]h xas_store}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjԷhhhjhMubj)}(h#(struct xa_state *xas, void *entry)h](j)}(hstruct xa_state *xash](jy)}(hj h]hstruct}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjBmodnameN classnameNj%j%)}j%]j%)}j%jsb c.xas_storeasbuh1hhjubju)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxash]hxas}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(h void *entryh](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjԷhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjзhhhjhMubah}(h]j˷ah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhMhjͷhhubj()}(hhh]h)}(hStore this entry in the XArray.h]hStore this entry in the XArray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjhhubah}(h]h ]h"]h$]h&]uh1j'hjͷhhhjhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xa_state *xas`` XArray operation state. ``void *entry`` New entry. **Description** If **xas** is operating on a multi-index entry, the entry returned by this function is essentially meaningless (it may be an internal entry or it may be ``NULL``, even if there are non-NULL entries at some of the indices covered by the range). This is not a problem for any current users, and can be changed if needed. **Return** The old entry at this index.h](h)}(h**Parameters**h]jZ)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh](j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]jG)}(hj(h]hstruct xa_state *xas}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj&ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj"ubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhjubj)}(h``void *entry`` New entry. h](j)}(h``void *entry``h]jG)}(hjah]h void *entry}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj_ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj[ubj)}(hhh]h)}(h New entry.h]h New entry.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMhjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(hX?If **xas** is operating on a multi-index entry, the entry returned by this function is essentially meaningless (it may be an internal entry or it may be ``NULL``, even if there are non-NULL entries at some of the indices covered by the range). This is not a problem for any current users, and can be changed if needed.h](hIf }(hjhhhNhNubjZ)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh is operating on a multi-index entry, the entry returned by this function is essentially meaningless (it may be an internal entry or it may be }(hjhhhNhNubjG)}(h``NULL``h]hNULL}(hj̹hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh, even if there are non-NULL entries at some of the indices covered by the range). This is not a problem for any current users, and can be changed if needed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubh)}(hThe old entry at this index.h]hThe old entry at this index.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_get_mark (C function)c.xas_get_markhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h>bool xas_get_mark (const struct xa_state *xas, xa_mark_t mark)h]j])}(h=bool xas_get_mark(const struct xa_state *xas, xa_mark_t mark)h](jc)}(hjh]hbool}(hj,hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj(hhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMZubju)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj(hhhj9hMZubj)}(h xas_get_markh]j)}(h xas_get_markh]h xas_get_mark}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](jjeh"]h$]h&]hhuh1jhj(hhhj9hMZubj)}(h,(const struct xa_state *xas, xa_mark_t mark)h](j)}(hconst struct xa_state *xash](jy)}(hj|h]hconst}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjdubju)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjdubjy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjdubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjdubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jNsbc.xas_get_markasbuh1hhjdubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjdubj)}(hj*h]h*}(hjϺhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj)}(hxash]hxas}(hjܺhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj`ubj)}(hxa_mark_t markh](h)}(hhh]j)}(h xa_mark_th]h xa_mark_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]jc.xas_get_markasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hmarkh]hmark}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj`ubeh}(h]h ]h"]h$]h&]hhuh1jhj(hhhj9hMZubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj$hhhj9hMZubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhj9hMZhj!hhubj()}(hhh]h)}(hReturns the state of this mark.h]hReturns the state of this mark.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMZhjKhhubah}(h]h ]h"]h$]h&]uh1j'hj!hhhj9hMZubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjfjKjfjLjMjNuh1jQhhhj/hNhNubjP)}(h**Parameters** ``const struct xa_state *xas`` XArray operation state. ``xa_mark_t mark`` Mark number. **Return** true if the mark is set, false if the mark is clear or **xas** is in an error state.h](h)}(h**Parameters**h]jZ)}(hjph]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjnubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM^hjjubj)}(hhh](j)}(h7``const struct xa_state *xas`` XArray operation state. h](j)}(h``const struct xa_state *xas``h]jG)}(hjh]hconst struct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM[hjubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM[hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM[hjubj)}(h ``xa_mark_t mark`` Mark number. h](j)}(h``xa_mark_t mark``h]jG)}(hjȻh]hxa_mark_t mark}(hjʻhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjƻubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM\hj»ubj)}(hhh]h)}(h Mark number.h]h Mark number.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjݻhM\hj޻ubah}(h]h ]h"]h$]h&]uh1jhj»ubeh}(h]h ]h"]h$]h&]uh1jhjݻhM\hjubeh}(h]h ]h"]h$]h&]uh1jhjjubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM^hjjubh)}(hTtrue if the mark is set, false if the mark is clear or **xas** is in an error state.h](h7true if the mark is set, false if the mark is clear or }(hjhhhNhNubjZ)}(h**xas**h]hxas}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh is in an error state.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM^hjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_set_mark (C function)c.xas_set_markhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h>void xas_set_mark (const struct xa_state *xas, xa_mark_t mark)h]j])}(h=void xas_set_mark(const struct xa_state *xas, xa_mark_t mark)h](jc)}(hvoidh]hvoid}(hjZhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjVhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMlubju)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjVhhhjhhMlubj)}(h xas_set_markh]j)}(h xas_set_markh]h xas_set_mark}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ](jjeh"]h$]h&]hhuh1jhjVhhhjhhMlubj)}(h,(const struct xa_state *xas, xa_mark_t mark)h](j)}(hconst struct xa_state *xash](jy)}(hj|h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubjy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjмhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjͼubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjҼmodnameN classnameNj%j%)}j%]j%)}j%j}sbc.xas_set_markasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxash]hxas}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hxa_mark_t markh](h)}(hhh]j)}(h xa_mark_th]h xa_mark_t}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj)modnameN classnameNj%j%)}j%]jc.xas_set_markasbuh1hhj ubju)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj ubj)}(hmarkh]hmark}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjVhhhjhhMlubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjRhhhjhhMlubah}(h]jMah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhhMlhjOhhubj()}(hhh]h)}(h,Sets the mark on this entry and its parents.h]h,Sets the mark on this entry and its parents.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMlhjzhhubah}(h]h ]h"]h$]h&]uh1j'hjOhhhjhhMlubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(hX5**Parameters** ``const struct xa_state *xas`` XArray operation state. ``xa_mark_t mark`` Mark number. **Description** Sets the specified mark on this entry, and walks up the tree setting it on all the ancestor entries. Does nothing if **xas** has not been walked to an entry, or is in an error state.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMphjubj)}(hhh](j)}(h7``const struct xa_state *xas`` XArray operation state. h](j)}(h``const struct xa_state *xas``h]jG)}(hjh]hconst struct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMmhjubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hj׽hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjӽhMmhjԽubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjӽhMmhjubj)}(h ``xa_mark_t mark`` Mark number. h](j)}(h``xa_mark_t mark``h]jG)}(hjh]hxa_mark_t mark}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMnhjubj)}(hhh]h)}(h Mark number.h]h Mark number.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMnhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMnhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hj2h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj0ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMphjubh)}(hSets the specified mark on this entry, and walks up the tree setting it on all the ancestor entries. Does nothing if **xas** has not been walked to an entry, or is in an error state.h](hvSets the specified mark on this entry, and walks up the tree setting it on all the ancestor entries. Does nothing if }(hjHhhhNhNubjZ)}(h**xas**h]hxas}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjHubh: has not been walked to an entry, or is in an error state.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMohjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_clear_mark (C function)c.xas_clear_markhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h@void xas_clear_mark (const struct xa_state *xas, xa_mark_t mark)h]j])}(h?void xas_clear_mark(const struct xa_state *xas, xa_mark_t mark)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjhMubj)}(hxas_clear_markh]j)}(hxas_clear_markh]hxas_clear_mark}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMubj)}(h,(const struct xa_state *xas, xa_mark_t mark)h](j)}(hconst struct xa_state *xash](jy)}(hj|h]hconst}(hjƾhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj¾ubju)}(h h]h }(hjӾhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj¾ubjy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj¾ubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj¾ubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jsbc.xas_clear_markasbuh1hhj¾ubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj¾ubj)}(hj*h]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj¾ubj)}(hxash]hxas}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj¾ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hxa_mark_t markh](h)}(hhh]j)}(h xa_mark_th]h xa_mark_t}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjXmodnameN classnameNj%j%)}j%]jc.xas_clear_markasbuh1hhjOubju)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjOubj)}(hmarkh]hmark}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjhMubah}(h]j|ah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhMhj~hhubj()}(hhh]h)}(h.Clears the mark on this entry and its parents.h]h.Clears the mark on this entry and its parents.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjhhubah}(h]h ]h"]h$]h&]uh1j'hj~hhhjhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjĿjKjĿjLjMjNuh1jQhhhj/hNhNubjP)}(hXH**Parameters** ``const struct xa_state *xas`` XArray operation state. ``xa_mark_t mark`` Mark number. **Description** Clears the specified mark on this entry, and walks back to the head attempting to clear it on all the ancestor entries. Does nothing if **xas** has not been walked to an entry, or is in an error state.h](h)}(h**Parameters**h]jZ)}(hjοh]h Parameters}(hjпhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj̿ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjȿubj)}(hhh](j)}(h7``const struct xa_state *xas`` XArray operation state. h](j)}(h``const struct xa_state *xas``h]jG)}(hjh]hconst struct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h ``xa_mark_t mark`` Mark number. h](j)}(h``xa_mark_t mark``h]jG)}(hj&h]hxa_mark_t mark}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj$ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj ubj)}(hhh]h)}(h Mark number.h]h Mark number.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhjubeh}(h]h ]h"]h$]h&]uh1jhjȿubh)}(h**Description**h]jZ)}(hjah]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj_ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjȿubh)}(hClears the specified mark on this entry, and walks back to the head attempting to clear it on all the ancestor entries. Does nothing if **xas** has not been walked to an entry, or is in an error state.h](hClears the specified mark on this entry, and walks back to the head attempting to clear it on all the ancestor entries. Does nothing if }(hjwhhhNhNubjZ)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjwubh: has not been walked to an entry, or is in an error state.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjȿubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_init_marks (C function)c.xas_init_markshNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h0void xas_init_marks (const struct xa_state *xas)h]j])}(h/void xas_init_marks(const struct xa_state *xas)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjhMubj)}(hxas_init_marksh]j)}(hxas_init_marksh]hxas_init_marks}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMubj)}(h(const struct xa_state *xas)h]j)}(hconst struct xa_state *xash](jy)}(hj|h]hconst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubjy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj0modnameN classnameNj%j%)}j%]j%)}j%jsbc.xas_init_marksasbuh1hhjubju)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxash]hxas}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjhMubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhMhjhhubj()}(hhh]h)}(h"Initialise all marks for the entryh]h"Initialise all marks for the entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjhhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(hXa**Parameters** ``const struct xa_state *xas`` Array operations state. **Description** Initialise all marks for the entry specified by **xas**. If we're tracking free entries with a mark, we need to set it on all entries. All other marks are cleared. This implementation is not as efficient as it could be; we may walk up the tree multiple times.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]j)}(h7``const struct xa_state *xas`` Array operations state. h](j)}(h``const struct xa_state *xas``h]jG)}(hjh]hconst struct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(hArray operations state.h]hArray operations state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(hInitialise all marks for the entry specified by **xas**. If we're tracking free entries with a mark, we need to set it on all entries. All other marks are cleared.h](h0Initialise all marks for the entry specified by }(hj%hhhNhNubjZ)}(h**xas**h]hxas}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj%ubhp. If we’re tracking free entries with a mark, we need to set it on all entries. All other marks are cleared.}(hj%hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h_This implementation is not as efficient as it could be; we may walk up the tree multiple times.h]h_This implementation is not as efficient as it could be; we may walk up the tree multiple times.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_split_alloc (C function)c.xas_split_allochNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hWvoid xas_split_alloc (struct xa_state *xas, void *entry, unsigned int order, gfp_t gfp)h]j])}(hVvoid xas_split_alloc(struct xa_state *xas, void *entry, unsigned int order, gfp_t gfp)h](jc)}(hvoidh]hvoid}(hjuhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjqhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjqhhhjhMubj)}(hxas_split_alloch]j)}(hxas_split_alloch]hxas_split_alloc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjqhhhjhMubj)}(hB(struct xa_state *xas, void *entry, unsigned int order, gfp_t gfp)h](j)}(hstruct xa_state *xash](jy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jsbc.xas_split_allocasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxash]hxas}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(h void *entryh](jc)}(hvoidh]hvoid}(hj$hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj ubju)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj ubj)}(hj*h]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hentryh]hentry}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned int orderh](jc)}(hunsignedh]hunsigned}(hjfhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjbubju)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjbubjc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjbubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjbubj)}(horderh]horder}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]jc.xas_split_allocasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjqhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjmhhhjhMubah}(h]jhah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhMhjjhhubj()}(hhh]h)}(h'Allocate memory for splitting an entry.h]h'Allocate memory for splitting an entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj hhubah}(h]h ]h"]h$]h&]uh1j'hjjhhhjhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJj(jKj(jLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xa_state *xas`` XArray operation state. ``void *entry`` New entry which will be stored in the array. ``unsigned int order`` Current entry order. ``gfp_t gfp`` Memory allocation flags. **Description** This function should be called before calling xas_split(). If necessary, it will allocate new nodes (and fill them with **entry**) to prepare for the upcoming split of an entry of **order** size into entries of the order stored in the **xas**. **Context** May sleep if **gfp** flags permit.h](h)}(h**Parameters**h]jZ)}(hj2h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj0ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hj,ubj)}(hhh](j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]jG)}(hjQh]hstruct xa_state *xas}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjOubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjKubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhM hjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhM hjHubj)}(h=``void *entry`` New entry which will be stored in the array. h](j)}(h``void *entry``h]jG)}(hjh]h void *entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubj)}(hhh]h)}(h,New entry which will be stored in the array.h]h,New entry which will be stored in the array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjHubj)}(h,``unsigned int order`` Current entry order. h](j)}(h``unsigned int order``h]jG)}(hjh]hunsigned int order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubj)}(hhh]h)}(hCurrent entry order.h]hCurrent entry order.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjHubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]jG)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjHubeh}(h]h ]h"]h$]h&]uh1jhj,ubh)}(h**Description**h]jZ)}(hj7h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj5ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj,ubh)}(hThis function should be called before calling xas_split(). If necessary, it will allocate new nodes (and fill them with **entry**) to prepare for the upcoming split of an entry of **order** size into entries of the order stored in the **xas**.h](hxThis function should be called before calling xas_split(). If necessary, it will allocate new nodes (and fill them with }(hjMhhhNhNubjZ)}(h **entry**h]hentry}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjMubh3) to prepare for the upcoming split of an entry of }(hjMhhhNhNubjZ)}(h **order**h]horder}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjMubh. size into entries of the order stored in the }(hjMhhhNhNubjZ)}(h**xas**h]hxas}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjMubh.}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hj,ubh)}(h **Context**h]jZ)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj,ubh)}(h"May sleep if **gfp** flags permit.h](h May sleep if }(hjhhhNhNubjZ)}(h**gfp**h]hgfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh flags permit.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_split (C function) c.xas_splithNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hFvoid xas_split (struct xa_state *xas, void *entry, unsigned int order)h]j])}(hEvoid xas_split(struct xa_state *xas, void *entry, unsigned int order)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM4ubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjhM4ubj)}(h xas_splith]j)}(h xas_splith]h xas_split}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhM4ubj)}(h7(struct xa_state *xas, void *entry, unsigned int order)h](j)}(hstruct xa_state *xash](jy)}(hj h]hstruct}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj$ubju)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj$ubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjHmodnameN classnameNj%j%)}j%]j%)}j%jsb c.xas_splitasbuh1hhj$ubju)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj$ubj)}(hj*h]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hxash]hxas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj ubj)}(h void *entryh](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj ubj)}(hunsigned int orderh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubjc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(horderh]horder}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj ubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhM4ubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjhM4ubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhM4hjhhubj()}(hhh]h)}(h/Split a multi-index entry into smaller entries.h]h/Split a multi-index entry into smaller entries.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM4hj;hhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjhM4ubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjVjKjVjLjMjNuh1jQhhhj/hNhNubjP)}(hXh**Parameters** ``struct xa_state *xas`` XArray operation state. ``void *entry`` New entry to store in the array. ``unsigned int order`` Current entry order. **Description** The size of the new entries is set in **xas**. The value in **entry** is copied to all the replacement entries. **Context** Any context. The caller should hold the xa_lock.h](h)}(h**Parameters**h]jZ)}(hj`h]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj^ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM8hjZubj)}(hhh](j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]jG)}(hjh]hstruct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj}ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM5hjyubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjvubj)}(h1``void *entry`` New entry to store in the array. h](j)}(h``void *entry``h]jG)}(hjh]h void *entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM6hjubj)}(hhh]h)}(h New entry to store in the array.h]h New entry to store in the array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM6hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM6hjvubj)}(h,``unsigned int order`` Current entry order. h](j)}(h``unsigned int order``h]jG)}(hjh]hunsigned int order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM7hjubj)}(hhh]h)}(hCurrent entry order.h]hCurrent entry order.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM7hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM7hjvubeh}(h]h ]h"]h$]h&]uh1jhjZubh)}(h**Description**h]jZ)}(hj,h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj*ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM9hjZubh)}(hpThe size of the new entries is set in **xas**. The value in **entry** is copied to all the replacement entries.h](h&The size of the new entries is set in }(hjBhhhNhNubjZ)}(h**xas**h]hxas}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjBubh. The value in }(hjBhhhNhNubjZ)}(h **entry**h]hentry}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjBubh* is copied to all the replacement entries.}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM8hjZubh)}(h **Context**h]jZ)}(hjwh]hContext}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjuubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM;hjZubh)}(h1Any context. The caller should hold the xa_lock.h]h1Any context. The caller should hold the xa_lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM<hjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jM$xas_try_split_min_order (C function)c.xas_try_split_min_orderhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h9unsigned int xas_try_split_min_order (unsigned int order)h]j])}(h8unsigned int xas_try_split_min_order(unsigned int order)h](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMrubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjhMrubjc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhjhMrubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjhMrubj)}(hxas_try_split_min_orderh]j)}(hxas_try_split_min_orderh]hxas_try_split_min_order}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMrubj)}(h(unsigned int order)h]j)}(hunsigned int orderh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubjc)}(hinth]hint}(hj1hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(horderh]horder}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj ubah}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMrubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjhMrubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhMrhjhhubj()}(hhh]h)}(h.Minimal split order xas_try_split() can accepth]h.Minimal split order xas_try_split() can accept}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMrhjthhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjhMrubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(hXN**Parameters** ``unsigned int order`` Current entry order. **Description** xas_try_split() can split a multi-index entry to smaller than **order** - 1 if no new xa_node is needed. This function provides the minimal order xas_try_split() supports. **Return** the minimal order xas_try_split() supports **Context** Any context.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMvhjubj)}(hhh]j)}(h,``unsigned int order`` Current entry order. h](j)}(h``unsigned int order``h]jG)}(hjh]hunsigned int order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMshjubj)}(hhh]h)}(hCurrent entry order.h]hCurrent entry order.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMshjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMshjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMuhjubh)}(hxas_try_split() can split a multi-index entry to smaller than **order** - 1 if no new xa_node is needed. This function provides the minimal order xas_try_split() supports.h](h>xas_try_split() can split a multi-index entry to smaller than }(hj hhhNhNubjZ)}(h **order**h]horder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj ubhd - 1 if no new xa_node is needed. This function provides the minimal order xas_try_split() supports.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMthjubh)}(h **Return**h]jZ)}(hj,h]hReturn}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj*ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMxhjubh)}(h*the minimal order xas_try_split() supportsh]h*the minimal order xas_try_split() supports}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMyhjubh)}(h **Context**h]jZ)}(hjSh]hContext}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjQubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM{hjubh)}(h Any context.h]h Any context.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM{hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_try_split (C function)c.xas_try_splithNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hJvoid xas_try_split (struct xa_state *xas, void *entry, unsigned int order)h]j])}(hIvoid xas_try_split(struct xa_state *xas, void *entry, unsigned int order)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjhMubj)}(h xas_try_splith]j)}(h xas_try_splith]h xas_try_split}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMubj)}(h7(struct xa_state *xas, void *entry, unsigned int order)h](j)}(hstruct xa_state *xash](jy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jsbc.xas_try_splitasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxash]hxas}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(h void *entryh](jc)}(hvoidh]hvoid}(hjGhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjCubju)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjCubj)}(hj*h]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hentryh]hentry}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned int orderh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubjc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(horderh]horder}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjhMubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhMhjhhubj()}(hhh]h)}(h!Try to split a multi-index entry.h]h!Try to split a multi-index entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjhhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xa_state *xas`` XArray operation state. ``void *entry`` New entry to store in the array. ``unsigned int order`` Current entry order. **Description** The size of the new entries is set in **xas**. The value in **entry** is copied to all the replacement entries. If and only if one new xa_node is needed, the function will use GFP_NOWAIT to get one if xas->xa_alloc is NULL. If more new xa_node are needed, the function gives EINVAL error. **NOTE** use xas_try_split_min_order() to get next split order instead of **order** - 1 if you want to minmize xas_try_split() calls. **Context** Any context. The caller should hold the xa_lock.h](h)}(h**Parameters**h]jZ)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh](j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]jG)}(hj,h]hstruct xa_state *xas}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj*ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj&ubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMhjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMhj#ubj)}(h1``void *entry`` New entry to store in the array. h](j)}(h``void *entry``h]jG)}(hjeh]h void *entry}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjcubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj_ubj)}(hhh]h)}(h New entry to store in the array.h]h New entry to store in the array.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMhj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMhj#ubj)}(h,``unsigned int order`` Current entry order. h](j)}(h``unsigned int order``h]jG)}(hjh]hunsigned int order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(hCurrent entry order.h]hCurrent entry order.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj#ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(hX!The size of the new entries is set in **xas**. The value in **entry** is copied to all the replacement entries. If and only if one new xa_node is needed, the function will use GFP_NOWAIT to get one if xas->xa_alloc is NULL. If more new xa_node are needed, the function gives EINVAL error.h](h&The size of the new entries is set in }(hjhhhNhNubjZ)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh. The value in }(hjhhhNhNubjZ)}(h **entry**h]hentry}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh is copied to all the replacement entries. If and only if one new xa_node is needed, the function will use GFP_NOWAIT to get one if xas->xa_alloc is NULL. If more new xa_node are needed, the function gives EINVAL error.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h**NOTE**h]jZ)}(hj$h]hNOTE}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj"ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h|use xas_try_split_min_order() to get next split order instead of **order** - 1 if you want to minmize xas_try_split() calls.h](hAuse xas_try_split_min_order() to get next split order instead of }(hj:hhhNhNubjZ)}(h **order**h]horder}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj:ubh2 - 1 if you want to minmize xas_try_split() calls.}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h **Context**h]jZ)}(hj]h]hContext}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj[ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h1Any context. The caller should hold the xa_lock.h]h1Any context. The caller should hold the xa_lock.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_pause (C function) c.xas_pausehNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h%void xas_pause (struct xa_state *xas)h]j])}(h$void xas_pause(struct xa_state *xas)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjhMubj)}(h xas_pauseh]j)}(h xas_pauseh]h xas_pause}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMubj)}(h(struct xa_state *xas)h]j)}(hstruct xa_state *xash](jy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jsb c.xas_pauseasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxash]hxas}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjhMubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhMhjhhubj()}(hhh]h)}(hPause a walk to drop a lock.h]hPause a walk to drop a lock.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj_hhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjzjKjzjLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xa_state *xas`` XArray operation state. **Description** Some users need to pause a walk and drop the lock they're holding in order to yield to a higher priority thread or carry out an operation on an entry. Those users should call this function before they drop the lock. It resets the **xas** to be suitable for the next iteration of the loop after the user has reacquired the lock. If most entries found during a walk require you to call xas_pause(), the xa_for_each() iterator may be more appropriate. Note that xas_pause() only works for forward iteration. If a user needs to pause a reverse iteration, we will need a xas_pause_rev().h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj~ubj)}(hhh]j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]jG)}(hjh]hstruct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj~ubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj~ubh)}(hXSome users need to pause a walk and drop the lock they're holding in order to yield to a higher priority thread or carry out an operation on an entry. Those users should call this function before they drop the lock. It resets the **xas** to be suitable for the next iteration of the loop after the user has reacquired the lock. If most entries found during a walk require you to call xas_pause(), the xa_for_each() iterator may be more appropriate.h](hSome users need to pause a walk and drop the lock they’re holding in order to yield to a higher priority thread or carry out an operation on an entry. Those users should call this function before they drop the lock. It resets the }(hjhhhNhNubjZ)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh to be suitable for the next iteration of the loop after the user has reacquired the lock. If most entries found during a walk require you to call xas_pause(), the xa_for_each() iterator may be more appropriate.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj~ubh)}(hNote that xas_pause() only works for forward iteration. If a user needs to pause a reverse iteration, we will need a xas_pause_rev().h]hNote that xas_pause() only works for forward iteration. If a user needs to pause a reverse iteration, we will need a xas_pause_rev().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_find (C function) c.xas_findhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h9void * xas_find (struct xa_state *xas, unsigned long max)h]j])}(h7void *xas_find(struct xa_state *xas, unsigned long max)h](jc)}(hvoidh]hvoid}(hjDhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj@hhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMbubju)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj@hhhjRhMbubj)}(hj*h]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhjRhMbubj)}(hxas_findh]j)}(hxas_findh]hxas_find}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ](jjeh"]h$]h&]hhuh1jhj@hhhjRhMbubj)}(h)(struct xa_state *xas, unsigned long max)h](j)}(hstruct xa_state *xash](jy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jtsb c.xas_findasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxash]hxas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long maxh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hmaxh]hmax}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhj@hhhjRhMbubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj<hhhjRhMbubah}(h]j7ah ](jj eh"]h$]h&]j$j%)j&huh1jVhjRhMbhj9hhubj()}(hhh]h)}(h*Find the next present entry in the XArray.h]h*Find the next present entry in the XArray.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMbhj_hhubah}(h]h ]h"]h$]h&]uh1j'hj9hhhjRhMbubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjzjKjzjLjMjNuh1jQhhhj/hNhNubjP)}(hXS**Parameters** ``struct xa_state *xas`` XArray operation state. ``unsigned long max`` Highest index to return. **Description** If the **xas** has not yet been walked to an entry, return the entry which has an index >= xas.xa_index. If it has been walked, the entry currently being pointed at has been processed, and so we move to the next entry. If no entry is found and the array is smaller than **max**, the iterator is set to the smallest index not yet in the array. This allows **xas** to be immediately passed to xas_store(). **Return** The entry, if found, otherwise ``NULL``.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMfhj~ubj)}(hhh](j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]jG)}(hjh]hstruct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMchjubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMchjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMchjubj)}(h/``unsigned long max`` Highest index to return. h](j)}(h``unsigned long max``h]jG)}(hjh]hunsigned long max}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMdhjubj)}(hhh]h)}(hHighest index to return.h]hHighest index to return.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMdhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMdhjubeh}(h]h ]h"]h$]h&]uh1jhj~ubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMfhj~ubh)}(hIf the **xas** has not yet been walked to an entry, return the entry which has an index >= xas.xa_index. If it has been walked, the entry currently being pointed at has been processed, and so we move to the next entry.h](hIf the }(hj-hhhNhNubjZ)}(h**xas**h]hxas}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj-ubh has not yet been walked to an entry, return the entry which has an index >= xas.xa_index. If it has been walked, the entry currently being pointed at has been processed, and so we move to the next entry.}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMehj~ubh)}(hIf no entry is found and the array is smaller than **max**, the iterator is set to the smallest index not yet in the array. This allows **xas** to be immediately passed to xas_store().h](h3If no entry is found and the array is smaller than }(hjNhhhNhNubjZ)}(h**max**h]hmax}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjNubhO, the iterator is set to the smallest index not yet in the array. This allows }(hjNhhhNhNubjZ)}(h**xas**h]hxas}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjNubh) to be immediately passed to xas_store().}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMjhj~ubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMnhj~ubh)}(h(The entry, if found, otherwise ``NULL``.h](hThe entry, if found, otherwise }(hjhhhNhNubjG)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMohj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_find_marked (C function)c.xas_find_markedhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hPvoid * xas_find_marked (struct xa_state *xas, unsigned long max, xa_mark_t mark)h]j])}(hNvoid *xas_find_marked(struct xa_state *xas, unsigned long max, xa_mark_t mark)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjhMubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(hxas_find_markedh]j)}(hxas_find_markedh]hxas_find_marked}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMubj)}(h9(struct xa_state *xas, unsigned long max, xa_mark_t mark)h](j)}(hstruct xa_state *xash](jy)}(hj h]hstruct}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj ubju)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj ubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjDmodnameN classnameNj%j%)}j%]j%)}j%j sbc.xas_find_markedasbuh1hhj ubju)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj ubj)}(hj*h]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hxash]hxas}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long maxh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hmaxh]hmax}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hxa_mark_t markh](h)}(hhh]j)}(h xa_mark_th]h xa_mark_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j^c.xas_find_markedasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hmarkh]hmark}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjhMubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhMhjhhubj()}(hhh]h)}(h)Find the next marked entry in the XArray.h]h)Find the next marked entry in the XArray.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj=hhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjXjKjXjLjMjNuh1jQhhhj/hNhNubjP)}(hX4**Parameters** ``struct xa_state *xas`` XArray operation state. ``unsigned long max`` Highest index to return. ``xa_mark_t mark`` Mark number to search for. **Description** If the **xas** has not yet been walked to an entry, return the marked entry which has an index >= xas.xa_index. If it has been walked, the entry currently being pointed at has been processed, and so we return the first marked entry with an index > xas.xa_index. If no marked entry is found and the array is smaller than **max**, **xas** is set to the bounds state and xas->xa_index is set to the smallest index not yet in the array. This allows **xas** to be immediately passed to xas_store(). If no entry is found before **max** is reached, **xas** is set to the restart state. **Return** The entry, if found, otherwise ``NULL``.h](h)}(h**Parameters**h]jZ)}(hjbh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj`ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj\ubj)}(hhh](j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]jG)}(hjh]hstruct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj{ubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjxubj)}(h/``unsigned long max`` Highest index to return. h](j)}(h``unsigned long max``h]jG)}(hjh]hunsigned long max}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(hHighest index to return.h]hHighest index to return.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjxubj)}(h.``xa_mark_t mark`` Mark number to search for. h](j)}(h``xa_mark_t mark``h]jG)}(hjh]hxa_mark_t mark}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(hMark number to search for.h]hMark number to search for.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjxubeh}(h]h ]h"]h$]h&]uh1jhj\ubh)}(h**Description**h]jZ)}(hj.h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj,ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj\ubh)}(hXIf the **xas** has not yet been walked to an entry, return the marked entry which has an index >= xas.xa_index. If it has been walked, the entry currently being pointed at has been processed, and so we return the first marked entry with an index > xas.xa_index.h](hIf the }(hjDhhhNhNubjZ)}(h**xas**h]hxas}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjDubh has not yet been walked to an entry, return the marked entry which has an index >= xas.xa_index. If it has been walked, the entry currently being pointed at has been processed, and so we return the first marked entry with an index > xas.xa_index.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj\ubh)}(hIf no marked entry is found and the array is smaller than **max**, **xas** is set to the bounds state and xas->xa_index is set to the smallest index not yet in the array. This allows **xas** to be immediately passed to xas_store().h](h:If no marked entry is found and the array is smaller than }(hjehhhNhNubjZ)}(h**max**h]hmax}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjeubh, }(hjehhhNhNubjZ)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjeubhn is set to the bounds state and xas->xa_index is set to the smallest index not yet in the array. This allows }(hjehhhNhNubjZ)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjeubh) to be immediately passed to xas_store().}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj\ubh)}(hTIf no entry is found before **max** is reached, **xas** is set to the restart state.h](hIf no entry is found before }(hjhhhNhNubjZ)}(h**max**h]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh is reached, }(hjhhhNhNubjZ)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh is set to the restart state.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj\ubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj\ubh)}(h(The entry, if found, otherwise ``NULL``.h](hThe entry, if found, otherwise }(hjhhhNhNubjG)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_find_conflict (C function)c.xas_find_conflicthNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h/void * xas_find_conflict (struct xa_state *xas)h]j])}(h-void *xas_find_conflict(struct xa_state *xas)h](jc)}(hvoidh]hvoid}(hj6hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj2hhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubju)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj2hhhjDhMubj)}(hj*h]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhjDhMubj)}(hxas_find_conflicth]j)}(hxas_find_conflicth]hxas_find_conflict}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj2hhhjDhMubj)}(h(struct xa_state *xas)h]j)}(hstruct xa_state *xash](jy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj|ubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj|ubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jfsbc.xas_find_conflictasbuh1hhj|ubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj|ubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj)}(hxash]hxas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjxubah}(h]h ]h"]h$]h&]hhuh1jhj2hhhjDhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj.hhhjDhMubah}(h]j)ah ](jj eh"]h$]h&]j$j%)j&huh1jVhjDhMhj+hhubj()}(hhh]h)}(h'Find the next present entry in a range.h]h'Find the next present entry in a range.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjhhubah}(h]h ]h"]h$]h&]uh1j'hj+hhhjDhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xa_state *xas`` XArray operation state. **Description** The **xas** describes both a range and a position within that range. **Context** Any context. Expects xa_lock to be held. **Return** The next entry in the range covered by **xas** or ``NULL``.h](h)}(h**Parameters**h]jZ)}(hj%h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj#ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubj)}(hhh]j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]jG)}(hjDh]hstruct xa_state *xas}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjBubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hj>ubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhM hjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhM hj;ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj}ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubh)}(hDThe **xas** describes both a range and a position within that range.h](hThe }(hjhhhNhNubjZ)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh9 describes both a range and a position within that range.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubh)}(h **Context**h]jZ)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubh)}(h)Any context. Expects xa_lock to be held.h]h)Any context. Expects xa_lock to be held.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h;The next entry in the range covered by **xas** or ``NULL``.h](h'The next entry in the range covered by }(hjhhhNhNubjZ)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh or }(hjhhhNhNubjG)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_load (C function) c.xa_loadhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h7void * xa_load (struct xarray *xa, unsigned long index)h]j])}(h5void *xa_load(struct xarray *xa, unsigned long index)h](jc)}(hvoidh]hvoid}(hjHhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjDhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMEubju)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjDhhhjVhMEubj)}(hj*h]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhjVhMEubj)}(hxa_loadh]j)}(hxa_loadh]hxa_load}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ](jjeh"]h$]h&]hhuh1jhjDhhhjVhMEubj)}(h((struct xarray *xa, unsigned long index)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxarrayh]hxarray}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jxsb c.xa_loadasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxah]hxa}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long indexh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubjc)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hindexh]hindex}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjDhhhjVhMEubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj@hhhjVhMEubah}(h]j;ah ](jj eh"]h$]h&]j$j%)j&huh1jVhjVhMEhj=hhubj()}(hhh]h)}(hLoad an entry from an XArray.h]hLoad an entry from an XArray.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMEhjchhubah}(h]h ]h"]h$]h&]uh1j'hj=hhhjVhMEubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJj~jKj~jLjMjNuh1jQhhhj/hNhNubjP)}(h**Parameters** ``struct xarray *xa`` XArray. ``unsigned long index`` index into array. **Context** Any context. Takes and releases the RCU lock. **Return** The entry at **index** in **xa**.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMIhjubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hjh]hstruct xarray *xa}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMFhjubj)}(hhh]h)}(hXArray.h]hXArray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMFhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMFhjubj)}(h*``unsigned long index`` index into array. h](j)}(h``unsigned long index``h]jG)}(hjh]hunsigned long index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMGhjubj)}(hhh]h)}(hindex into array.h]hindex into array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMGhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMGhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Context**h]jZ)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMIhjubh)}(h.Any context. Takes and releases the RCU lock.h]h.Any context. Takes and releases the RCU lock.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMIhjubh)}(h **Return**h]jZ)}(hjBh]hReturn}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj@ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMKhjubh)}(h!The entry at **index** in **xa**.h](h The entry at }(hjXhhhNhNubjZ)}(h **index**h]hindex}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjXubh in }(hjXhhhNhNubjZ)}(h**xa**h]hxa}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjXubh.}(hjXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMJhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jM__xa_erase (C function) c.__xa_erasehNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h:void * __xa_erase (struct xarray *xa, unsigned long index)h]j])}(h8void *__xa_erase(struct xarray *xa, unsigned long index)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMcubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjhMcubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMcubj)}(h __xa_eraseh]j)}(h __xa_eraseh]h __xa_erase}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMcubj)}(h((struct xarray *xa, unsigned long index)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxarrayh]hxarray}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jsb c.__xa_eraseasbuh1hhjubju)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxah]hxa}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long indexh](jc)}(hunsignedh]hunsigned}(hjghhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjcubju)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjcubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjcubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjcubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMcubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjhMcubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhMchjhhubj()}(hhh]h)}(h.Erase this entry from the XArray while locked.h]h.Erase this entry from the XArray while locked.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMchjhhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjhMcubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xarray *xa`` XArray. ``unsigned long index`` Index into array. **Description** After this function returns, loading from **index** will return ``NULL``. If the index is part of a multi-index entry, all indices will be erased and none of the entries will be part of a multi-index entry. **Context** Any context. Expects xa_lock to be held on entry. **Return** The entry which used to be at this index.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMghjubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hj h]hstruct xarray *xa}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMdhjubj)}(hhh]h)}(hXArray.h]hXArray.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMdhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMdhjubj)}(h*``unsigned long index`` Index into array. h](j)}(h``unsigned long index``h]jG)}(hjCh]hunsigned long index}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjAubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMehj=ubj)}(hhh]h)}(hIndex into array.h]hIndex into array.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMehjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMehjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hj~h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj|ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMghjubh)}(hAfter this function returns, loading from **index** will return ``NULL``. If the index is part of a multi-index entry, all indices will be erased and none of the entries will be part of a multi-index entry.h](h*After this function returns, loading from }(hjhhhNhNubjZ)}(h **index**h]hindex}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh will return }(hjhhhNhNubjG)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh. If the index is part of a multi-index entry, all indices will be erased and none of the entries will be part of a multi-index entry.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMfhjubh)}(h **Context**h]jZ)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMjhjubh)}(h2Any context. Expects xa_lock to be held on entry.h]h2Any context. Expects xa_lock to be held on entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMkhjubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMmhjubh)}(h)The entry which used to be at this index.h]h)The entry which used to be at this index.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMlhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_erase (C function) c.xa_erasehNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h8void * xa_erase (struct xarray *xa, unsigned long index)h]j])}(h6void *xa_erase(struct xarray *xa, unsigned long index)h](jc)}(hvoidh]hvoid}(hj5hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj1hhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMvubju)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj1hhhjChMvubj)}(hj*h]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhjChMvubj)}(hxa_eraseh]j)}(hxa_eraseh]hxa_erase}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj1hhhjChMvubj)}(h((struct xarray *xa, unsigned long index)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj{ubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj{ubh)}(hhh]j)}(hxarrayh]hxarray}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jesb c.xa_eraseasbuh1hhj{ubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj{ubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj)}(hxah]hxa}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjwubj)}(hunsigned long indexh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubjc)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hindexh]hindex}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjwubeh}(h]h ]h"]h$]h&]hhuh1jhj1hhhjChMvubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj-hhhjChMvubah}(h]j(ah ](jj eh"]h$]h&]j$j%)j&huh1jVhjChMvhj*hhubj()}(hhh]h)}(h!Erase this entry from the XArray.h]h!Erase this entry from the XArray.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMvhjPhhubah}(h]h ]h"]h$]h&]uh1j'hj*hhhjChMvubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjkjKjkjLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xarray *xa`` XArray. ``unsigned long index`` Index of entry. **Description** After this function returns, loading from **index** will return ``NULL``. If the index is part of a multi-index entry, all indices will be erased and none of the entries will be part of a multi-index entry. **Context** Any context. Takes and releases the xa_lock. **Return** The entry which used to be at this index.h](h)}(h**Parameters**h]jZ)}(hjuh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjsubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMzhjoubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hjh]hstruct xarray *xa}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMwhjubj)}(hhh]h)}(hXArray.h]hXArray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMwhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMwhjubj)}(h(``unsigned long index`` Index of entry. h](j)}(h``unsigned long index``h]jG)}(hjh]hunsigned long index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMxhjubj)}(hhh]h)}(hIndex of entry.h]hIndex of entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMxhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMxhjubeh}(h]h ]h"]h$]h&]uh1jhjoubh)}(h**Description**h]jZ)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMzhjoubh)}(hAfter this function returns, loading from **index** will return ``NULL``. If the index is part of a multi-index entry, all indices will be erased and none of the entries will be part of a multi-index entry.h](h*After this function returns, loading from }(hjhhhNhNubjZ)}(h **index**h]hindex}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh will return }(hjhhhNhNubjG)}(h``NULL``h]hNULL}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh. If the index is part of a multi-index entry, all indices will be erased and none of the entries will be part of a multi-index entry.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMyhjoubh)}(h **Context**h]jZ)}(hjSh]hContext}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjQubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM}hjoubh)}(h-Any context. Takes and releases the xa_lock.h]h-Any context. Takes and releases the xa_lock.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM~hjoubh)}(h **Return**h]jZ)}(hjzh]hReturn}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjxubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjoubh)}(h)The entry which used to be at this index.h]h)The entry which used to be at this index.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jM__xa_store (C function) c.__xa_storehNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hRvoid * __xa_store (struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h]j])}(hPvoid *__xa_store(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjhMubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(h __xa_storeh]j)}(h __xa_storeh]h __xa_store}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMubj)}(h@(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxarrayh]hxarray}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj)modnameN classnameNj%j%)}j%]j%)}j%jsb c.__xa_storeasbuh1hhjubju)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxah]hxa}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long indexh](jc)}(hunsignedh]hunsigned}(hj{hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjwubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjwubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjwubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjwubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(h void *entryh](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]jC c.__xa_storeasbuh1hhj ubju)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj ubj)}(hgfph]hgfp}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjhMubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhMhjhhubj()}(hhh]h)}(hStore this entry in the XArray.h]hStore this entry in the XArray.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjdhhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xarray *xa`` XArray. ``unsigned long index`` Index into array. ``void *entry`` New entry. ``gfp_t gfp`` Memory allocation flags. **Description** You must already be holding the xa_lock when calling this function. It will drop the lock if needed to allocate memory, and then reacquire it afterwards. **Context** Any context. Expects xa_lock to be held on entry. May release and reacquire xa_lock if **gfp** flags permit. **Return** The old entry at this index or xa_err() if an error happened.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hjh]hstruct xarray *xa}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(hXArray.h]hXArray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h*``unsigned long index`` Index into array. h](j)}(h``unsigned long index``h]jG)}(hjh]hunsigned long index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(hIndex into array.h]hIndex into array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``void *entry`` New entry. h](j)}(h``void *entry``h]jG)}(hjh]h void *entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(h New entry.h]h New entry.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hMhjubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]jG)}(hjSh]h gfp_t gfp}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjQubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjMubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(hYou must already be holding the xa_lock when calling this function. It will drop the lock if needed to allocate memory, and then reacquire it afterwards.h]hYou must already be holding the xa_lock when calling this function. It will drop the lock if needed to allocate memory, and then reacquire it afterwards.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h **Context**h]jZ)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(hnAny context. Expects xa_lock to be held on entry. May release and reacquire xa_lock if **gfp** flags permit.h](hYAny context. Expects xa_lock to be held on entry. May release and reacquire xa_lock if }(hjhhhNhNubjZ)}(h**gfp**h]hgfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh flags permit.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h=The old entry at this index or xa_err() if an error happened.h]h=The old entry at this index or xa_err() if an error happened.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_store (C function) c.xa_storehNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hPvoid * xa_store (struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h]j])}(hNvoid *xa_store(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](jc)}(hvoidh]hvoid}(hj3hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj/hhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubju)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj/hhhjAhMubj)}(hj*h]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhjAhMubj)}(hxa_storeh]j)}(hxa_storeh]hxa_store}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj/hhhjAhMubj)}(h@(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjyubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjyubh)}(hhh]j)}(hxarrayh]hxarray}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jcsb c.xa_storeasbuh1hhjyubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjyubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj)}(hxah]hxa}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjuubj)}(hunsigned long indexh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubjc)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hindexh]hindex}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjuubj)}(h void *entryh](jc)}(hvoidh]hvoid}(hj@hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj<ubju)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj<ubj)}(hj*h]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj)}(hentryh]hentry}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjuubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j c.xa_storeasbuh1hhj~ubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj~ubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjuubeh}(h]h ]h"]h$]h&]hhuh1jhj/hhhjAhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj+hhhjAhMubah}(h]j&ah ](jj eh"]h$]h&]j$j%)j&huh1jVhjAhMhj(hhubj()}(hhh]h)}(hStore this entry in the XArray.h]hStore this entry in the XArray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjhhubah}(h]h ]h"]h$]h&]uh1j'hj(hhhjAhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xarray *xa`` XArray. ``unsigned long index`` Index into array. ``void *entry`` New entry. ``gfp_t gfp`` Memory allocation flags. **Description** After this function returns, loads from this index will return **entry**. Storing into an existing multi-index entry updates the entry of every index. The marks associated with **index** are unaffected unless **entry** is ``NULL``. **Context** Any context. Takes and releases the xa_lock. May sleep if the **gfp** flags permit. **Return** The old entry at this index on success, xa_err(-EINVAL) if **entry** cannot be stored in an XArray, or xa_err(-ENOMEM) if memory allocation failed.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hjh]hstruct xarray *xa}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(hXArray.h]hXArray.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hMhjubj)}(h*``unsigned long index`` Index into array. h](j)}(h``unsigned long index``h]jG)}(hjUh]hunsigned long index}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjSubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjOubj)}(hhh]h)}(hIndex into array.h]hIndex into array.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMhjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjubj)}(h``void *entry`` New entry. h](j)}(h``void *entry``h]jG)}(hjh]h void *entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(h New entry.h]h New entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]jG)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(hAfter this function returns, loads from this index will return **entry**. Storing into an existing multi-index entry updates the entry of every index. The marks associated with **index** are unaffected unless **entry** is ``NULL``.h](h?After this function returns, loads from this index will return }(hjhhhNhNubjZ)}(h **entry**h]hentry}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubhi. Storing into an existing multi-index entry updates the entry of every index. The marks associated with }(hjhhhNhNubjZ)}(h **index**h]hindex}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh are unaffected unless }(hjhhhNhNubjZ)}(h **entry**h]hentry}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh is }(hjhhhNhNubjG)}(h``NULL``h]hNULL}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h **Context**h]jZ)}(hjqh]hContext}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjoubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(hTAny context. Takes and releases the xa_lock. May sleep if the **gfp** flags permit.h](h?Any context. Takes and releases the xa_lock. May sleep if the }(hjhhhNhNubjZ)}(h**gfp**h]hgfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh flags permit.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(hThe old entry at this index on success, xa_err(-EINVAL) if **entry** cannot be stored in an XArray, or xa_err(-ENOMEM) if memory allocation failed.h](h;The old entry at this index on success, xa_err(-EINVAL) if e}(hjhhhNhNubjZ)}(h **entry**h]hentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubhO cannot be stored in an XArray, or xa_err(-ENOMEM) if memory allocation failed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jM__xa_cmpxchg (C function)c.__xa_cmpxchghNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h_void * __xa_cmpxchg (struct xarray *xa, unsigned long index, void *old, void *entry, gfp_t gfp)h]j])}(h]void *__xa_cmpxchg(struct xarray *xa, unsigned long index, void *old, void *entry, gfp_t gfp)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjhMubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj)}(h __xa_cmpxchgh]j)}(h __xa_cmpxchgh]h __xa_cmpxchg}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMubj)}(hK(struct xarray *xa, unsigned long index, void *old, void *entry, gfp_t gfp)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjGubju)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjGubh)}(hhh]j)}(hxarrayh]hxarray}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjkmodnameN classnameNj%j%)}j%]j%)}j%j1sbc.__xa_cmpxchgasbuh1hhjGubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjGubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj)}(hxah]hxa}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjCubj)}(hunsigned long indexh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjCubj)}(h void *oldh](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj ubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj ubj)}(hj*h]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(holdh]hold}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjCubj)}(h void *entryh](jc)}(hvoidh]hvoid}(hjPhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjLubju)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjLubj)}(hj*h]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj)}(hentryh]hentry}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjCubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]jc.__xa_cmpxchgasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjCubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjhMubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhMhjhhubj()}(hhh]h)}(h-Conditionally replace an entry in the XArray.h]h-Conditionally replace an entry in the XArray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjhhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xarray *xa`` XArray. ``unsigned long index`` Index into array. ``void *old`` Old value to test against. ``void *entry`` New value to place in array. ``gfp_t gfp`` Memory allocation flags. **Description** You must already be holding the xa_lock when calling this function. It will drop the lock if needed to allocate memory, and then reacquire it afterwards. If the entry at **index** is the same as **old**, replace it with **entry**. If the return value is equal to **old**, then the exchange was successful. **Context** Any context. Expects xa_lock to be held on entry. May release and reacquire xa_lock if **gfp** flags permit. **Return** The old value at this index or xa_err() if an error happened.h](h)}(h**Parameters**h]jZ)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hj,h]hstruct xarray *xa}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj*ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj&ubj)}(hhh]h)}(hXArray.h]hXArray.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMhjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMhj#ubj)}(h*``unsigned long index`` Index into array. h](j)}(h``unsigned long index``h]jG)}(hjeh]hunsigned long index}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjcubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj_ubj)}(hhh]h)}(hIndex into array.h]hIndex into array.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMhj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMhj#ubj)}(h)``void *old`` Old value to test against. h](j)}(h ``void *old``h]jG)}(hjh]h void *old}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(hOld value to test against.h]hOld value to test against.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj#ubj)}(h-``void *entry`` New value to place in array. h](j)}(h``void *entry``h]jG)}(hjh]h void *entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(hNew value to place in array.h]hNew value to place in array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj#ubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]jG)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj ubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hMhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhj#ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjKh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjIubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(hYou must already be holding the xa_lock when calling this function. It will drop the lock if needed to allocate memory, and then reacquire it afterwards.h]hYou must already be holding the xa_lock when calling this function. It will drop the lock if needed to allocate memory, and then reacquire it afterwards.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(hIf the entry at **index** is the same as **old**, replace it with **entry**. If the return value is equal to **old**, then the exchange was successful.h](hIf the entry at }(hjphhhNhNubjZ)}(h **index**h]hindex}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjpubh is the same as }(hjphhhNhNubjZ)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjpubh, replace it with }(hjphhhNhNubjZ)}(h **entry**h]hentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjpubh". If the return value is equal to }(hjphhhNhNubjZ)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjpubh#, then the exchange was successful.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h **Context**h]jZ)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(hnAny context. Expects xa_lock to be held on entry. May release and reacquire xa_lock if **gfp** flags permit.h](hYAny context. Expects xa_lock to be held on entry. May release and reacquire xa_lock if }(hjhhhNhNubjZ)}(h**gfp**h]hgfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh flags permit.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h=The old value at this index or xa_err() if an error happened.h]h=The old value at this index or xa_err() if an error happened.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jM__xa_insert (C function) c.__xa_inserthNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hPint __xa_insert (struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h]j])}(hOint __xa_insert(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](jc)}(hinth]hint}(hjGhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjChhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubju)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjChhhjUhMubj)}(h __xa_inserth]j)}(h __xa_inserth]h __xa_insert}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ](jjeh"]h$]h&]hhuh1jhjChhhjUhMubj)}(h@(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxarrayh]hxarray}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jjsb c.__xa_insertasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxah]hxa}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj|ubj)}(hunsigned long indexh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hindexh]hindex}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj|ubj)}(h void *entryh](jc)}(hvoidh]hvoid}(hjGhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjCubju)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjCubj)}(hj*h]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj)}(hentryh]hentry}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj|ubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j c.__xa_insertasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj|ubeh}(h]h ]h"]h$]h&]hhuh1jhjChhhjUhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj?hhhjUhMubah}(h]j:ah ](jj eh"]h$]h&]j$j%)j&huh1jVhjUhMhj<hhubj()}(hhh]h)}(h6Store this entry in the XArray if no entry is present.h]h6Store this entry in the XArray if no entry is present.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjhhubah}(h]h ]h"]h$]h&]uh1j'hj<hhhjUhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(hXt**Parameters** ``struct xarray *xa`` XArray. ``unsigned long index`` Index into array. ``void *entry`` New entry. ``gfp_t gfp`` Memory allocation flags. **Description** Inserting a NULL entry will store a reserved entry (like xa_reserve()) if no entry is present. Inserting will fail if a reserved entry is present, even though loading from this index will return NULL. **Context** Any context. Expects xa_lock to be held on entry. May release and reacquire xa_lock if **gfp** flags permit. **Return** 0 if the store succeeded. -EBUSY if another entry was present. -ENOMEM if memory could not be allocated.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hj#h]hstruct xarray *xa}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj!ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(hXArray.h]hXArray.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjubj)}(h*``unsigned long index`` Index into array. h](j)}(h``unsigned long index``h]jG)}(hj\h]hunsigned long index}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjZubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjVubj)}(hhh]h)}(hIndex into array.h]hIndex into array.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMhjubj)}(h``void *entry`` New entry. h](j)}(h``void *entry``h]jG)}(hjh]h void *entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(h New entry.h]h New entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]jG)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(hInserting a NULL entry will store a reserved entry (like xa_reserve()) if no entry is present. Inserting will fail if a reserved entry is present, even though loading from this index will return NULL.h]hInserting a NULL entry will store a reserved entry (like xa_reserve()) if no entry is present. Inserting will fail if a reserved entry is present, even though loading from this index will return NULL.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h **Context**h]jZ)}(hj0h]hContext}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj.ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubh)}(hnAny context. Expects xa_lock to be held on entry. May release and reacquire xa_lock if **gfp** flags permit.h](hYAny context. Expects xa_lock to be held on entry. May release and reacquire xa_lock if }(hjFhhhNhNubjZ)}(h**gfp**h]hgfp}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjFubh flags permit.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubh)}(h **Return**h]jZ)}(hjih]hReturn}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjgubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubh)}(hi0 if the store succeeded. -EBUSY if another entry was present. -ENOMEM if memory could not be allocated.h]hi0 if the store succeeded. -EBUSY if another entry was present. -ENOMEM if memory could not be allocated.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_store_range (C function)c.xa_store_rangehNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hjvoid * xa_store_range (struct xarray *xa, unsigned long first, unsigned long last, void *entry, gfp_t gfp)h]j])}(hhvoid *xa_store_range(struct xarray *xa, unsigned long first, unsigned long last, void *entry, gfp_t gfp)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM?ubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjhM?ubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM?ubj)}(hxa_store_rangeh]j)}(hxa_store_rangeh]hxa_store_range}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhM?ubj)}(hT(struct xarray *xa, unsigned long first, unsigned long last, void *entry, gfp_t gfp)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxarrayh]hxarray}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jsbc.xa_store_rangeasbuh1hhjubju)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxah]hxa}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long firsth](jc)}(hunsignedh]hunsigned}(hjjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjfubju)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjfubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjfubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjfubj)}(hfirsth]hfirst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long lasth](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hlasth]hlast}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(h void *entryh](jc)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hentryh]hentry}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjSmodnameN classnameNj%j%)}j%]j2c.xa_store_rangeasbuh1hhjJubju)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjJubj)}(hgfph]hgfp}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhM?ubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjhM?ubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhM?hjhhubj()}(hhh]h)}(h5Store this entry at a range of indices in the XArray.h]h5Store this entry at a range of indices in the XArray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM?hjhhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjhM?ubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xarray *xa`` XArray. ``unsigned long first`` First index to affect. ``unsigned long last`` Last index to affect. ``void *entry`` New entry. ``gfp_t gfp`` Memory allocation flags. **Description** After this function returns, loads from any index between **first** and **last**, inclusive will return **entry**. Storing into an existing multi-index entry updates the entry of every index. The marks associated with **index** are unaffected unless **entry** is ``NULL``. **Context** Process context. Takes and releases the xa_lock. May sleep if the **gfp** flags permit. **Return** ``NULL`` on success, xa_err(-EINVAL) if **entry** cannot be stored in an XArray, or xa_err(-ENOMEM) if memory allocation failed.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMChjubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hjh]hstruct xarray *xa}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM@hjubj)}(hhh]h)}(hXArray.h]hXArray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM@hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM@hjubj)}(h/``unsigned long first`` First index to affect. h](j)}(h``unsigned long first``h]jG)}(hj!h]hunsigned long first}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMAhjubj)}(hhh]h)}(hFirst index to affect.h]hFirst index to affect.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMAhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hMAhjubj)}(h-``unsigned long last`` Last index to affect. h](j)}(h``unsigned long last``h]jG)}(hjZh]hunsigned long last}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjXubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMBhjTubj)}(hhh]h)}(hLast index to affect.h]hLast index to affect.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMBhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohMBhjubj)}(h``void *entry`` New entry. h](j)}(h``void *entry``h]jG)}(hjh]h void *entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMChjubj)}(hhh]h)}(h New entry.h]h New entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMChjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMChjubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]jG)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMDhjubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMDhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMDhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMFhjubh)}(hXAfter this function returns, loads from any index between **first** and **last**, inclusive will return **entry**. Storing into an existing multi-index entry updates the entry of every index. The marks associated with **index** are unaffected unless **entry** is ``NULL``.h](h:After this function returns, loads from any index between }(hjhhhNhNubjZ)}(h **first**h]hfirst}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh and }(hjhhhNhNubjZ)}(h**last**h]hlast}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh, inclusive will return }(hjhhhNhNubjZ)}(h **entry**h]hentry}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubhi. Storing into an existing multi-index entry updates the entry of every index. The marks associated with }(hjhhhNhNubjZ)}(h **index**h]hindex}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh are unaffected unless }(hjhhhNhNubjZ)}(h **entry**h]hentry}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh is }(hjhhhNhNubjG)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMEhjubh)}(h **Context**h]jZ)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMJhjubh)}(hYProcess context. Takes and releases the xa_lock. May sleep if the **gfp** flags permit.h](hDProcess context. Takes and releases the xa_lock. May sleep if the }(hjhhhNhNubjZ)}(h**gfp**h]hgfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh flags permit.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMKhjubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMNhjubh)}(h``NULL`` on success, xa_err(-EINVAL) if **entry** cannot be stored in an XArray, or xa_err(-ENOMEM) if memory allocation failed.h](jG)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh on success, xa_err(-EINVAL) if }(hjhhhNhNubjZ)}(h **entry**h]hentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubhO cannot be stored in an XArray, or xa_err(-ENOMEM) if memory allocation failed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxas_get_order (C function)c.xas_get_orderhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h(int xas_get_order (struct xa_state *xas)h]j])}(h'int xas_get_order(struct xa_state *xas)h](jc)}(hinth]hint}(hj8hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj4hhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMuubju)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj4hhhjFhMuubj)}(h xas_get_orderh]j)}(h xas_get_orderh]h xas_get_order}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ](jjeh"]h$]h&]hhuh1jhj4hhhjFhMuubj)}(h(struct xa_state *xas)h]j)}(hstruct xa_state *xash](jy)}(hj h]hstruct}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjqubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjqubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%j[sbc.xas_get_orderasbuh1hhjqubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjqubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj)}(hxash]hxas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjmubah}(h]h ]h"]h$]h&]hhuh1jhj4hhhjFhMuubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj0hhhjFhMuubah}(h]j+ah ](jj eh"]h$]h&]j$j%)j&huh1jVhjFhMuhj-hhubj()}(hhh]h)}(hGet the order of an entry.h]hGet the order of an entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMuhjhhubah}(h]h ]h"]h$]h&]uh1j'hj-hhhjFhMuubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xa_state *xas`` XArray operation state. **Description** Called after xas_load, the xas should not be in an error state. The xas should not be pointing to a sibling entry. **Return** A number between 0 and 63 indicating the order of the entry.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMyhjubj)}(hhh]j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]jG)}(hj9h]hstruct xa_state *xas}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj7ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMvhj3ubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMvhjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhMvhj0ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjth]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjrubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMxhjubh)}(hrCalled after xas_load, the xas should not be in an error state. The xas should not be pointing to a sibling entry.h]hrCalled after xas_load, the xas should not be in an error state. The xas should not be pointing to a sibling entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMwhjubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMzhjubh)}(hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj-ubh)}(hhh]j)}(hxa_limith]hxa_limit}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjQmodnameN classnameNj%j%)}j%]jb c.__xa_allocasbuh1hhj-ubju)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj-ubj)}(hlimith]hlimit}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj ubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]jb c.__xa_allocasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj ubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjhMubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhMhjhhubj()}(hhh]h)}(h1Find somewhere to store this entry in the XArray.h]h1Find somewhere to store this entry in the XArray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjhhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xarray *xa`` XArray. ``u32 *id`` Pointer to ID. ``void *entry`` New entry. ``struct xa_limit limit`` Range for allocated ID. ``gfp_t gfp`` Memory allocation flags. **Description** Finds an empty entry in **xa** between **limit.min** and **limit.max**, stores the index into the **id** pointer, then stores the entry at that index. A concurrent lookup will not see an uninitialised **id**. Must only be operated on an xarray initialized with flag XA_FLAGS_ALLOC set in xa_init_flags(). **Context** Any context. Expects xa_lock to be held on entry. May release and reacquire xa_lock if **gfp** flags permit. **Return** 0 on success, -ENOMEM if memory could not be allocated or -EBUSY if there are no free entries in **limit**.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj ubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hj.h]hstruct xarray *xa}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj,ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj(ubj)}(hhh]h)}(hXArray.h]hXArray.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMhj%ubj)}(h``u32 *id`` Pointer to ID. h](j)}(h ``u32 *id``h]jG)}(hjgh]hu32 *id}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjeubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjaubj)}(hhh]h)}(hPointer to ID.h]hPointer to ID.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hMhj%ubj)}(h``void *entry`` New entry. h](j)}(h``void *entry``h]jG)}(hjh]h void *entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(h New entry.h]h New entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj%ubj)}(h2``struct xa_limit limit`` Range for allocated ID. h](j)}(h``struct xa_limit limit``h]jG)}(hjh]hstruct xa_limit limit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(hRange for allocated ID.h]hRange for allocated ID.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj%ubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]jG)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj ubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hMhj(ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hMhj%ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]jZ)}(hjMh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjKubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj ubh)}(hFinds an empty entry in **xa** between **limit.min** and **limit.max**, stores the index into the **id** pointer, then stores the entry at that index. A concurrent lookup will not see an uninitialised **id**.h](hFinds an empty entry in }(hjchhhNhNubjZ)}(h**xa**h]hxa}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjcubh between }(hjchhhNhNubjZ)}(h **limit.min**h]h limit.min}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjcubh and }(hjchhhNhNubjZ)}(h **limit.max**h]h limit.max}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjcubh, stores the index into the }(hjchhhNhNubjZ)}(h**id**h]hid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjcubhb pointer, then stores the entry at that index. A concurrent lookup will not see an uninitialised }(hjchhhNhNubjZ)}(h**id**h]hid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjcubh.}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj ubh)}(h_Must only be operated on an xarray initialized with flag XA_FLAGS_ALLOC set in xa_init_flags().h]h_Must only be operated on an xarray initialized with flag XA_FLAGS_ALLOC set in xa_init_flags().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj ubh)}(h **Context**h]jZ)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj ubh)}(hnAny context. Expects xa_lock to be held on entry. May release and reacquire xa_lock if **gfp** flags permit.h](hYAny context. Expects xa_lock to be held on entry. May release and reacquire xa_lock if }(hjhhhNhNubjZ)}(h**gfp**h]hgfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh flags permit.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj ubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj ubh)}(hk0 on success, -ENOMEM if memory could not be allocated or -EBUSY if there are no free entries in **limit**.h](ha0 on success, -ENOMEM if memory could not be allocated or -EBUSY if there are no free entries in }(hj,hhhNhNubjZ)}(h **limit**h]hlimit}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj,ubh.}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jM__xa_alloc_cyclic (C function)c.__xa_alloc_cyclichNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hlint __xa_alloc_cyclic (struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, u32 *next, gfp_t gfp)h]j])}(hkint __xa_alloc_cyclic(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, u32 *next, gfp_t gfp)h](jc)}(hinth]hint}(hjmhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjihhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubju)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjihhhj{hMubj)}(h__xa_alloc_cyclich]j)}(h__xa_alloc_cyclich]h__xa_alloc_cyclic}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjihhhj{hMubj)}(hV(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, u32 *next, gfp_t gfp)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxarrayh]hxarray}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jsbc.__xa_alloc_cyclicasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxah]hxa}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hu32 *idh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj!modnameN classnameNj%j%)}j%]jc.__xa_alloc_cyclicasbuh1hhjubju)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hidh]hid}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(h void *entryh](jc)}(hvoidh]hvoid}(hjqhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjmubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjmubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hstruct xa_limit limith](jy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxa_limith]hxa_limit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]jc.__xa_alloc_cyclicasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hlimith]hlimit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(h u32 *nexth](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]jc.__xa_alloc_cyclicasbuh1hhjubju)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnexth]hnext}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjpmodnameN classnameNj%j%)}j%]jc.__xa_alloc_cyclicasbuh1hhjgubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjgubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjihhhj{hMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjehhhj{hMubah}(h]j`ah ](jj eh"]h$]h&]j$j%)j&huh1jVhj{hMhjbhhubj()}(hhh]h)}(h1Find somewhere to store this entry in the XArray.h]h1Find somewhere to store this entry in the XArray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjhhubah}(h]h ]h"]h$]h&]uh1j'hjbhhhj{hMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xarray *xa`` XArray. ``u32 *id`` Pointer to ID. ``void *entry`` New entry. ``struct xa_limit limit`` Range of allocated ID. ``u32 *next`` Pointer to next ID to allocate. ``gfp_t gfp`` Memory allocation flags. **Description** Finds an empty entry in **xa** between **limit.min** and **limit.max**, stores the index into the **id** pointer, then stores the entry at that index. A concurrent lookup will not see an uninitialised **id**. The search for an empty entry will start at **next** and will wrap around if necessary. Must only be operated on an xarray initialized with flag XA_FLAGS_ALLOC set in xa_init_flags(). **Context** Any context. Expects xa_lock to be held on entry. May release and reacquire xa_lock if **gfp** flags permit. **Return** 0 if the allocation succeeded without wrapping. 1 if the allocation succeeded after wrapping, -ENOMEM if memory could not be allocated or -EBUSY if there are no free entries in **limit**. h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hjh]hstruct xarray *xa}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(hXArray.h]hXArray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``u32 *id`` Pointer to ID. h](j)}(h ``u32 *id``h]jG)}(hj>h]hu32 *id}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj<ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj8ubj)}(hhh]h)}(hPointer to ID.h]hPointer to ID.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShMhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhjubj)}(h``void *entry`` New entry. h](j)}(h``void *entry``h]jG)}(hjwh]h void *entry}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjuubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjqubj)}(hhh]h)}(h New entry.h]h New entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h1``struct xa_limit limit`` Range of allocated ID. h](j)}(h``struct xa_limit limit``h]jG)}(hjh]hstruct xa_limit limit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(hRange of allocated ID.h]hRange of allocated ID.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h.``u32 *next`` Pointer to next ID to allocate. h](j)}(h ``u32 *next``h]jG)}(hjh]h u32 *next}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(hPointer to next ID to allocate.h]hPointer to next ID to allocate.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]jG)}(hj"h]h gfp_t gfp}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hj]h]h Description}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj[ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(hX)Finds an empty entry in **xa** between **limit.min** and **limit.max**, stores the index into the **id** pointer, then stores the entry at that index. A concurrent lookup will not see an uninitialised **id**. The search for an empty entry will start at **next** and will wrap around if necessary.h](hFinds an empty entry in }(hjshhhNhNubjZ)}(h**xa**h]hxa}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjsubh between }(hjshhhNhNubjZ)}(h **limit.min**h]h limit.min}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjsubh and }(hjshhhNhNubjZ)}(h **limit.max**h]h limit.max}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjsubh, stores the index into the }(hjshhhNhNubjZ)}(h**id**h]hid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjsubhb pointer, then stores the entry at that index. A concurrent lookup will not see an uninitialised }(hjshhhNhNubjZ)}(h**id**h]hid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjsubh.. The search for an empty entry will start at }(hjshhhNhNubjZ)}(h**next**h]hnext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjsubh# and will wrap around if necessary.}(hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h_Must only be operated on an xarray initialized with flag XA_FLAGS_ALLOC set in xa_init_flags().h]h_Must only be operated on an xarray initialized with flag XA_FLAGS_ALLOC set in xa_init_flags().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h **Context**h]jZ)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(hnAny context. Expects xa_lock to be held on entry. May release and reacquire xa_lock if **gfp** flags permit.h](hYAny context. Expects xa_lock to be held on entry. May release and reacquire xa_lock if }(hjhhhNhNubjZ)}(h**gfp**h]hgfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh flags permit.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h **Return**h]jZ)}(hj8h]hReturn}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj6ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h0 if the allocation succeeded without wrapping. 1 if the allocation succeeded after wrapping, -ENOMEM if memory could not be allocated or -EBUSY if there are no free entries in **limit**.h](h0 if the allocation succeeded without wrapping. 1 if the allocation succeeded after wrapping, -ENOMEM if memory could not be allocated or -EBUSY if there are no free entries in }(hjNhhhNhNubjZ)}(h **limit**h]hlimit}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjNubh.}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jM__xa_set_mark (C function)c.__xa_set_markhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hKvoid __xa_set_mark (struct xarray *xa, unsigned long index, xa_mark_t mark)h]j])}(hJvoid __xa_set_mark(struct xarray *xa, unsigned long index, xa_mark_t mark)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjhMubj)}(h __xa_set_markh]j)}(h __xa_set_markh]h __xa_set_mark}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMubj)}(h8(struct xarray *xa, unsigned long index, xa_mark_t mark)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxarrayh]hxarray}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jsbc.__xa_set_markasbuh1hhjubju)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxah]hxa}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long indexh](jc)}(hunsignedh]hunsigned}(hj>hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj:ubju)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj:ubjc)}(hlongh]hlong}(hjZhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj:ubju)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj:ubj)}(hindexh]hindex}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hxa_mark_t markh](h)}(hhh]j)}(h xa_mark_th]h xa_mark_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]jc.__xa_set_markasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hmarkh]hmark}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjhMubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhMhjhhubj()}(hhh]h)}(h)Set this mark on this entry while locked.h]h)Set this mark on this entry while locked.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjhhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xarray *xa`` XArray. ``unsigned long index`` Index of entry. ``xa_mark_t mark`` Mark number. **Description** Attempting to set a mark on a ``NULL`` entry does not succeed. **Context** Any context. Expects xa_lock to be held on entry.h](h)}(h**Parameters**h]jZ)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hj)h]hstruct xarray *xa}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj'ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj#ubj)}(hhh]h)}(hXArray.h]hXArray.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMhj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhj ubj)}(h(``unsigned long index`` Index of entry. h](j)}(h``unsigned long index``h]jG)}(hjbh]hunsigned long index}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj`ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj\ubj)}(hhh]h)}(hIndex of entry.h]hIndex of entry.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhMhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMhj ubj)}(h ``xa_mark_t mark`` Mark number. h](j)}(h``xa_mark_t mark``h]jG)}(hjh]hxa_mark_t mark}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(h Mark number.h]h Mark number.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h>Attempting to set a mark on a ``NULL`` entry does not succeed.h](hAttempting to set a mark on a }(hjhhhNhNubjG)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh entry does not succeed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h **Context**h]jZ)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h2Any context. Expects xa_lock to be held on entry.h]h2Any context. Expects xa_lock to be held on entry.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jM__xa_clear_mark (C function)c.__xa_clear_markhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hMvoid __xa_clear_mark (struct xarray *xa, unsigned long index, xa_mark_t mark)h]j])}(hLvoid __xa_clear_mark(struct xarray *xa, unsigned long index, xa_mark_t mark)h](jc)}(hvoidh]hvoid}(hjThhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjPhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM'ubju)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjPhhhjbhM'ubj)}(h__xa_clear_markh]j)}(h__xa_clear_markh]h__xa_clear_mark}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ](jjeh"]h$]h&]hhuh1jhjPhhhjbhM'ubj)}(h8(struct xarray *xa, unsigned long index, xa_mark_t mark)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxarrayh]hxarray}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jwsbc.__xa_clear_markasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxah]hxa}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long indexh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hindexh]hindex}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hxa_mark_t markh](h)}(hhh]j)}(h xa_mark_th]h xa_mark_t}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjYmodnameN classnameNj%j%)}j%]jc.__xa_clear_markasbuh1hhjPubju)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjPubj)}(hmarkh]hmark}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjPhhhjbhM'ubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjLhhhjbhM'ubah}(h]jGah ](jj eh"]h$]h&]j$j%)j&huh1jVhjbhM'hjIhhubj()}(hhh]h)}(h+Clear this mark on this entry while locked.h]h+Clear this mark on this entry while locked.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM'hjhhubah}(h]h ]h"]h$]h&]uh1j'hjIhhhjbhM'ubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(h**Parameters** ``struct xarray *xa`` XArray. ``unsigned long index`` Index of entry. ``xa_mark_t mark`` Mark number. **Context** Any context. Expects xa_lock to be held on entry.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM+hjubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hjh]hstruct xarray *xa}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM(hjubj)}(hhh]h)}(hXArray.h]hXArray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM(hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM(hjubj)}(h(``unsigned long index`` Index of entry. h](j)}(h``unsigned long index``h]jG)}(hj'h]hunsigned long index}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj%ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM)hj!ubj)}(hhh]h)}(hIndex of entry.h]hIndex of entry.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hM)hj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hM)hjubj)}(h ``xa_mark_t mark`` Mark number. h](j)}(h``xa_mark_t mark``h]jG)}(hj`h]hxa_mark_t mark}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj^ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM*hjZubj)}(hhh]h)}(h Mark number.h]h Mark number.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhM*hjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhM*hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Context**h]jZ)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM,hjubh)}(h2Any context. Expects xa_lock to be held on entry.h]h2Any context. Expects xa_lock to be held on entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM,hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_get_mark (C function) c.xa_get_markhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hIbool xa_get_mark (struct xarray *xa, unsigned long index, xa_mark_t mark)h]j])}(hHbool xa_get_mark(struct xarray *xa, unsigned long index, xa_mark_t mark)h](jc)}(hjh]hbool}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM9ubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjhM9ubj)}(h xa_get_markh]j)}(h xa_get_markh]h xa_get_mark}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhM9ubj)}(h8(struct xarray *xa, unsigned long index, xa_mark_t mark)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxarrayh]hxarray}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj<modnameN classnameNj%j%)}j%]j%)}j%jsb c.xa_get_markasbuh1hhjubju)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxah]hxa}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long indexh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hxa_mark_t markh](h)}(hhh]j)}(h xa_mark_th]h xa_mark_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]jV c.xa_get_markasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hmarkh]hmark}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhM9ubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjhM9ubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhM9hjhhubj()}(hhh]h)}(h/Inquire whether this mark is set on this entry.h]h/Inquire whether this mark is set on this entry.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM9hj5hhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjhM9ubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjPjKjPjLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xarray *xa`` XArray. ``unsigned long index`` Index of entry. ``xa_mark_t mark`` Mark number. **Description** This function uses the RCU read lock, so the result may be out of date by the time it returns. If you need the result to be stable, use a lock. **Context** Any context. Takes and releases the RCU lock. **Return** True if the entry at **index** has this mark set, false if it doesn't.h](h)}(h**Parameters**h]jZ)}(hjZh]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjXubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM=hjTubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hjyh]hstruct xarray *xa}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjwubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM:hjsubj)}(hhh]h)}(hXArray.h]hXArray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM:hjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhM:hjpubj)}(h(``unsigned long index`` Index of entry. h](j)}(h``unsigned long index``h]jG)}(hjh]hunsigned long index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM;hjubj)}(hhh]h)}(hIndex of entry.h]hIndex of entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM;hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM;hjpubj)}(h ``xa_mark_t mark`` Mark number. h](j)}(h``xa_mark_t mark``h]jG)}(hjh]hxa_mark_t mark}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM<hjubj)}(hhh]h)}(h Mark number.h]h Mark number.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM<hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM<hjpubeh}(h]h ]h"]h$]h&]uh1jhjTubh)}(h**Description**h]jZ)}(hj&h]h Description}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj$ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM>hjTubh)}(hThis function uses the RCU read lock, so the result may be out of date by the time it returns. If you need the result to be stable, use a lock.h]hThis function uses the RCU read lock, so the result may be out of date by the time it returns. If you need the result to be stable, use a lock.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM=hjTubh)}(h **Context**h]jZ)}(hjMh]hContext}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjKubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM@hjTubh)}(h.Any context. Takes and releases the RCU lock.h]h.Any context. Takes and releases the RCU lock.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMAhjTubh)}(h **Return**h]jZ)}(hjth]hReturn}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjrubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMChjTubh)}(hFTrue if the entry at **index** has this mark set, false if it doesn't.h](hTrue if the entry at }(hjhhhNhNubjZ)}(h **index**h]hindex}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubh* has this mark set, false if it doesn’t.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMBhjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_set_mark (C function) c.xa_set_markhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hIvoid xa_set_mark (struct xarray *xa, unsigned long index, xa_mark_t mark)h]j])}(hHvoid xa_set_mark(struct xarray *xa, unsigned long index, xa_mark_t mark)h](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMYubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjhhhjhMYubj)}(h xa_set_markh]j)}(h xa_set_markh]h xa_set_mark}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMYubj)}(h8(struct xarray *xa, unsigned long index, xa_mark_t mark)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxarrayh]hxarray}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj(modnameN classnameNj%j%)}j%]j%)}j%jsb c.xa_set_markasbuh1hhjubju)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxah]hxa}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long indexh](jc)}(hunsignedh]hunsigned}(hjzhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjvubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjvubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjvubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjvubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hxa_mark_t markh](h)}(hhh]j)}(h xa_mark_th]h xa_mark_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]jB c.xa_set_markasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hmarkh]hmark}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMYubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjhhhjhMYubah}(h]jah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhMYhjhhubj()}(hhh]h)}(hSet this mark on this entry.h]hSet this mark on this entry.}(hj$ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMYhj! hhubah}(h]h ]h"]h$]h&]uh1j'hjhhhjhMYubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJj< jKj< jLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xarray *xa`` XArray. ``unsigned long index`` Index of entry. ``xa_mark_t mark`` Mark number. **Description** Attempting to set a mark on a ``NULL`` entry does not succeed. **Context** Process context. Takes and releases the xa_lock.h](h)}(h**Parameters**h]jZ)}(hjF h]h Parameters}(hjH hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjD ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM]hj@ ubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hje h]hstruct xarray *xa}(hjg hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjc ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMZhj_ ubj)}(hhh]h)}(hXArray.h]hXArray.}(hj~ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjz hMZhj{ ubah}(h]h ]h"]h$]h&]uh1jhj_ ubeh}(h]h ]h"]h$]h&]uh1jhjz hMZhj\ ubj)}(h(``unsigned long index`` Index of entry. h](j)}(h``unsigned long index``h]jG)}(hj h]hunsigned long index}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM[hj ubj)}(hhh]h)}(hIndex of entry.h]hIndex of entry.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM[hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM[hj\ ubj)}(h ``xa_mark_t mark`` Mark number. h](j)}(h``xa_mark_t mark``h]jG)}(hj h]hxa_mark_t mark}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM\hj ubj)}(hhh]h)}(h Mark number.h]h Mark number.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM\hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hM\hj\ ubeh}(h]h ]h"]h$]h&]uh1jhj@ ubh)}(h**Description**h]jZ)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM^hj@ ubh)}(h>Attempting to set a mark on a ``NULL`` entry does not succeed.h](hAttempting to set a mark on a }(hj( hhhNhNubjG)}(h``NULL``h]hNULL}(hj0 hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj( ubh entry does not succeed.}(hj( hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM]hj@ ubh)}(h **Context**h]jZ)}(hjK h]hContext}(hjM hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjI ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM_hj@ ubh)}(h1Process context. Takes and releases the xa_lock.h]h1Process context. Takes and releases the xa_lock.}(hja hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM`hj@ ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_clear_mark (C function)c.xa_clear_markhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hKvoid xa_clear_mark (struct xarray *xa, unsigned long index, xa_mark_t mark)h]j])}(hJvoid xa_clear_mark(struct xarray *xa, unsigned long index, xa_mark_t mark)h](jc)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj hhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMkubju)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj hhhj hMkubj)}(h xa_clear_markh]j)}(h xa_clear_markh]h xa_clear_mark}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj hhhj hMkubj)}(h8(struct xarray *xa, unsigned long index, xa_mark_t mark)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj ubju)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj ubh)}(hhh]j)}(hxarrayh]hxarray}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj modnameN classnameNj%j%)}j%]j%)}j%j sbc.xa_clear_markasbuh1hhj ubju)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj ubj)}(hj*h]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hxah]hxa}(hj& hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj ubj)}(hunsigned long indexh](jc)}(hunsignedh]hunsigned}(hj? hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj; ubju)}(h h]h }(hjM hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj; ubjc)}(hlongh]hlong}(hj[ hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj; ubju)}(h h]h }(hji hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj; ubj)}(hindexh]hindex}(hjw hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj; ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj ubj)}(hxa_mark_t markh](h)}(hhh]j)}(h xa_mark_th]h xa_mark_t}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj modnameN classnameNj%j%)}j%]j c.xa_clear_markasbuh1hhj ubju)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj ubj)}(hmarkh]hmark}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj ubeh}(h]h ]h"]h$]h&]hhuh1jhj hhhj hMkubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj hhhj hMkubah}(h]j ah ](jj eh"]h$]h&]j$j%)j&huh1jVhj hMkhj hhubj()}(hhh]h)}(hClear this mark on this entry.h]hClear this mark on this entry.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMkhj hhubah}(h]h ]h"]h$]h&]uh1j'hj hhhj hMkubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJj jKj jLjMjNuh1jQhhhj/hNhNubjP)}(h**Parameters** ``struct xarray *xa`` XArray. ``unsigned long index`` Index of entry. ``xa_mark_t mark`` Mark number. **Description** Clearing a mark always succeeds. **Context** Process context. Takes and releases the xa_lock.h](h)}(h**Parameters**h]jZ)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMohj ubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hj* h]hstruct xarray *xa}(hj, hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj( ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMlhj$ ubj)}(hhh]h)}(hXArray.h]hXArray.}(hjC hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj? hMlhj@ ubah}(h]h ]h"]h$]h&]uh1jhj$ ubeh}(h]h ]h"]h$]h&]uh1jhj? hMlhj! ubj)}(h(``unsigned long index`` Index of entry. h](j)}(h``unsigned long index``h]jG)}(hjc h]hunsigned long index}(hje hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhja ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMmhj] ubj)}(hhh]h)}(hIndex of entry.h]hIndex of entry.}(hj| hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjx hMmhjy ubah}(h]h ]h"]h$]h&]uh1jhj] ubeh}(h]h ]h"]h$]h&]uh1jhjx hMmhj! ubj)}(h ``xa_mark_t mark`` Mark number. h](j)}(h``xa_mark_t mark``h]jG)}(hj h]hxa_mark_t mark}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMnhj ubj)}(hhh]h)}(h Mark number.h]h Mark number.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMnhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMnhj! ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]jZ)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMphj ubh)}(h Clearing a mark always succeeds.h]h Clearing a mark always succeeds.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMohj ubh)}(h **Context**h]jZ)}(hj h]hContext}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMqhj ubh)}(h1Process context. Takes and releases the xa_lock.h]h1Process context. Takes and releases the xa_lock.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMrhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_find (C function) c.xa_findhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h^void * xa_find (struct xarray *xa, unsigned long *indexp, unsigned long max, xa_mark_t filter)h]j])}(h\void *xa_find(struct xarray *xa, unsigned long *indexp, unsigned long max, xa_mark_t filter)h](jc)}(hvoidh]hvoid}(hjC hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj? hhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM}ubju)}(h h]h }(hjR hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj? hhhjQ hM}ubj)}(hj*h]h*}(hj` hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj? hhhjQ hM}ubj)}(hxa_findh]j)}(hxa_findh]hxa_find}(hjq hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj? hhhjQ hM}ubj)}(hO(struct xarray *xa, unsigned long *indexp, unsigned long max, xa_mark_t filter)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhj ubju)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj ubh)}(hhh]j)}(hxarrayh]hxarray}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj modnameN classnameNj%j%)}j%]j%)}j%js sb c.xa_findasbuh1hhj ubju)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj ubj)}(hj*h]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hxah]hxa}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj ubj)}(hunsigned long *indexph](jc)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj ubju)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj ubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj ubju)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj ubj)}(hj*h]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hindexph]hindexp}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj ubj)}(hunsigned long maxh](jc)}(hunsignedh]hunsigned}(hj]hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjYubju)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjYubjc)}(hlongh]hlong}(hjyhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjYubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjYubj)}(hmaxh]hmax}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj ubj)}(hxa_mark_t filterh](h)}(hhh]j)}(h xa_mark_th]h xa_mark_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j  c.xa_findasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hfilterh]hfilter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj ubeh}(h]h ]h"]h$]h&]hhuh1jhj? hhhjQ hM}ubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj; hhhjQ hM}ubah}(h]j6 ah ](jj eh"]h$]h&]j$j%)j&huh1jVhjQ hM}hj8 hhubj()}(hhh]h)}(hSearch the XArray for an entry.h]hSearch the XArray for an entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM}hjhhubah}(h]h ]h"]h$]h&]uh1j'hj8 hhhjQ hM}ubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xarray *xa`` XArray. ``unsigned long *indexp`` Pointer to an index. ``unsigned long max`` Maximum index to search to. ``xa_mark_t filter`` Selection criterion. **Description** Finds the entry in **xa** which matches the **filter**, and has the lowest index that is at least **indexp** and no more than **max**. If an entry is found, **indexp** is updated to be the index of the entry. This function is protected by the RCU read lock, so it may not find entries which are being simultaneously added. It will not return an ``XA_RETRY_ENTRY``; if you need to see retry entries, use xas_find(). **Context** Any context. Takes and releases the RCU lock. **Return** The entry, if found, otherwise ``NULL``.h](h)}(h**Parameters**h]jZ)}(hj)h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj'ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj#ubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hjHh]hstruct xarray *xa}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjFubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM~hjBubj)}(hhh]h)}(hXArray.h]hXArray.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hM~hj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hM~hj?ubj)}(h/``unsigned long *indexp`` Pointer to an index. h](j)}(h``unsigned long *indexp``h]jG)}(hjh]hunsigned long *indexp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj{ubj)}(hhh]h)}(hPointer to an index.h]hPointer to an index.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj?ubj)}(h2``unsigned long max`` Maximum index to search to. h](j)}(h``unsigned long max``h]jG)}(hjh]hunsigned long max}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(hMaximum index to search to.h]hMaximum index to search to.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj?ubj)}(h*``xa_mark_t filter`` Selection criterion. h](j)}(h``xa_mark_t filter``h]jG)}(hjh]hxa_mark_t filter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(hSelection criterion.h]hSelection criterion.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj?ubeh}(h]h ]h"]h$]h&]uh1jhj#ubh)}(h**Description**h]jZ)}(hj.h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj,ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj#ubh)}(hXFinds the entry in **xa** which matches the **filter**, and has the lowest index that is at least **indexp** and no more than **max**. If an entry is found, **indexp** is updated to be the index of the entry. This function is protected by the RCU read lock, so it may not find entries which are being simultaneously added. It will not return an ``XA_RETRY_ENTRY``; if you need to see retry entries, use xas_find().h](hFinds the entry in }(hjDhhhNhNubjZ)}(h**xa**h]hxa}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjDubh which matches the }(hjDhhhNhNubjZ)}(h **filter**h]hfilter}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjDubh,, and has the lowest index that is at least }(hjDhhhNhNubjZ)}(h **indexp**h]hindexp}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjDubh and no more than }(hjDhhhNhNubjZ)}(h**max**h]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjDubh. If an entry is found, }(hjDhhhNhNubjZ)}(h **indexp**h]hindexp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjDubh is updated to be the index of the entry. This function is protected by the RCU read lock, so it may not find entries which are being simultaneously added. It will not return an }(hjDhhhNhNubjG)}(h``XA_RETRY_ENTRY``h]hXA_RETRY_ENTRY}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjDubh3; if you need to see retry entries, use xas_find().}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj#ubh)}(h **Context**h]jZ)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj#ubh)}(h.Any context. Takes and releases the RCU lock.h]h.Any context. Takes and releases the RCU lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj#ubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj#ubh)}(h(The entry, if found, otherwise ``NULL``.h](hThe entry, if found, otherwise }(hjhhhNhNubjG)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_find_after (C function)c.xa_find_afterhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hdvoid * xa_find_after (struct xarray *xa, unsigned long *indexp, unsigned long max, xa_mark_t filter)h]j])}(hbvoid *xa_find_after(struct xarray *xa, unsigned long *indexp, unsigned long max, xa_mark_t filter)h](jc)}(hvoidh]hvoid}(hj?hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj;hhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubju)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj;hhhjMhMubj)}(hj*h]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhjMhMubj)}(h xa_find_afterh]j)}(h xa_find_afterh]h xa_find_after}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ](jjeh"]h$]h&]hhuh1jhj;hhhjMhMubj)}(hO(struct xarray *xa, unsigned long *indexp, unsigned long max, xa_mark_t filter)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxarrayh]hxarray}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%josbc.xa_find_afterasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxah]hxa}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long *indexph](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hindexph]hindexp}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long maxh](jc)}(hunsignedh]hunsigned}(hjYhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjUubju)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjUubjc)}(hlongh]hlong}(hjuhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjUubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjUubj)}(hmaxh]hmax}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hxa_mark_t filterh](h)}(hhh]j)}(h xa_mark_th]h xa_mark_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]jc.xa_find_afterasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hfilterh]hfilter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhj;hhhjMhMubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj7hhhjMhMubah}(h]j2ah ](jj eh"]h$]h&]j$j%)j&huh1jVhjMhMhj4hhubj()}(hhh]h)}(h&Search the XArray for a present entry.h]h&Search the XArray for a present entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjhhubah}(h]h ]h"]h$]h&]uh1j'hj4hhhjMhMubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xarray *xa`` XArray. ``unsigned long *indexp`` Pointer to an index. ``unsigned long max`` Maximum index to search to. ``xa_mark_t filter`` Selection criterion. **Description** Finds the entry in **xa** which matches the **filter** and has the lowest index that is above **indexp** and no more than **max**. If an entry is found, **indexp** is updated to be the index of the entry. This function is protected by the RCU read lock, so it may miss entries which are being simultaneously added. It will not return an ``XA_RETRY_ENTRY``; if you need to see retry entries, use xas_find(). **Context** Any context. Takes and releases the RCU lock. **Return** The pointer, if found, otherwise ``NULL``.h](h)}(h**Parameters**h]jZ)}(hj%h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj#ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hjDh]hstruct xarray *xa}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjBubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj>ubj)}(hhh]h)}(hXArray.h]hXArray.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhMhj;ubj)}(h/``unsigned long *indexp`` Pointer to an index. h](j)}(h``unsigned long *indexp``h]jG)}(hj}h]hunsigned long *indexp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj{ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjwubj)}(hhh]h)}(hPointer to an index.h]hPointer to an index.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhMhj;ubj)}(h2``unsigned long max`` Maximum index to search to. h](j)}(h``unsigned long max``h]jG)}(hjh]hunsigned long max}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(hMaximum index to search to.h]hMaximum index to search to.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj;ubj)}(h*``xa_mark_t filter`` Selection criterion. h](j)}(h``xa_mark_t filter``h]jG)}(hjh]hxa_mark_t filter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(hSelection criterion.h]hSelection criterion.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj;ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hj*h]h Description}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj(ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(hXFinds the entry in **xa** which matches the **filter** and has the lowest index that is above **indexp** and no more than **max**. If an entry is found, **indexp** is updated to be the index of the entry. This function is protected by the RCU read lock, so it may miss entries which are being simultaneously added. It will not return an ``XA_RETRY_ENTRY``; if you need to see retry entries, use xas_find().h](hFinds the entry in }(hj@hhhNhNubjZ)}(h**xa**h]hxa}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj@ubh which matches the }(hj@hhhNhNubjZ)}(h **filter**h]hfilter}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj@ubh( and has the lowest index that is above }(hj@hhhNhNubjZ)}(h **indexp**h]hindexp}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj@ubh and no more than }(hj@hhhNhNubjZ)}(h**max**h]hmax}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj@ubh. If an entry is found, }(hj@hhhNhNubjZ)}(h **indexp**h]hindexp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj@ubh is updated to be the index of the entry. This function is protected by the RCU read lock, so it may miss entries which are being simultaneously added. It will not return an }(hj@hhhNhNubjG)}(h``XA_RETRY_ENTRY``h]hXA_RETRY_ENTRY}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj@ubh3; if you need to see retry entries, use xas_find().}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h **Context**h]jZ)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h.Any context. Takes and releases the RCU lock.h]h.Any context. Takes and releases the RCU lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h **Return**h]jZ)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h*The pointer, if found, otherwise ``NULL``.h](h!The pointer, if found, otherwise }(hjhhhNhNubjG)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_extract (C function) c.xa_extracthNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hunsigned int xa_extract (struct xarray *xa, void **dst, unsigned long start, unsigned long max, unsigned int n, xa_mark_t filter)h]j])}(hunsigned int xa_extract(struct xarray *xa, void **dst, unsigned long start, unsigned long max, unsigned int n, xa_mark_t filter)h](jc)}(hunsignedh]hunsigned}(hj;hhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj7hhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM ubju)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj7hhhjIhM ubjc)}(hinth]hint}(hjXhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhj7hhhjIhM ubju)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj7hhhjIhM ubj)}(h xa_extracth]j)}(h xa_extracth]h xa_extract}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ](jjeh"]h$]h&]hhuh1jhj7hhhjIhM ubj)}(hi(struct xarray *xa, void **dst, unsigned long start, unsigned long max, unsigned int n, xa_mark_t filter)h](j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxarrayh]hxarray}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jzsb c.xa_extractasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxah]hxa}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(h void **dsth](jc)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj*h]h*}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hdsth]hdst}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long starth](jc)}(hunsignedh]hunsigned}(hjUhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjQubju)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjQubjc)}(hlongh]hlong}(hjqhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjQubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjQubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long maxh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubjc)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hmaxh]hmax}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned int nh](jc)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubjc)}(hinth]hint}(hjhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjubju)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hjh]hn}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hxa_mark_t filterh](h)}(hhh]j)}(h xa_mark_th]h xa_mark_t}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjLmodnameN classnameNj%j%)}j%]j c.xa_extractasbuh1hhjCubju)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjCubj)}(hfilterh]hfilter}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhj7hhhjIhM ubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhj3hhhjIhM ubah}(h]j.ah ](jj eh"]h$]h&]j$j%)j&huh1jVhjIhM hj0hhubj()}(hhh]h)}(h:Copy selected entries from the XArray into a normal array.h]h:Copy selected entries from the XArray into a normal array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjhhubah}(h]h ]h"]h$]h&]uh1j'hj0hhhjIhM ubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(hX**Parameters** ``struct xarray *xa`` The source XArray to copy from. ``void **dst`` The buffer to copy entries into. ``unsigned long start`` The first index in the XArray eligible to be selected. ``unsigned long max`` The last index in the XArray eligible to be selected. ``unsigned int n`` The maximum number of entries to copy. ``xa_mark_t filter`` Selection criterion. **Description** Copies up to **n** entries that match **filter** from the XArray. The copied entries will have indices between **start** and **max**, inclusive. The **filter** may be an XArray mark value, in which case entries which are marked with that mark will be copied. It may also be ``XA_PRESENT``, in which case all entries which are not ``NULL`` will be copied. The entries returned may not represent a snapshot of the XArray at a moment in time. For example, if another thread stores to index 5, then index 10, calling xa_extract() may return the old contents of index 5 and the new contents of index 10. Indices not modified while this function is running will not be skipped. If you need stronger guarantees, holding the xa_lock across calls to this function will prevent concurrent modification. **Context** Any context. Takes and releases the RCU lock. **Return** The number of entries copied.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubj)}(hhh](j)}(h6``struct xarray *xa`` The source XArray to copy from. h](j)}(h``struct xarray *xa``h]jG)}(hjh]hstruct xarray *xa}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubj)}(hhh]h)}(hThe source XArray to copy from.h]hThe source XArray to copy from.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h0``void **dst`` The buffer to copy entries into. h](j)}(h``void **dst``h]jG)}(hjh]h void **dst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubj)}(hhh]h)}(h The buffer to copy entries into.h]h The buffer to copy entries into.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hM hj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hM hjubj)}(hO``unsigned long start`` The first index in the XArray eligible to be selected. h](j)}(h``unsigned long start``h]jG)}(hjSh]hunsigned long start}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjQubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjMubj)}(hhh]h)}(h6The first index in the XArray eligible to be selected.h]h6The first index in the XArray eligible to be selected.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhM hjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhM hjubj)}(hL``unsigned long max`` The last index in the XArray eligible to be selected. h](j)}(h``unsigned long max``h]jG)}(hjh]hunsigned long max}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubj)}(hhh]h)}(h5The last index in the XArray eligible to be selected.h]h5The last index in the XArray eligible to be selected.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h:``unsigned int n`` The maximum number of entries to copy. h](j)}(h``unsigned int n``h]jG)}(hjh]hunsigned int n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubj)}(hhh]h)}(h&The maximum number of entries to copy.h]h&The maximum number of entries to copy.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h*``xa_mark_t filter`` Selection criterion. h](j)}(h``xa_mark_t filter``h]jG)}(hjh]hxa_mark_t filter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubj)}(hhh]h)}(hSelection criterion.h]hSelection criterion.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jZ)}(hj9h]h Description}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj7ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubh)}(hCopies up to **n** entries that match **filter** from the XArray. The copied entries will have indices between **start** and **max**, inclusive.h](h Copies up to }(hjOhhhNhNubjZ)}(h**n**h]hn}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjOubh entries that match }(hjOhhhNhNubjZ)}(h **filter**h]hfilter}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjOubh@ from the XArray. The copied entries will have indices between }(hjOhhhNhNubjZ)}(h **start**h]hstart}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjOubh and }(hjOhhhNhNubjZ)}(h**max**h]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjOubh , inclusive.}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubh)}(hThe **filter** may be an XArray mark value, in which case entries which are marked with that mark will be copied. It may also be ``XA_PRESENT``, in which case all entries which are not ``NULL`` will be copied.h](hThe }(hjhhhNhNubjZ)}(h **filter**h]hfilter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubht may be an XArray mark value, in which case entries which are marked with that mark will be copied. It may also be }(hjhhhNhNubjG)}(h``XA_PRESENT``h]h XA_PRESENT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh*, in which case all entries which are not }(hjhhhNhNubjG)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubh will be copied.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubh)}(hX>The entries returned may not represent a snapshot of the XArray at a moment in time. For example, if another thread stores to index 5, then index 10, calling xa_extract() may return the old contents of index 5 and the new contents of index 10. Indices not modified while this function is running will not be skipped.h]hX>The entries returned may not represent a snapshot of the XArray at a moment in time. For example, if another thread stores to index 5, then index 10, calling xa_extract() may return the old contents of index 5 and the new contents of index 10. Indices not modified while this function is running will not be skipped.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubh)}(hxIf you need stronger guarantees, holding the xa_lock across calls to this function will prevent concurrent modification.h]hxIf you need stronger guarantees, holding the xa_lock across calls to this function will prevent concurrent modification.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubh)}(h **Context**h]jZ)}(hj h]hContext}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubh)}(h.Any context. Takes and releases the RCU lock.h]h.Any context. Takes and releases the RCU lock.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubh)}(h **Return**h]jZ)}(hj2h]hReturn}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj0ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubh)}(hThe number of entries copied.h]hThe number of entries copied.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_delete_node (C function)c.xa_delete_nodehNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(hCvoid xa_delete_node (struct xa_node *node, xa_update_node_t update)h]j])}(hBvoid xa_delete_node(struct xa_node *node, xa_update_node_t update)h](jc)}(hvoidh]hvoid}(hjwhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjshhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM/ ubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjshhhjhM/ ubj)}(hxa_delete_nodeh]j)}(hxa_delete_nodeh]hxa_delete_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjshhhjhM/ ubj)}(h/(struct xa_node *node, xa_update_node_t update)h](j)}(hstruct xa_node *nodeh](jy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxa_nodeh]hxa_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jsbc.xa_delete_nodeasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hnodeh]hnode}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hxa_update_node_t updateh](h)}(hhh]j)}(hxa_update_node_th]hxa_update_node_t}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetj+modnameN classnameNj%j%)}j%]jc.xa_delete_nodeasbuh1hhj"ubju)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj"ubj)}(hupdateh]hupdate}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjshhhjhM/ ubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjohhhjhM/ ubah}(h]jjah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhM/ hjlhhubj()}(hhh]h)}(h&Private interface for workingset code.h]h&Private interface for workingset code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM/ hj|hhubah}(h]h ]h"]h$]h&]uh1j'hjlhhhjhM/ ubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjjKjjLjMjNuh1jQhhhj/hNhNubjP)}(h**Parameters** ``struct xa_node *node`` Node to be removed from the tree. ``xa_update_node_t update`` Function to call to update ancestor nodes. **Context** xa_lock must be held on entry and will not be released.h](h)}(h**Parameters**h]jZ)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM3 hjubj)}(hhh](j)}(h;``struct xa_node *node`` Node to be removed from the tree. h](j)}(h``struct xa_node *node``h]jG)}(hjh]hstruct xa_node *node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM0 hjubj)}(hhh]h)}(h!Node to be removed from the tree.h]h!Node to be removed from the tree.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM0 hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM0 hjubj)}(hG``xa_update_node_t update`` Function to call to update ancestor nodes. h](j)}(h``xa_update_node_t update``h]jG)}(hjh]hxa_update_node_t update}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM1 hjubj)}(hhh]h)}(h*Function to call to update ancestor nodes.h]h*Function to call to update ancestor nodes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM1 hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM1 hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Context**h]jZ)}(hj4h]hContext}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhj2ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM3 hjubh)}(h7xa_lock must be held on entry and will not be released.h]h7xa_lock must be held on entry and will not be released.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM3 hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubjA)}(hhh]h}(h]h ]h"]h$]h&]entries](jMxa_destroy (C function) c.xa_destroyhNtauh1j@hj/hhhNhNubjR)}(hhh](jW)}(h#void xa_destroy (struct xarray *xa)h]j])}(h"void xa_destroy(struct xarray *xa)h](jc)}(hvoidh]hvoid}(hjyhhhNhNubah}(h]h ]joah"]h$]h&]uh1jbhjuhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMF ubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjuhhhjhMF ubj)}(h xa_destroyh]j)}(h xa_destroyh]h xa_destroy}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjuhhhjhMF ubj)}(h(struct xarray *xa)h]j)}(hstruct xarray *xah](jy)}(hj h]hstruct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jxhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubh)}(hhh]j)}(hxarrayh]hxarray}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainjDreftypej% reftargetjmodnameN classnameNj%j%)}j%]j%)}j%jsb c.xa_destroyasbuh1hhjubju)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubj)}(hj*h]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hxah]hxa}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjuhhhjhMF ubeh}(h]h ]h"]h$]h&]hhjuh1j\jjhjqhhhjhMF ubah}(h]jlah ](jj eh"]h$]h&]j$j%)j&huh1jVhjhMF hjnhhubj()}(hhh]h)}(h"Free all internal data structures.h]h"Free all internal data structures.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMF hj6hhubah}(h]h ]h"]h$]h&]uh1j'hjnhhhjhMF ubeh}(h]h ](jDfunctioneh"]h$]h&]jIjDjJjQjKjQjLjMjNuh1jQhhhj/hNhNubjP)}(hXJ**Parameters** ``struct xarray *xa`` XArray. **Description** After calling this function, the XArray is empty and has freed all memory allocated for its internal data structures. You are responsible for freeing the objects referenced by the XArray. **Context** Any context. Takes and releases the xa_lock, interrupt-safe.h](h)}(h**Parameters**h]jZ)}(hj[h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjYubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMJ hjUubj)}(hhh]j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]jG)}(hjzh]hstruct xarray *xa}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjxubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMG hjtubj)}(hhh]h)}(hXArray.h]hXArray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMG hjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhMG hjqubah}(h]h ]h"]h$]h&]uh1jhjUubh)}(h**Description**h]jZ)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMI hjUubh)}(hAfter calling this function, the XArray is empty and has freed all memory allocated for its internal data structures. You are responsible for freeing the objects referenced by the XArray.h]hAfter calling this function, the XArray is empty and has freed all memory allocated for its internal data structures. You are responsible for freeing the objects referenced by the XArray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMH hjUubh)}(h **Context**h]jZ)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jYhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chML hjUubh)}(h=Any context. Takes and releases the xa_lock, interrupt-safe.h]h=Any context. Takes and releases the xa_lock, interrupt-safe.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMM hjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jOhj/hhhNhNubeh}(h]functions-and-structuresah ]h"]functions and structuresah$]h&]uh1hhhhhhhhMubeh}(h]xarrayah ]h"]xarrayah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksj footnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerj:error_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourcehnj _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(jjjjj j jjjvjsjjj j j,j)j j jk jh j$j!j j u nametypes}(jjj jjvjj j,j jk j$j uh}(jhjjj jjjjsjjjyj jj)j j j| jh j j!jn j j/jOjXjjjjjXj]jjj9j>jjjjj[j`jjjdjij j j!j!j"j"j#j$j%j %j7'j<'j(j(j*j*j-j-j/j/j 2j2j;4j@4j6j6j:j:jz=j=j@j @jBjBjFjFjJjJjNjNj RjRjqUjvUjXjXjZ]j_]jajaj^fjcfjkjkjpjpjujuj"yj'yj{j|j~j~jjjljqjjj^jcjjj1j6jjjjjjj,j1jՐjڐj~jj8j=jjjjjjjjj jj jj\jaj.j3jΧjӧjjj2j7jPjUjnjsjjjjj&j+j˷jзjj$jMjRj|jjjjhjmjjjjjjjjj7j<jjj)j.j;j@jjj(j-jjj&j+jjj:j?jjj+j0jjjjj`jejjjGjLjjjjj j j6 j; j2j7j.j3jjjojljqu footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages] transformerN include_log] decorationNhhub.