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]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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhK 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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hj hhubh)}(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}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj*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&]uh1hhhhKhj hhubh)}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj hhubh)}(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 }(hjZhhhNhNubj3)}(h ``LONG_MAX``h]hLONG_MAX}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjZubh 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().}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK"hj hhubh)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK(hj hhubh)}(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&]uh1hhhhK0hj hhubh)}(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 }(hjhhhNhNubj3)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh<) any entry will cause the XArray to forget about the range.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK3hj hhubeh}(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 }(hjhhhNhNubj3)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh 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 }(hjhhhNhNubj3)}(h``NULL``h]hNULL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubhK stored to it is also equivalent except if the XArray was initialized with }(hjhhhNhNubj3)}(h``XA_FLAGS_ALLOC``h]hXA_FLAGS_ALLOC}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh.}(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.}(hj3hhhNhNubah}(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 }(hjAhhhNhNubj3)}(h``NULL``h]hNULL}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjAubh(, you can use xa_insert() which returns }(hjAhhhNhNubj3)}(h ``-EBUSY``h]h-EBUSY}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjAubh if the entry is not empty.}(hjAhhhNhNubeh}(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.}(hjshhhNhNubah}(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 }(hjhhhNhNubj3)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh. 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 }(hjhhhNhNubj3)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubhM, 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 }(hjhhhNhNubj3)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh&, the xa_empty() function will return }(hjhhhNhNubj3)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh.}(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.}(hjhhhNhNubah}(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 }(hj hhhNhNubj3)}(h``NULL``h]hNULL}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj ubhX+, 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.}(hj hhhNhNubeh}(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.}(hj@hhhNhNubah}(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 }(hjNhhhNhNubj3)}(h ``XA_MARK_1``h]h XA_MARK_1}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjNubh and }(hjNhhhNhNubj3)}(h ``XA_MARK_2``h]h XA_MARK_2}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjNubh- set, or iterate over all entries which have }(hjNhhhNhNubj3)}(h ``XA_MARK_0``h]h XA_MARK_0}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjNubh or }(hjNhhhNhNubj3)}(h ``XA_MARK_2``h]h XA_MARK_2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjNubh; set). It would be possible to add these if a user arises.}(hjNhhhNhNubeh}(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 }(hjhhhNhNubj3)}(h``XA_FLAGS_ALLOC``h]hXA_FLAGS_ALLOC}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubhS 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 }(hjhhhNhNubj3)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh 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 }(hjhhhNhNubj3)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh).}(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 }(hjhhhNhNubj3)}(h``XA_FLAGS_ALLOC1``h]hXA_FLAGS_ALLOC1}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh{. 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().}(hjhhhNhNubeh}(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 }(hj=hhhNhNubj3)}(h ``XA_MARK_0``h]h XA_MARK_0}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj=ubh 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.}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]allocating-xarraysah ]h"]allocating xarraysah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hMemory allocationh]hMemory allocation}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehhhhhKubh)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjehhubh)}(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&]uh1hhhhKhjehhubeh}(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&]uh1hhhhKhjubah}(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&]uh1jhhhKhj#ubj)}(hhh]j)}(hhh](j)}(h xa_load()h]h)}(hj=h]h xa_load()}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj;ubah}(h]h ]h"]h$]h&]uh1jhj8ubj)}(h xa_for_each()h]h)}(hjTh]h xa_for_each()}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjRubah}(h]h ]h"]h$]h&]uh1jhj8ubj)}(hxa_for_each_start()h]h)}(hjkh]hxa_for_each_start()}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjiubah}(h]h ]h"]h$]h&]uh1jhj8ubj)}(hxa_for_each_range()h]h)}(hjh]hxa_for_each_range()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj8ubj)}(h xa_find()h]h)}(hjh]h xa_find()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj8ubj)}(hxa_find_after()h]h)}(hjh]hxa_find_after()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj8ubj)}(h xa_extract()h]h)}(hjh]h xa_extract()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhj8ubj)}(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&]uh1jhj8ubeh}(h]h ]h"]h$]h&]jjuh1jhhhKhj5ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(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:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hhh]j)}(hhh](j)}(h xa_store()h]h)}(hj h]h xa_store()}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h xa_store_bh()h]h)}(hj7h]h xa_store_bh()}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj5ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hxa_store_irq()h]h)}(hjNh]hxa_store_irq()}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjLubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h xa_insert()h]h)}(hjeh]h xa_insert()}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjcubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hxa_insert_bh()h]h)}(hj|h]hxa_insert_bh()}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjzubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hxa_insert_irq()h]h)}(hjh]hxa_insert_irq()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h xa_erase()h]h)}(hjh]h xa_erase()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h xa_erase_bh()h]h)}(hjh]h xa_erase_bh()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hxa_erase_irq()h]h)}(hjh]hxa_erase_irq()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h xa_cmpxchg()h]h)}(hjh]h xa_cmpxchg()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hxa_cmpxchg_bh()h]h)}(hjh]hxa_cmpxchg_bh()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hxa_cmpxchg_irq()h]h)}(hjh]hxa_cmpxchg_irq()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hxa_store_range()h]h)}(hj4h]hxa_store_range()}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj2ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h xa_alloc()h]h)}(hjKh]h xa_alloc()}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjIubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h xa_alloc_bh()h]h)}(hjbh]h xa_alloc_bh()}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj`ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hxa_alloc_irq()h]h)}(hjyh]hxa_alloc_irq()}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjwubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h xa_reserve()h]h)}(hjh]h xa_reserve()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hxa_reserve_bh()h]h)}(hjh]hxa_reserve_bh()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hxa_reserve_irq()h]h)}(hjh]hxa_reserve_irq()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h xa_destroy()h]h)}(hjh]h xa_destroy()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h xa_set_mark()h]h)}(hjh]h xa_set_mark()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hxa_clear_mark() h]h)}(hxa_clear_mark()h]hxa_clear_mark()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhhhKhjubah}(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:}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj+ubj)}(hhh]j)}(hhh](j)}(h __xa_store()h]h)}(hjEh]h __xa_store()}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjCubah}(h]h ]h"]h$]h&]uh1jhj@ubj)}(h __xa_insert()h]h)}(hj\h]h __xa_insert()}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjZubah}(h]h ]h"]h$]h&]uh1jhj@ubj)}(h __xa_erase()h]h)}(hjsh]h __xa_erase()}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjqubah}(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)}(h __xa_alloc()h]h)}(hjh]h __xa_alloc()}(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)}(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&]uh1jhj@ubeh}(h]h ]h"]h$]h&]jjuh1jhhhKhj=ubah}(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.}(hjhhhNhNubah}(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 }(hj7 hhhNhNubj3)}(h``XA_FLAGS_LOCK_IRQ``h]hXA_FLAGS_LOCK_IRQ}(hj? hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj7 ubh or }(hj7 hhhNhNubj3)}(h``XA_FLAGS_LOCK_BH``h]hXA_FLAGS_LOCK_BH}(hjQ hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj7 ubh.}(hj7 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.}(hji 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().}(hjw 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&]uh1j< 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 hhhNhNubj3)}(h ``ENOMEM``h]hENOMEM}(hjP hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj ubh5), then it will free the memory previously allocated.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMShj hhubh)}(hhh](h)}(hInternal Entriesh]hInternal Entries}(hjk hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjh 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 }(hjy hhhNhNubj3)}(h``true``h]htrue}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjy ubh.}(hjy hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMbhjh 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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMnhj ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh]h)}(h xa_is_node()h]h xa_is_node()}(hj7 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMohj4 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.}(hjN hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMphjK ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]uh1j hj ubj )}(hhh](j )}(hhh]h)}(hSiblingh]hSibling}(hjn hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMrhjk ubah}(h]h ]h"]h$]h&]uh1j hjh 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 hjh 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 hjh 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()}(hj! hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj 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 }(hj8 hhhNhNubj3)}(h``NULL``h]hNULL}(hj@ hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj8 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 }(hj8 hhhNhNubj3)}(h``NULL``h]hNULL}(hjR hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj8 ubh.}(hj8 hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj5 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 hjh 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&]uh1hhhhMhjh 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 hhhNhNubj3)}(h``XA_FLAGS_TRACK_FREE``h]hXA_FLAGS_TRACK_FREE}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj 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 hhhNhNubj3)}(h``XA_CHECK_SCHED``h]hXA_CHECK_SCHED}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj 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.}(hj6 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.}(hjD 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}(hj] hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZ 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.}(hjk hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjZ 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 }(hjy hhhNhNubj3)}(h``NULL``h]hNULL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjy ubh even when there is an entry stored within the range. Calling xas_find_conflict() will return the first entry within the range or }(hjy hhhNhNubj3)}(h``NULL``h]hNULL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjy 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.}(hjy hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhjZ 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&]uh1hhhhMhjZ 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&]uh1hhhhMhjZ 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 hhhNhNubj3)}(h``NULL``h]hNULL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj ubhL into any index of a multi-index entry will set the entry at every index to }(hj hhhNhNubj3)}(h``NULL``h]hNULL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj 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 hhhNhNubj3)}(h``XA_CHUNK_SHIFT``h]hXA_CHUNK_SHIFT}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj 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&]uh1hhhhMhjZ 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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singlexa_mk_value (C function) c.xa_mk_valuehNtauh1j,hjhhhNhNubhdesc)}(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}(hjPhhhNhNubah}(h]h ]ktah"]h$]h&]uh1jNhjJhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhK4ubhdesc_sig_space)}(h h]h }(hjbhhhNhNubah}(h]h ]wah"]h$]h&]uh1j`hjJhhhj_hK4ubhdesc_sig_punctuation)}(hjh]h*}(hjshhhNhNubah}(h]h ]pah"]h$]h&]uh1jqhjJhhhj_hK4ubh 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&]hhuh1jhjJhhhj_hK4ubhdesc_parameterlist)}(h(unsigned long v)h]hdesc_parameter)}(hunsigned long vh](jO)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjO)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubj)}(hvh]hv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjJhhhj_hK4ubeh}(h]h ]h"]h$]h&]hh add_permalinkuh1jHsphinx_line_type declaratorhjDhhhj_hK4ubah}(h]j;ah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1jBhj_hK4hj?hhubh desc_content)}(hhh]h)}(h'Create an XArray entry from an integer.h]h'Create an XArray entry from an integer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhK4hjhhubah}(h]h ]h"]h$]h&]uh1jhj?hhhj_hK4ubeh}(h]h ](cfunctioneh"]h$]h&]domainj0objtypej1desctypej1noindex noindexentrynocontentsentryuh1j=hhhjhNhNubh 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)}(hjCh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjAubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhK8hj=ubj)}(hhh]j)}(h.``unsigned long v`` Value to store in XArray. h](j)}(h``unsigned long v``h]j3)}(hjdh]hunsigned long v}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjbubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhK5hj^ubj)}(hhh]h)}(hValue to store in XArray.h]hValue to store in XArray.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhK5hjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhK5hj[ubah}(h]h ]h"]h$]h&]uh1jhj=ubh)}(h **Context**h]jF)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhK7hj=ubh)}(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.hhK7hj=ubh)}(h **Return**h]jF)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhK9hj=ubh)}(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.hhK8hj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_to_value (C function) c.xa_to_valuehNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h-unsigned long xa_to_value (const void *entry)h]jI)}(h,unsigned long xa_to_value(const void *entry)h](jO)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKAubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhKAubjO)}(hlongh]hlong}(hj(hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhjhKAubja)}(h h]h }(hj6hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhKAubj)}(h xa_to_valueh]j)}(h xa_to_valueh]h xa_to_value}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhKAubj)}(h(const void *entry)h]j)}(hconst void *entryh](hdesc_sig_keyword)}(hconsth]hconst}(hjfhhhNhNubah}(h]h ]kah"]h$]h&]uh1jdhj`ubja)}(h h]h }(hjuhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj`ubjO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj`ubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj`ubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj`ubj)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj\ubah}(h]h ]h"]h$]h&]hhuh1jhjhhhjhKAubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhjhKAubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjhKAhjhhubj)}(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&]uh1jhjhhhjhKAubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(h**Parameters** ``const void *entry`` XArray entry. **Context** Any context. **Return** The value stored in the XArray entry.h](h)}(h**Parameters**h]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hjh]hconst void *entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKBhjubj)}(hhh]h)}(h XArray entry.h]h XArray entry.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hKBhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hKBhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Context**h]jF)}(hjRh]hContext}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjPubah}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKDhjubh)}(h **Return**h]jF)}(hjyh]hReturn}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjwubah}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_is_value (C function) c.xa_is_valuehNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h$bool xa_is_value (const void *entry)h]jI)}(h#bool xa_is_value(const void *entry)h](jO)}(hboolh]hbool}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKMubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhKMubj)}(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](je)}(hjhh]hconst}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hj$hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hj2hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hentryh]hentry}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjhhhjhKMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhjhKMubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjhKMhjhhubj)}(hhh]h)}(h!Determine if an entry is a value.h]h!Determine if an entry is a value.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKMhjfhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hjh]hconst void *entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]jF)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]jF)}(hj h]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj ubah}(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.}(hj"hhhNhNubah}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_tag_pointer (C function)c.xa_tag_pointerhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h2void * xa_tag_pointer (void *p, unsigned long tag)h]jI)}(h0void *xa_tag_pointer(void *p, unsigned long tag)h](jO)}(hvoidh]hvoid}(hjQhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjMhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKYubja)}(h h]h }(hj`hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjMhhhj_hKYubjr)}(hjh]h*}(hjnhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjMhhhj_hKYubj)}(hxa_tag_pointerh]j)}(hxa_tag_pointerh]hxa_tag_pointer}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ](jjeh"]h$]h&]hhuh1jhjMhhhj_hKYubj)}(h(void *p, unsigned long tag)h](j)}(hvoid *ph](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hj}h]hp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long tagh](jO)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjO)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubj)}(htagh]htag}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjMhhhj_hKYubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjIhhhj_hKYubah}(h]jDah ](j j eh"]h$]h&]jj)jhuh1jBhj_hKYhjFhhubj)}(hhh]h)}(h,Create an XArray entry for a tagged pointer.h]h,Create an XArray entry for a tagged pointer.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKYhj;hhubah}(h]h ]h"]h$]h&]uh1jhjFhhhj_hKYubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jVj7jVj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hj`h]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj^ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhK]hjZubj)}(hhh](j)}(h``void *p`` Plain pointer. h](j)}(h ``void *p``h]j3)}(hjh]hvoid *p}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj}ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKZhjyubj)}(hhh]h)}(hPlain pointer.h]hPlain pointer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKZhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhKZhjvubj)}(h-``unsigned long tag`` Tag value (0, 1 or 3). h](j)}(h``unsigned long tag``h]j3)}(hjh]hunsigned long tag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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[hjvubeh}(h]h ]h"]h$]h&]uh1jhjZubh)}(h**Description**h]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhK]hjZubh)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhK]hjZubh)}(h **Context**h]jF)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKbhjZubh)}(h Any context.h]h Any context.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKbhjZubh)}(h **Return**h]jF)}(hjAh]hReturn}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj?ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKdhjZubh)}(hAn XArray entry.h]hAn XArray entry.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKchjZubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_untag_pointer (C function)c.xa_untag_pointerhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h%void * xa_untag_pointer (void *entry)h]jI)}(h#void *xa_untag_pointer(void *entry)h](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKkubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhKkubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjhhhjhKkubj)}(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](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjhhhjhKkubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhj~hhhjhKkubah}(h]jyah ](j j eh"]h$]h&]jj)jhuh1jBhjhKkhj{hhubj)}(hhh]h)}(h*Turn an XArray entry into a plain pointer.h]h*Turn an XArray entry into a plain pointer.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKkhj hhubah}(h]h ]h"]h$]h&]uh1jhj{hhhjhKkubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6j;j7j;j8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjEh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjCubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKohj?ubj)}(hhh]j)}(h``void *entry`` XArray entry. h](j)}(h``void *entry``h]j3)}(hjdh]h void *entry}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjbubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKlhj^ubj)}(hhh]h)}(h XArray entry.h]h XArray entry.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhKlhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhKlhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubh)}(h**Description**h]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKnhj?ubh)}(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.hhKnhj?ubh)}(h **Context**h]jF)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKqhj?ubh)}(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.hhKqhj?ubh)}(h **Return**h]jF)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKshj?ubh)}(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.hhKrhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_pointer_tag (C function)c.xa_pointer_taghNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h)unsigned int xa_pointer_tag (void *entry)h]jI)}(h(unsigned int xa_pointer_tag(void *entry)h](jO)}(hunsignedh]hunsigned}(hj2hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj.hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKzubja)}(h h]h }(hjAhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj.hhhj@hKzubjO)}(hinth]hint}(hjOhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj.hhhj@hKzubja)}(h h]h }(hj]hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj.hhhj@hKzubj)}(hxa_pointer_tagh]j)}(hxa_pointer_tagh]hxa_pointer_tag}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ](jjeh"]h$]h&]hhuh1jhj.hhhj@hKzubj)}(h (void *entry)h]j)}(h void *entryh](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhj.hhhj@hKzubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhj*hhhj@hKzubah}(h]j%ah ](j j eh"]h$]h&]jj)jhuh1jBhj@hKzhj'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&]uh1jhj'hhhj@hKzubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hjh]h void *entry}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhK{hjubj)}(hhh]h)}(h XArray entry.h]h XArray entry.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hK{hj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hK{hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jF)}(hjZh]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjXubah}(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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhK}hjubh)}(h **Context**h]jF)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]jF)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_is_zero (C function) c.xa_is_zerohNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h#bool xa_is_zero (const void *entry)h]jI)}(h"bool xa_is_zero(const void *entry)h](jO)}(hjh]hbool}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhKubj)}(h xa_is_zeroh]j)}(h xa_is_zeroh]h xa_is_zero}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhKubj)}(h(const void *entry)h]j)}(hconst void *entryh](je)}(hjhh]hconst}(hj)hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhj%ubja)}(h h]h }(hj6hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj%ubjO)}(hvoidh]hvoid}(hjDhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj%ubja)}(h h]h }(hjRhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj%ubjr)}(hjh]h*}(hj`hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj%ubj)}(hentryh]hentry}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj!ubah}(h]h ]h"]h$]h&]hhuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhjhKubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjhKhjhhubj)}(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&]uh1jhjhhhjhKubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hjh]hconst void *entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]jF)}(hj:h]hReturn}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj8ubah}(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](j3)}(h``true``h]htrue}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjPubh if the entry is a zero entry.}(hjPhhhNhNubeh}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_is_err (C function) c.xa_is_errhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h"bool xa_is_err (const void *entry)h]jI)}(h!bool xa_is_err(const void *entry)h](jO)}(hjh]hbool}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhKubj)}(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](je)}(hjhh]hconst}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(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&]hhjuh1jHjjhjhhhjhKubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjhKhjhhubj)}(hhh]h)}(h4Report whether an XArray operation returned an errorh]h4Report whether an XArray operation returned an error}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhj4hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jOj7jOj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjYh]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjWubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjSubj)}(hhh]j)}(h=``const void *entry`` Result from calling an XArray function h](j)}(h``const void *entry``h]j3)}(hjxh]hconst void *entry}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjvubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjrubj)}(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&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhKhjoubah}(h]h ]h"]h$]h&]uh1jhjSubh)}(h**Description**h]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjSubh)}(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.hhKhjSubh)}(h **Context**h]jF)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjSubh)}(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.hhKhjSubh)}(h **Return**h]jF)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjSubh)}(h)``true`` if the entry indicates an error.h](j3)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh! if the entry indicates an error.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_err (C function)c.xa_errhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hint xa_err (void *entry)h]jI)}(hint xa_err(void *entry)h](jO)}(hinth]hint}(hjThhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjPhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKubja)}(h h]h }(hjchhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjPhhhjbhKubj)}(hxa_errh]j)}(hxa_errh]hxa_err}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ](jjeh"]h$]h&]hhuh1jhjPhhhjbhKubj)}(h (void *entry)h]j)}(h void *entryh](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjPhhhjbhKubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjLhhhjbhKubah}(h]jGah ](j j eh"]h$]h&]jj)jhuh1jBhjbhKhjIhhubj)}(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&]uh1jhjIhhhjbhKubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hj%h]h void *entry}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj#ubah}(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 function.h]h'Result from calling an XArray function.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hKhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hKhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jF)}(hj`h]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj^ubah}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjubh)}(h **Context**h]jF)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]jF)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_limit (C struct) c.xa_limithNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hxa_limith]jI)}(hstruct xa_limith](je)}(hstructh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhKubj)}(hxa_limith]j)}(hjh]hxa_limit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhjhKubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjhKhjhhubj)}(hhh]h)}(hRepresents a range of IDs.h]hRepresents a range of IDs.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhj3hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](j0structeh"]h$]h&]j5j0j6jNj7jNj8j9j:uh1j=hhhjhNhNubj<)}(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](jF)}(h**Definition**h]h Definition}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjVubh:}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjRubj( )}(h.struct xa_limit { u32 max; u32 min; };h]h.struct xa_limit { u32 max; u32 min; };}hjssbah}(h]h ]h"]h$]h&]hhuh1j' hW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjRubh)}(h **Members**h]jF)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjRubj)}(hhh](j)}(h0``max`` The maximum ID to allocate (inclusive). h](j)}(h``max``h]j3)}(hjh]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]j3)}(hjh]hmin}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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).}(hjhhhNhNubah}(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&]uh1jhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubh)}(h**Description**h]jF)}(hjh]h Description}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjhhubh)}(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]}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKhjhhubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xarray (C struct)c.xarrayhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hxarrayh]jI)}(h struct xarrayh](je)}(hjh]hstruct}(hj]hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjYhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhKubja)}(h h]h }(hjkhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjYhhhjjhKubj)}(hxarrayh]j)}(hjWh]hxarray}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ](jjeh"]h$]h&]hhuh1jhjYhhhjjhKubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjUhhhjjhKubah}(h]jPah ](j j eh"]h$]h&]jj)jhuh1jBhjjhKhjRhhubj)}(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&]uh1jhjRhhhjjhKubeh}(h]h ](j0structeh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(h**Definition**:: struct xarray { spinlock_t xa_lock; }; **Members** ``xa_lock`` Lock that protects the contents of the XArray.h](h)}(h**Definition**::h](jF)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh:}(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]jF)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hj h]hxa_lock}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj 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.}(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&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj! hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubh)}(h**Description**h]jF)}(hjO h]h Description}(hjQ hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjM ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM"hjhhubh)}(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.}(hje hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM hjhhubh)}(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.}(hjt hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM$hjhhubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9DEFINE_XARRAY_FLAGS (C macro)c.DEFINE_XARRAY_FLAGShNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hDEFINE_XARRAY_FLAGSh]jI)}(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&]hhjuh1jHjjhj hhhj hM:ubah}(h]j ah ](j j eh"]h$]h&]jj)jhuh1jBhj hM:hj hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj hhhj hM:ubeh}(h]h ](j0macroeh"]h$]h&]j5j0j6j j7j j8j9j:uh1j=hhhjhNhNubh)}(h%``DEFINE_XARRAY_FLAGS (name, flags)``h]j3)}(hj h]h!DEFINE_XARRAY_FLAGS (name, flags)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM<hjhhubh 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:hjhhubj<)}(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]jF)}(hj !h]h Parameters}(hj !hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj!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]j3)}(hj(!h]hname}(hj*!hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj&!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.}(hjA!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``flags`` XA_FLAG values. h](j)}(h ``flags``h]j3)}(hja!h]hflags}(hjc!hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj_!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)}(hXA_FLAG values.h]hXA_FLAG values.}(hjz!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjv!hM<hjw!ubah}(h]h ]h"]h$]h&]uh1jhj[!ubeh}(h]h ]h"]h$]h&]uh1jhjv!hM<hj!ubeh}(h]h ]h"]h$]h&]uh1jhj!ubh)}(h**Description**h]jF)}(hj!h]h Description}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj!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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9DEFINE_XARRAY (C macro)c.DEFINE_XARRAYhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h DEFINE_XARRAYh]jI)}(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&]hhjuh1jHjjhj!hhhj!hMGubah}(h]j!ah ](j j eh"]h$]h&]jj)jhuh1jBhj!hMGhj!hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj!hhhj!hMGubeh}(h]h ](j0macroeh"]h$]h&]j5j0j6j"j7j"j8j9j:uh1j=hhhjhNhNubh)}(h``DEFINE_XARRAY (name)``h]j3)}(hj"h]hDEFINE_XARRAY (name)}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj"ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMIhjhhubj )}(hDefine an XArray. h]h)}(hDefine an XArray.h]hDefine an XArray.}(hj1"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMGhj-"ubah}(h]h ]h"]h$]h&]uh1j hj?"hMGhjhhubj<)}(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]jF)}(hjL"h]h Parameters}(hjN"hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjJ"ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMKhjF"ubj)}(hhh]j)}(h*``name`` A string that names your XArray. h](j)}(h``name``h]j3)}(hjk"h]hname}(hjm"hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hji"ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMHhje"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&]uh1jhje"ubeh}(h]h ]h"]h$]h&]uh1jhj"hMHhjb"ubah}(h]h ]h"]h$]h&]uh1jhjF"ubh)}(h**Description**h]jF)}(hj"h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj"ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMJhjF"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.hhMJhjF"ubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9DEFINE_XARRAY_ALLOC (C macro)c.DEFINE_XARRAY_ALLOChNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hDEFINE_XARRAY_ALLOCh]jI)}(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&]hhjuh1jHjjhj"hhhj#hMRubah}(h]j"ah ](j j eh"]h$]h&]jj)jhuh1jBhj#hMRhj"hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj"hhhj#hMRubeh}(h]h ](j0macroeh"]h$]h&]j5j0j6j#j7j#j8j9j:uh1j=hhhjhNhNubh)}(h``DEFINE_XARRAY_ALLOC (name)``h]j3)}(hj!#h]hDEFINE_XARRAY_ALLOC (name)}(hj##hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj#ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMThjhhubj )}(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.}(hj;#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMRhj7#ubah}(h]h ]h"]h$]h&]uh1j hjI#hMRhjhhubj<)}(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]jF)}(hjV#h]h Parameters}(hjX#hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjT#ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMVhjP#ubj)}(hhh]j)}(h*``name`` A string that names your XArray. h](j)}(h``name``h]j3)}(hju#h]hname}(hjw#hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjs#ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMShjo#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&]uh1jhjo#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMShjl#ubah}(h]h ]h"]h$]h&]uh1jhjP#ubh)}(h**Description**h]jF)}(hj#h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj#ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMUhjP#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.hhMUhjP#ubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9DEFINE_XARRAY_ALLOC1 (C macro)c.DEFINE_XARRAY_ALLOC1hNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hDEFINE_XARRAY_ALLOC1h]jI)}(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&]hhjuh1jHjjhj#hhhj $hM[ubah}(h]j#ah ](j j eh"]h$]h&]jj)jhuh1jBhj $hM[hj#hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj#hhhj $hM[ubeh}(h]h ](j0macroeh"]h$]h&]j5j0j6j%$j7j%$j8j9j:uh1j=hhhjhNhNubh)}(h``DEFINE_XARRAY_ALLOC1 (name)``h]j3)}(hj+$h]hDEFINE_XARRAY_ALLOC1 (name)}(hj-$hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj)$ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM]hjhhubj )}(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.}(hjE$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM[hjA$ubah}(h]h ]h"]h$]h&]uh1j hjS$hM[hjhhubj<)}(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]jF)}(hj`$h]h Parameters}(hjb$hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj^$ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM_hjZ$ubj)}(hhh]j)}(h*``name`` A string that names your XArray. h](j)}(h``name``h]j3)}(hj$h]hname}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj}$ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM\hjy$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&]uh1jhjy$ubeh}(h]h ]h"]h$]h&]uh1jhj$hM\hjv$ubah}(h]h ]h"]h$]h&]uh1jhjZ$ubh)}(h**Description**h]jF)}(hj$h]h Description}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj$ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM^hjZ$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^hjZ$ubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_init_flags (C function)c.xa_init_flagshNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h3void xa_init_flags (struct xarray *xa, gfp_t flags)h]jI)}(h2void xa_init_flags(struct xarray *xa, gfp_t flags)h](jO)}(hvoidh]hvoid}(hj$hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj$hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMtubja)}(h h]h }(hj%hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj$hhhj %hMtubj)}(h xa_init_flagsh]j)}(h xa_init_flagsh]h xa_init_flags}(hj %hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj$hhhj %hMtubj)}(h (struct xarray *xa, gfp_t flags)h](j)}(hstruct xarray *xah](je)}(hjh]hstruct}(hj<%hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhj8%ubja)}(h h]h }(hjI%hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj8%ubh)}(hhh]j)}(hxarrayh]hxarray}(hjZ%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW%ubah}(h]h ]h"]h$]h&] refdomainj0reftype identifier reftargetj\%modnameN classnameN c:parent_keysphinx.domains.c LookupKey)}data]ju% ASTIdentifier)}jp%j"%sbc.xa_init_flagsasbuh1hhj8%ubja)}(h h]h }(hj%hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj8%ubjr)}(hjh]h*}(hj%hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj8%ubj)}(hxah]hxa}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8%ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj4%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&] refdomainj0reftypejp% reftargetj%modnameN classnameNjt%jw%)}jz%]j~%c.xa_init_flagsasbuh1hhj%ubja)}(h h]h }(hj%hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj%ubj)}(hflagsh]hflags}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj4%ubeh}(h]h ]h"]h$]h&]hhuh1jhj$hhhj %hMtubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhj$hhhj %hMtubah}(h]j$ah ](j j eh"]h$]h&]jj)jhuh1jBhj %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&]uh1jhj$hhhj %hMtubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6j'&j7j'&j8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hj1&h]h Parameters}(hj3&hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj/&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]j3)}(hjP&h]hstruct xarray *xa}(hjR&hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjN&ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMuhjJ&ubj)}(hhh]h)}(hXArray.h]hXArray.}(hji&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhje&hMuhjf&ubah}(h]h ]h"]h$]h&]uh1jhjJ&ubeh}(h]h ]h"]h$]h&]uh1jhje&hMuhjG&ubj)}(h ``gfp_t flags`` XA_FLAG values. h](j)}(h``gfp_t flags``h]j3)}(hj&h]h gfp_t flags}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj&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&hMvhjG&ubeh}(h]h ]h"]h$]h&]uh1jhj+&ubh)}(h**Description**h]jF)}(hj&h]h Description}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj&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.hhMxhj+&ubh)}(h **Context**h]jF)}(hj&h]hContext}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj&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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_init (C function) c.xa_inithNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h void xa_init (struct xarray *xa)h]jI)}(hvoid xa_init(struct xarray *xa)h](jO)}(hvoidh]hvoid}(hj0'hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj,'hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubja)}(h h]h }(hj?'hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj,'hhhj>'hMubj)}(hxa_inith]j)}(hxa_inith]hxa_init}(hjQ'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM'ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj,'hhhj>'hMubj)}(h(struct xarray *xa)h]j)}(hstruct xarray *xah](je)}(hjh]hstruct}(hjm'hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhji'ubja)}(h h]h }(hjz'hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hji'ubh)}(hhh]j)}(hxarrayh]hxarray}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj'modnameN classnameNjt%jw%)}jz%]j}%)}jp%jS'sb c.xa_initasbuh1hhji'ubja)}(h h]h }(hj'hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hji'ubjr)}(hjh]h*}(hj'hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhji'ubj)}(hxah]hxa}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji'ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhje'ubah}(h]h ]h"]h$]h&]hhuh1jhj,'hhhj>'hMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhj('hhhj>'hMubah}(h]j#'ah ](j j eh"]h$]h&]jj)jhuh1jBhj>'hMhj%'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&]uh1jhj%'hhhj>'hMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6j(j7j(j8j9j:uh1j=hhhjhNhNubj<)}(h**Parameters** ``struct xarray *xa`` XArray. **Description** An empty XArray is full of NULL entries. **Context** Any context.h](h)}(h**Parameters**h]jF)}(hj(h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj(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]j3)}(hj1(h]hstruct xarray *xa}(hj3(hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj/(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.}(hjJ(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjF(hMhjG(ubah}(h]h ]h"]h$]h&]uh1jhj+(ubeh}(h]h ]h"]h$]h&]uh1jhjF(hMhj((ubah}(h]h ]h"]h$]h&]uh1jhj (ubh)}(h**Description**h]jF)}(hjl(h]h Description}(hjn(hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjj(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]jF)}(hj(h]hContext}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_empty (C function) c.xa_emptyhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h'bool xa_empty (const struct xarray *xa)h]jI)}(h&bool xa_empty(const struct xarray *xa)h](jO)}(hjh]hbool}(hj(hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj(hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubja)}(h h]h }(hj(hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj(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](je)}(hjhh]hconst}(hj)hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhj)ubja)}(h h]h }(hj!)hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj)ubje)}(hjh]hstruct}(hj/)hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhj)ubja)}(h h]h }(hj<)hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj)ubh)}(hhh]j)}(hxarrayh]hxarray}(hjM)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ)ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjO)modnameN classnameNjt%jw%)}jz%]j}%)}jp%j(sb c.xa_emptyasbuh1hhj)ubja)}(h h]h }(hjm)hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj)ubjr)}(hjh]h*}(hj{)hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj)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&]hhjuh1jHjjhj(hhhj(hMubah}(h]j(ah ](j j eh"]h$]h&]jj)jhuh1jBhj(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&]uh1jhj(hhhj(hMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6j)j7j)j8j9j:uh1j=hhhjhNhNubj<)}(h**Parameters** ``const struct xarray *xa`` XArray. **Context** Any context. **Return** ``true`` if the array contains only NULL pointers.h](h)}(h**Parameters**h]jF)}(hj)h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj)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]j3)}(hj)h]hconst struct xarray *xa}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj)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]jF)}(hj.*h]hContext}(hj0*hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj,*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.}(hjD*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]jF)}(hjU*h]hReturn}(hjW*hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjS*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](j3)}(h``true``h]htrue}(hjo*hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjk*ubh* if the array contains only NULL pointers.}(hjk*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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_marked (C function) c.xa_markedhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h8bool xa_marked (const struct xarray *xa, xa_mark_t mark)h]jI)}(h7bool xa_marked(const struct xarray *xa, xa_mark_t mark)h](jO)}(hjh]hbool}(hj*hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj*hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubja)}(h h]h }(hj*hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj*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](je)}(hjhh]hconst}(hj*hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhj*ubja)}(h h]h }(hj*hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj*ubje)}(hjh]hstruct}(hj*hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhj*ubja)}(h h]h }(hj +hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj*ubh)}(hhh]j)}(hxarrayh]hxarray}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj+modnameN classnameNjt%jw%)}jz%]j}%)}jp%j*sb c.xa_markedasbuh1hhj*ubja)}(h h]h }(hj=+hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj*ubjr)}(hjh]h*}(hjK+hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj*ubj)}(hxah]hxa}(hjX+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}(hjt+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjq+ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjv+modnameN classnameNjt%jw%)}jz%]j9+ c.xa_markedasbuh1hhjm+ubja)}(h h]h }(hj+hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjm+ubj)}(hmarkh]hmark}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm+ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj*ubeh}(h]h ]h"]h$]h&]hhuh1jhj*hhhj*hMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhj*hhhj*hMubah}(h]j*ah ](j j eh"]h$]h&]jj)jhuh1jBhj*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&]uh1jhj*hhhj*hMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6j+j7j+j8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hj+h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj+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]j3)}(hj ,h]hconst struct xarray *xa}(hj ,hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj ,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}(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``xa_mark_t mark`` Mark value h](j)}(h``xa_mark_t mark``h]j3)}(hjD,h]hxa_mark_t mark}(hjF,hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjB,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 Mark valueh]h Mark value}(hj],hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjY,hMhjZ,ubah}(h]h ]h"]h$]h&]uh1jhj>,ubeh}(h]h ]h"]h$]h&]uh1jhjY,hMhj,ubeh}(h]h ]h"]h$]h&]uh1jhj+ubh)}(h **Context**h]jF)}(hj,h]hContext}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj},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]jF)}(hj,h]hReturn}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj,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](j3)}(h``true``h]htrue}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj,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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_for_each_range (C macro)c.xa_for_each_rangehNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hxa_for_each_rangeh]jI)}(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&]hhjuh1jHjjhj,hhhj-hMubah}(h]j,ah ](j j eh"]h$]h&]jj)jhuh1jBhj-hMhj,hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj,hhhj-hMubeh}(h]h ](j0macroeh"]h$]h&]j5j0j6j)-j7j)-j8j9j:uh1j=hhhjhNhNubh)}(h5``xa_for_each_range (xa, index, entry, start, last)``h]j3)}(hj/-h]h1xa_for_each_range (xa, index, entry, start, last)}(hj1-hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj--ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjhhubj )}(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.}(hjI-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjE-ubah}(h]h ]h"]h$]h&]uh1j hjW-hMhjhhubj<)}(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]jF)}(hjd-h]h Parameters}(hjf-hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjb-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``xa`` XArray. h](j)}(h``xa``h]j3)}(hj-h]hxa}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj-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-hMhjz-ubj)}(h``index`` Index of **entry**. h](j)}(h ``index``h]j3)}(hj-h]hindex}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj-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-hhhNhNubjF)}(h **entry**h]hentry}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj-ubh.}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj-hMhj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hMhjz-ubj)}(h&``entry`` Entry retrieved from array. h](j)}(h ``entry``h]j3)}(hj.h]hentry}(hj .hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj.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.}(hj .hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hMhjz-ubj)}(h.``start`` First index to retrieve from array. h](j)}(h ``start``h]j3)}(hj@.h]hstart}(hjB.hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj>.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#First index to retrieve from array.h]h#First index to retrieve from array.}(hjY.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjU.hMhjV.ubah}(h]h ]h"]h$]h&]uh1jhj:.ubeh}(h]h ]h"]h$]h&]uh1jhjU.hMhjz-ubj)}(h,``last`` Last index to retrieve from array. h](j)}(h``last``h]j3)}(hjy.h]hlast}(hj{.hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjw.ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjs.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&]uh1jhjs.ubeh}(h]h ]h"]h$]h&]uh1jhj.hMhjz-ubeh}(h]h ]h"]h$]h&]uh1jhj^-ubh)}(h**Description**h]jF)}(hj.h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj.ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj^-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.hhhNhNubjF)}(h **entry**h]hentry}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj.ubh, will have the value of the entry stored in }(hj.hhhNhNubjF)}(h**xa**h]hxa}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj.ubh at }(hj.hhhNhNubjF)}(h **index**h]hindex}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj.ubh. You may modify }(hj.hhhNhNubjF)}(h **index**h]hindex}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj.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.hhhNhNubjF)}(h **entry**h]hentry}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj.ubh will be set to NULL and }(hj.hhhNhNubjF)}(h **index**h]hindex}(hj,/hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj.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.hhMhj^-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().}(hjE/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]jF)}(hjV/h]hContext}(hjX/hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjT/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. Takes and releases the RCU lock.h]h.Any context. Takes and releases the RCU lock.}(hjl/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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_for_each_start (C macro)c.xa_for_each_starthNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hxa_for_each_starth]jI)}(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&]hhjuh1jHjjhj/hhhj/hMubah}(h]j/ah ](j j eh"]h$]h&]jj)jhuh1jBhj/hMhj/hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj/hhhj/hMubeh}(h]h ](j0macroeh"]h$]h&]j5j0j6j/j7j/j8j9j:uh1j=hhhjhNhNubh)}(h/``xa_for_each_start (xa, index, entry, start)``h]j3)}(hj/h]h+xa_for_each_start (xa, index, entry, start)}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj/ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjhhubj )}(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/hMhjhhubj<)}(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]jF)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj0ubah}(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]j3)}(hj%0h]hxa}(hj'0hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj#0ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj0ubj)}(hhh]h)}(hXArray.h]hXArray.}(hj>0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:0hMhj;0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj:0hMhj0ubj)}(h``index`` Index of **entry**. h](j)}(h ``index``h]j3)}(hj^0h]hindex}(hj`0hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj\0ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjX0ubj)}(hhh]h)}(hIndex of **entry**.h](h Index of }(hjw0hhhNhNubjF)}(h **entry**h]hentry}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjw0ubh.}(hjw0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjs0hMhjt0ubah}(h]h ]h"]h$]h&]uh1jhjX0ubeh}(h]h ]h"]h$]h&]uh1jhjs0hMhj0ubj)}(h&``entry`` Entry retrieved from array. h](j)}(h ``entry``h]j3)}(hj0h]hentry}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj0ubah}(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&]uh1jhj0hMhj0ubj)}(h.``start`` First index to retrieve from array. h](j)}(h ``start``h]j3)}(hj0h]hstart}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj0ubah}(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.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0ubh)}(h**Description**h]jF)}(hj1h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj1ubah}(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, }(hj31hhhNhNubjF)}(h **entry**h]hentry}(hj;1hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj31ubh, will have the value of the entry stored in }(hj31hhhNhNubjF)}(h**xa**h]hxa}(hjM1hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj31ubh at }(hj31hhhNhNubjF)}(h **index**h]hindex}(hj_1hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj31ubh. You may modify }(hj31hhhNhNubjF)}(h **index**h]hindex}(hjq1hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj31ubh 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, }(hj31hhhNhNubjF)}(h **entry**h]hentry}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj31ubh will be set to NULL and }(hj31hhhNhNubjF)}(h **index**h]hindex}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj31ubh- will have a value less than or equal to max.}(hj31hhhNhNubeh}(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]jF)}(hj1h]hContext}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj1ubah}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_for_each (C macro) c.xa_for_eachhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h xa_for_eachh]jI)}(h xa_for_eachh]j)}(h xa_for_eachh]j)}(hj1h]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&]hhjuh1jHjjhj1hhhj2hMubah}(h]j1ah ](j j eh"]h$]h&]jj)jhuh1jBhj2hMhj1hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj1hhhj2hMubeh}(h]h ](j0macroeh"]h$]h&]j5j0j6j42j7j42j8j9j:uh1j=hhhjhNhNubh)}(h"``xa_for_each (xa, index, entry)``h]j3)}(hj:2h]hxa_for_each (xa, index, entry)}(hj<2hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj82ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjhhubj )}(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.}(hjT2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjP2ubah}(h]h ]h"]h$]h&]uh1j hjb2hMhjhhubj<)}(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]jF)}(hjo2h]h Parameters}(hjq2hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjm2ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhji2ubj)}(hhh](j)}(h``xa`` XArray. h](j)}(h``xa``h]j3)}(hj2h]hxa}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj2ubah}(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]j3)}(hj2h]hindex}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj2ubah}(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 }(hj2hhhNhNubjF)}(h **entry**h]hentry}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj2ubh.}(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]j3)}(hj3h]hentry}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj3ubah}(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&]uh1jhji2ubh)}(h**Description**h]jF)}(hjM3h]h Description}(hjO3hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjK3ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhji2ubh)}(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, }(hjc3hhhNhNubjF)}(h **entry**h]hentry}(hjk3hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjc3ubh, will have the value of the entry stored in }(hjc3hhhNhNubjF)}(h**xa**h]hxa}(hj}3hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjc3ubh at }(hjc3hhhNhNubjF)}(h **index**h]hindex}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjc3ubh. You may modify }(hjc3hhhNhNubjF)}(h **index**h]hindex}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjc3ubh 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, }(hjc3hhhNhNubjF)}(h **entry**h]hentry}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjc3ubh will be set to NULL and }(hjc3hhhNhNubjF)}(h **index**h]hindex}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjc3ubh- will have a value less than or equal to max.}(hjc3hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhji2ubh)}(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.hhMhji2ubh)}(h **Context**h]jF)}(hj3h]hContext}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj3ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhji2ubh)}(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.hhMhji2ubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_for_each_marked (C macro)c.xa_for_each_markedhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hxa_for_each_markedh]jI)}(hxa_for_each_markedh]j)}(hxa_for_each_markedh]j)}(hj.4h]hxa_for_each_marked}(hj84hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj44ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj04hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubah}(h]h ]h"]h$]h&]hhjuh1jHjjhj,4hhhjK4hMubah}(h]j'4ah ](j j eh"]h$]h&]jj)jhuh1jBhjK4hMhj)4hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj)4hhhjK4hMubeh}(h]h ](j0macroeh"]h$]h&]j5j0j6jd4j7jd4j8j9j:uh1j=hhhjhNhNubh)}(h1``xa_for_each_marked (xa, index, entry, filter)``h]j3)}(hjj4h]h-xa_for_each_marked (xa, index, entry, filter)}(hjl4hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjh4ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjhhubj )}(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 hj4hMhjhhubj<)}(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]jF)}(hj4h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj4ubah}(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]j3)}(hj4h]hxa}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj4ubah}(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]j3)}(hj4h]hindex}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj4ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj4ubj)}(hhh]h)}(hIndex of **entry**.h](h Index of }(hj5hhhNhNubjF)}(h **entry**h]hentry}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj5ubh.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhj 5hMhj 5ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj 5hMhj4ubj)}(h&``entry`` Entry retrieved from array. h](j)}(h ``entry``h]j3)}(hjB5h]hentry}(hjD5hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj@5ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj<5ubj)}(hhh]h)}(hEntry retrieved from array.h]hEntry retrieved from array.}(hj[5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjW5hMhjX5ubah}(h]h ]h"]h$]h&]uh1jhj<5ubeh}(h]h ]h"]h$]h&]uh1jhjW5hMhj4ubj)}(h ``filter`` Selection criterion. h](j)}(h ``filter``h]j3)}(hj{5h]hfilter}(hj}5hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjy5ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhju5ubj)}(hhh]h)}(hSelection criterion.h]hSelection criterion.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1jhju5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4ubh)}(h**Description**h]jF)}(hj5h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj5ubah}(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, }(hj5hhhNhNubjF)}(h **entry**h]hentry}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj5ubh, will have the value of the entry stored in }(hj5hhhNhNubjF)}(h**xa**h]hxa}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj5ubh at }(hj5hhhNhNubjF)}(h **index**h]hindex}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj5ubhG. The iteration will skip all entries in the array which do not match }(hj5hhhNhNubjF)}(h **filter**h]hfilter}(hj 6hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj5ubh. You may modify }(hj5hhhNhNubjF)}(h **index**h]hindex}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj5ubh 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, }(hj5hhhNhNubjF)}(h **entry**h]hentry}(hj.6hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj5ubh will be set to NULL and }(hj5hhhNhNubjF)}(h **index**h]hindex}(hj@6hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj5ubh- 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().}(hjY6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM hj4ubh)}(h **Context**h]jF)}(hjj6h]hContext}(hjl6hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjh6ubah}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_store_bh (C function) c.xa_store_bhhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hSvoid * xa_store_bh (struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h]jI)}(hQvoid *xa_store_bh(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](jO)}(hvoidh]hvoid}(hj6hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj6hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM@ubja)}(h h]h }(hj6hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj6hhhj6hM@ubjr)}(hjh]h*}(hj6hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj6hhhj6hM@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](je)}(hjh]hstruct}(hj6hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhj6ubja)}(h h]h }(hj7hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj6ubh)}(hhh]j)}(hxarrayh]hxarray}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj7modnameN classnameNjt%jw%)}jz%]j}%)}jp%j6sb c.xa_store_bhasbuh1hhj6ubja)}(h h]h }(hj77hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj6ubjr)}(hjh]h*}(hjE7hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj6ubj)}(hxah]hxa}(hjR7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj6ubj)}(hunsigned long indexh](jO)}(hunsignedh]hunsigned}(hjk7hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjg7ubja)}(h h]h }(hjy7hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjg7ubjO)}(hlongh]hlong}(hj7hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjg7ubja)}(h h]h }(hj7hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjg7ubj)}(hindexh]hindex}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg7ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj6ubj)}(h void *entryh](jO)}(hvoidh]hvoid}(hj7hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj7ubja)}(h h]h }(hj7hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj7ubjr)}(hjh]h*}(hj7hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj7ubj)}(hentryh]hentry}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj6ubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj8modnameN classnameNjt%jw%)}jz%]j37 c.xa_store_bhasbuh1hhj7ubja)}(h h]h }(hj8hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj7ubj)}(hgfph]hgfp}(hj-8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj6ubeh}(h]h ]h"]h$]h&]hhuh1jhj6hhhj6hM@ubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhj6hhhj6hM@ubah}(h]j6ah ](j j eh"]h$]h&]jj)jhuh1jBhj6hM@hj6hhubj)}(hhh]h)}(hStore this entry in the XArray.h]hStore this entry in the XArray.}(hjW8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM@hjT8hhubah}(h]h ]h"]h$]h&]uh1jhj6hhhj6hM@ubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jo8j7jo8j8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjy8h]h Parameters}(hj{8hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjw8ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMDhjs8ubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]j3)}(hj8h]hstruct xarray *xa}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj8ubah}(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]j3)}(hj8h]hunsigned long index}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj8ubah}(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]j3)}(hj 9h]h void *entry}(hj 9hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj9ubah}(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.}(hj#9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMChj 9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMChj8ubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]j3)}(hjC9h]h gfp_t gfp}(hjE9hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjA9ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMDhj=9ubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hj\9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjX9hMDhjY9ubah}(h]h ]h"]h$]h&]uh1jhj=9ubeh}(h]h ]h"]h$]h&]uh1jhjX9hMDhj8ubeh}(h]h ]h"]h$]h&]uh1jhjs8ubh)}(h**Description**h]jF)}(hj~9h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj|9ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMFhjs8ubh)}(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.hhMFhjs8ubh)}(h **Context**h]jF)}(hj9h]hContext}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj9ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMIhjs8ubh)}(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.hhMIhjs8ubh)}(h **Return**h]jF)}(hj9h]hReturn}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj9ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMLhjs8ubh)}(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.hhMKhjs8ubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_store_irq (C function)c.xa_store_irqhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hTvoid * xa_store_irq (struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h]jI)}(hRvoid *xa_store_irq(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](jO)}(hvoidh]hvoid}(hj:hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj :hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM[ubja)}(h h]h }(hj :hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj :hhhj:hM[ubjr)}(hjh]h*}(hj.:hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj :hhhj:hM[ubj)}(h xa_store_irqh]j)}(h xa_store_irqh]h xa_store_irq}(hj?:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;:ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj :hhhj:hM[ubj)}(h@(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](j)}(hstruct xarray *xah](je)}(hjh]hstruct}(hj[:hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjW:ubja)}(h h]h }(hjh:hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjW:ubh)}(hhh]j)}(hxarrayh]hxarray}(hjy:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv:ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj{:modnameN classnameNjt%jw%)}jz%]j}%)}jp%jA:sbc.xa_store_irqasbuh1hhjW:ubja)}(h h]h }(hj:hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjW:ubjr)}(hjh]h*}(hj:hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjW:ubj)}(hxah]hxa}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW:ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjS:ubj)}(hunsigned long indexh](jO)}(hunsignedh]hunsigned}(hj:hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj:ubja)}(h h]h }(hj:hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj:ubjO)}(hlongh]hlong}(hj:hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj:ubja)}(h h]h }(hj:hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj:ubj)}(hindexh]hindex}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjS:ubj)}(h void *entryh](jO)}(hvoidh]hvoid}(hj;hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj;ubja)}(h h]h }(hj,;hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj;ubjr)}(hjh]h*}(hj:;hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj;ubj)}(hentryh]hentry}(hjG;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjS:ubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjc;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`;ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetje;modnameN classnameNjt%jw%)}jz%]j:c.xa_store_irqasbuh1hhj\;ubja)}(h h]h }(hj;hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj\;ubj)}(hgfph]hgfp}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\;ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjS:ubeh}(h]h ]h"]h$]h&]hhuh1jhj :hhhj:hM[ubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhj :hhhj:hM[ubah}(h]j:ah ](j j eh"]h$]h&]jj)jhuh1jBhj: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&]uh1jhj:hhhj:hM[ubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6j;j7j;j8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hj;h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj;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]j3)}(hj;h]hstruct xarray *xa}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj;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]j3)}(hj3<h]hunsigned long index}(hj5<hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj1<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)}(hIndex into array.h]hIndex into array.}(hjL<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjH<hM]hjI<ubah}(h]h ]h"]h$]h&]uh1jhj-<ubeh}(h]h ]h"]h$]h&]uh1jhjH<hM]hj;ubj)}(h``void *entry`` New entry. h](j)}(h``void *entry``h]j3)}(hjl<h]h void *entry}(hjn<hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjj<ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM^hjf<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&]uh1jhjf<ubeh}(h]h ]h"]h$]h&]uh1jhj<hM^hj;ubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]j3)}(hj<h]h gfp_t gfp}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj<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]jF)}(hj<h]h Description}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj<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.hhMahj;ubh)}(h **Context**h]jF)}(hj=h]hContext}(hj =hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj=ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMdhj;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.hhMdhj;ubh)}(h **Return**h]jF)}(hj.=h]hReturn}(hj0=hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj,=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.}(hjD=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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_erase_bh (C function) c.xa_erase_bhhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h;void * xa_erase_bh (struct xarray *xa, unsigned long index)h]jI)}(h9void *xa_erase_bh(struct xarray *xa, unsigned long index)h](jO)}(hvoidh]hvoid}(hjs=hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjo=hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMvubja)}(h h]h }(hj=hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjo=hhhj=hMvubjr)}(hjh]h*}(hj=hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjo=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&]hhuh1jhjo=hhhj=hMvubj)}(h((struct xarray *xa, unsigned long index)h](j)}(hstruct xarray *xah](je)}(hjh]hstruct}(hj=hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhj=ubja)}(h h]h }(hj=hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj=ubh)}(hhh]j)}(hxarrayh]hxarray}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj=modnameN classnameNjt%jw%)}jz%]j}%)}jp%j=sb c.xa_erase_bhasbuh1hhj=ubja)}(h h]h }(hj=hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj=ubjr)}(hjh]h*}(hj >hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj=ubj)}(hxah]hxa}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj=ubj)}(hunsigned long indexh](jO)}(hunsignedh]hunsigned}(hj/>hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj+>ubja)}(h h]h }(hj=>hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj+>ubjO)}(hlongh]hlong}(hjK>hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj+>ubja)}(h h]h }(hjY>hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj+>ubj)}(hindexh]hindex}(hjg>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+>ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj=ubeh}(h]h ]h"]h$]h&]hhuh1jhjo=hhhj=hMvubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjk=hhhj=hMvubah}(h]jf=ah ](j j eh"]h$]h&]jj)jhuh1jBhj=hMvhjh=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&]uh1jhjh=hhhj=hMvubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6j>j7j>j8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hj>h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj>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]j3)}(hj>h]hstruct xarray *xa}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj>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]j3)}(hj ?h]hunsigned long index}(hj ?hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj ?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.}(hj$?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ?hMxhj!?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj ?hMxhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>ubh)}(h**Description**h]jF)}(hjF?h]h Description}(hjH?hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjD?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 }(hj\?hhhNhNubjF)}(h **index**h]hindex}(hjd?hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj\?ubh will return }(hj\?hhhNhNubj3)}(h``NULL``h]hNULL}(hjv?hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj\?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.}(hj\?hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMzhj>ubh)}(h **Context**h]jF)}(hj?h]hContext}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj?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]jF)}(hj?h]hReturn}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj?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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_erase_irq (C function)c.xa_erase_irqhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h)}(hhh](jC)}(h]void * xa_cmpxchg (struct xarray *xa, unsigned long index, void *old, void *entry, gfp_t gfp)h]jI)}(h[void *xa_cmpxchg(struct xarray *xa, unsigned long index, void *old, void *entry, gfp_t gfp)h](jO)}(hvoidh]hvoid}(hjBhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjBhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubja)}(h h]h }(hjBhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjBhhhjBhMubjr)}(hjh]h*}(hjBhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjBhhhjBhMubj)}(h xa_cmpxchgh]j)}(h xa_cmpxchgh]h xa_cmpxchg}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ](jjeh"]h$]h&]hhuh1jhjBhhhjBhMubj)}(hK(struct xarray *xa, unsigned long index, void *old, void *entry, gfp_t gfp)h](j)}(hstruct xarray *xah](je)}(hjh]hstruct}(hjBhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjBubja)}(h h]h }(hjBhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjBubh)}(hhh]j)}(hxarrayh]hxarray}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjBmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jBsb c.xa_cmpxchgasbuh1hhjBubja)}(h h]h }(hjChhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjBubjr)}(hjh]h*}(hjChhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjBubj)}(hxah]hxa}(hj*ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjBubj)}(hunsigned long indexh](jO)}(hunsignedh]hunsigned}(hjCChhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj?Cubja)}(h h]h }(hjQChhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj?CubjO)}(hlongh]hlong}(hj_ChhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj?Cubja)}(h h]h }(hjmChhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj?Cubj)}(hindexh]hindex}(hj{ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?Cubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjBubj)}(h void *oldh](jO)}(hvoidh]hvoid}(hjChhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjCubja)}(h h]h }(hjChhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjCubjr)}(hjh]h*}(hjChhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjCubj)}(holdh]hold}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjBubj)}(h void *entryh](jO)}(hvoidh]hvoid}(hjChhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjCubja)}(h h]h }(hjChhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjCubjr)}(hjh]h*}(hjChhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjCubj)}(hentryh]hentry}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjBubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjDmodnameN classnameNjt%jw%)}jz%]j C c.xa_cmpxchgasbuh1hhjDubja)}(h h]h }(hj9DhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjDubj)}(hgfph]hgfp}(hjGDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjBubeh}(h]h ]h"]h$]h&]hhuh1jhjBhhhjBhMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjBhhhjBhMubah}(h]jzBah ](j j eh"]h$]h&]jj)jhuh1jBhjBhMhj|Bhhubj)}(hhh]h)}(h-Conditionally replace an entry in the XArray.h]h-Conditionally replace an entry in the XArray.}(hjqDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjnDhhubah}(h]h ]h"]h$]h&]uh1jhj|BhhhjBhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jDj7jDj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjDh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjDubah}(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]j3)}(hjDh]hstruct xarray *xa}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjDubah}(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]j3)}(hjDh]hunsigned long index}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjDubah}(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]j3)}(hj$Eh]h void *old}(hj&EhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj"Eubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjEubj)}(hhh]h)}(hOld value to test against.h]hOld value to test against.}(hj=EhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9EhMhj:Eubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj9EhMhjDubj)}(h-``void *entry`` New value to place in array. h](j)}(h``void *entry``h]j3)}(hj]Eh]h void *entry}(hj_EhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj[Eubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjWEubj)}(hhh]h)}(hNew value to place in array.h]hNew value to place in array.}(hjvEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrEhMhjsEubah}(h]h ]h"]h$]h&]uh1jhjWEubeh}(h]h ]h"]h$]h&]uh1jhjrEhMhjDubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]j3)}(hjEh]h gfp_t gfp}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjEubah}(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]jF)}(hjEh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjEubah}(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 }(hjEhhhNhNubjF)}(h **index**h]hindex}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjEubh is the same as }(hjEhhhNhNubjF)}(h**old**h]hold}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjEubh, replace it with }(hjEhhhNhNubjF)}(h **entry**h]hentry}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjEubh". If the return value is equal to }(hjEhhhNhNubjF)}(h**old**h]hold}(hj%FhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjEubh#, 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]jF)}(hj@Fh]hContext}(hjBFhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj>Fubah}(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 }(hjVFhhhNhNubjF)}(h**gfp**h]hgfp}(hj^FhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjVFubh flags permit.}(hjVFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjDubh)}(h **Return**h]jF)}(hjyFh]hReturn}(hj{FhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjwFubah}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_cmpxchg_bh (C function)c.xa_cmpxchg_bhhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h`void * xa_cmpxchg_bh (struct xarray *xa, unsigned long index, void *old, void *entry, gfp_t gfp)h]jI)}(h^void *xa_cmpxchg_bh(struct xarray *xa, unsigned long index, void *old, void *entry, gfp_t gfp)h](jO)}(hvoidh]hvoid}(hjFhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjFhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubja)}(h h]h }(hjFhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjFhhhjFhMubjr)}(hjh]h*}(hjFhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjFhhhjFhMubj)}(h xa_cmpxchg_bhh]j)}(h xa_cmpxchg_bhh]h xa_cmpxchg_bh}(hjFhhhNhNubah}(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](je)}(hjh]hstruct}(hjGhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjGubja)}(h h]h }(hjGhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjGubh)}(hhh]j)}(hxarrayh]hxarray}(hj&GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#Gubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj(GmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jFsbc.xa_cmpxchg_bhasbuh1hhjGubja)}(h h]h }(hjFGhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjGubjr)}(hjh]h*}(hjTGhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjGubj)}(hxah]hxa}(hjaGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjGubj)}(hunsigned long indexh](jO)}(hunsignedh]hunsigned}(hjzGhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjvGubja)}(h h]h }(hjGhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjvGubjO)}(hlongh]hlong}(hjGhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjvGubja)}(h h]h }(hjGhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjvGubj)}(hindexh]hindex}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvGubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjGubj)}(h void *oldh](jO)}(hvoidh]hvoid}(hjGhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjGubja)}(h h]h }(hjGhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjGubjr)}(hjh]h*}(hjGhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjGubj)}(holdh]hold}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjGubj)}(h void *entryh](jO)}(hvoidh]hvoid}(hj HhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj Hubja)}(h h]h }(hjHhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj Hubjr)}(hjh]h*}(hj)HhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj Hubj)}(hentryh]hentry}(hj6HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Hubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjGubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjRHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOHubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjTHmodnameN classnameNjt%jw%)}jz%]jBGc.xa_cmpxchg_bhasbuh1hhjKHubja)}(h h]h }(hjpHhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjKHubj)}(hgfph]hgfp}(hj~HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKHubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjGubeh}(h]h ]h"]h$]h&]hhuh1jhjFhhhjFhMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjFhhhjFhMubah}(h]jFah ](j j eh"]h$]h&]jj)jhuh1jBhjFhMhjFhhubj)}(hhh]h)}(h-Conditionally replace an entry in the XArray.h]h-Conditionally replace an entry in the XArray.}(hjHhhhNhNubah}(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&]uh1jhjFhhhjFhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jHj7jHj8j9j:uh1j=hhhjhNhNubj<)}(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** This function is like calling xa_cmpxchg() except it disables softirqs while holding the array lock. **Context** Any context. Takes and releases the xa_lock while disabling softirqs. 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]jF)}(hjHh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjHubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjHubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]j3)}(hjHh]hstruct xarray *xa}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjHubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjHubj)}(hhh]h)}(hXArray.h]hXArray.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhMhjHubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjHubj)}(h*``unsigned long index`` Index into array. h](j)}(h``unsigned long index``h]j3)}(hj"Ih]hunsigned long index}(hj$IhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj Iubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjIubj)}(hhh]h)}(hIndex into array.h]hIndex into array.}(hj;IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7IhMhj8Iubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhj7IhMhjHubj)}(h)``void *old`` Old value to test against. h](j)}(h ``void *old``h]j3)}(hj[Ih]h void *old}(hj]IhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjYIubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjUIubj)}(hhh]h)}(hOld value to test against.h]hOld value to test against.}(hjtIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjpIhMhjqIubah}(h]h ]h"]h$]h&]uh1jhjUIubeh}(h]h ]h"]h$]h&]uh1jhjpIhMhjHubj)}(h-``void *entry`` New value to place in array. h](j)}(h``void *entry``h]j3)}(hjIh]h void *entry}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjIubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjIubj)}(hhh]h)}(hNew value to place in array.h]hNew value to place in array.}(hjIhhhNhNubah}(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]j3)}(hjIh]h gfp_t gfp}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjIubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjIubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMhjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjHubeh}(h]h ]h"]h$]h&]uh1jhjHubh)}(h**Description**h]jF)}(hjJh]h Description}(hj JhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjJubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjHubh)}(hdThis function is like calling xa_cmpxchg() except it disables softirqs while holding the array lock.h]hdThis function is like calling xa_cmpxchg() except it disables softirqs while holding the array lock.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjHubh)}(h **Context**h]jF)}(hj/Jh]hContext}(hj1JhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj-Jubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjHubh)}(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 }(hjEJhhhNhNubjF)}(h**gfp**h]hgfp}(hjMJhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjEJubh flags permit.}(hjEJhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjHubh)}(h **Return**h]jF)}(hjhJh]hReturn}(hjjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjfJubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjHubh)}(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.}(hj~JhhhNhNubah}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_cmpxchg_irq (C function)c.xa_cmpxchg_irqhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(havoid * xa_cmpxchg_irq (struct xarray *xa, unsigned long index, void *old, void *entry, gfp_t gfp)h]jI)}(h_void *xa_cmpxchg_irq(struct xarray *xa, unsigned long index, void *old, void *entry, gfp_t gfp)h](jO)}(hvoidh]hvoid}(hjJhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjJhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubja)}(h h]h }(hjJhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjJhhhjJhMubjr)}(hjh]h*}(hjJhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjJhhhjJhMubj)}(hxa_cmpxchg_irqh]j)}(hxa_cmpxchg_irqh]hxa_cmpxchg_irq}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ](jjeh"]h$]h&]hhuh1jhjJhhhjJhMubj)}(hK(struct xarray *xa, unsigned long index, void *old, void *entry, gfp_t gfp)h](j)}(hstruct xarray *xah](je)}(hjh]hstruct}(hjJhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjJubja)}(h h]h }(hjKhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjJubh)}(hhh]j)}(hxarrayh]hxarray}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjKmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jJsbc.xa_cmpxchg_irqasbuh1hhjJubja)}(h h]h }(hj5KhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjJubjr)}(hjh]h*}(hjCKhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjJubj)}(hxah]hxa}(hjPKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjJubj)}(hunsigned long indexh](jO)}(hunsignedh]hunsigned}(hjiKhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjeKubja)}(h h]h }(hjwKhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjeKubjO)}(hlongh]hlong}(hjKhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjeKubja)}(h h]h }(hjKhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjeKubj)}(hindexh]hindex}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeKubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjJubj)}(h void *oldh](jO)}(hvoidh]hvoid}(hjKhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjKubja)}(h h]h }(hjKhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjKubjr)}(hjh]h*}(hjKhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjKubj)}(holdh]hold}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjJubj)}(h void *entryh](jO)}(hvoidh]hvoid}(hjKhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjKubja)}(h h]h }(hj LhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjKubjr)}(hjh]h*}(hjLhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjKubj)}(hentryh]hentry}(hj%LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjJubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjALhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>Lubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjCLmodnameN classnameNjt%jw%)}jz%]j1Kc.xa_cmpxchg_irqasbuh1hhj:Lubja)}(h h]h }(hj_LhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj:Lubj)}(hgfph]hgfp}(hjmLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:Lubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjJubeh}(h]h ]h"]h$]h&]hhuh1jhjJhhhjJhMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjJhhhjJhMubah}(h]jJah ](j j eh"]h$]h&]jj)jhuh1jBhjJhMhjJhhubj)}(hhh]h)}(h-Conditionally replace an entry in the XArray.h]h-Conditionally replace an entry in the XArray.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjLhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjJhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jLj7jLj8j9j:uh1j=hhhjhNhNubj<)}(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** This function is like calling xa_cmpxchg() except it disables interrupts while holding the array lock. **Context** Process context. Takes and releases the xa_lock while disabling interrupts. 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]jF)}(hjLh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjLubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjLubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]j3)}(hjLh]hstruct xarray *xa}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjLubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjLubj)}(hhh]h)}(hXArray.h]hXArray.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjLubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjLhMhjLubj)}(h*``unsigned long index`` Index into array. h](j)}(h``unsigned long index``h]j3)}(hjMh]hunsigned long index}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjMubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj Mubj)}(hhh]h)}(hIndex into array.h]hIndex into array.}(hj*MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&MhMhj'Mubah}(h]h ]h"]h$]h&]uh1jhj Mubeh}(h]h ]h"]h$]h&]uh1jhj&MhMhjLubj)}(h)``void *old`` Old value to test against. h](j)}(h ``void *old``h]j3)}(hjJMh]h void *old}(hjLMhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjHMubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjDMubj)}(hhh]h)}(hOld value to test against.h]hOld value to test against.}(hjcMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_MhMhj`Mubah}(h]h ]h"]h$]h&]uh1jhjDMubeh}(h]h ]h"]h$]h&]uh1jhj_MhMhjLubj)}(h-``void *entry`` New value to place in array. h](j)}(h``void *entry``h]j3)}(hjMh]h void *entry}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjMubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj}Mubj)}(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&]uh1jhj}Mubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjLubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]j3)}(hjMh]h gfp_t gfp}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjMubah}(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]jF)}(hjMh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjMubah}(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]jF)}(hjNh]hContext}(hj NhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjNubah}(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 }(hj4NhhhNhNubjF)}(h**gfp**h]hgfp}(hj)}(hhh](jC)}(hNint xa_insert (struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h]jI)}(hMint xa_insert(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](jO)}(hinth]hint}(hjNhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjNhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubja)}(h h]h }(hjNhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjNhhhjNhMubj)}(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](je)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjNubja)}(h h]h }(hjNhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjNubh)}(hhh]j)}(hxarrayh]hxarray}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjNmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jNsb c.xa_insertasbuh1hhjNubja)}(h h]h }(hjOhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjNubjr)}(hjh]h*}(hj%OhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjNubj)}(hxah]hxa}(hj2OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjNubj)}(hunsigned long indexh](jO)}(hunsignedh]hunsigned}(hjKOhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjGOubja)}(h h]h }(hjYOhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjGOubjO)}(hlongh]hlong}(hjgOhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjGOubja)}(h h]h }(hjuOhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjGOubj)}(hindexh]hindex}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGOubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjNubj)}(h void *entryh](jO)}(hvoidh]hvoid}(hjOhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjOubja)}(h h]h }(hjOhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjOubjr)}(hjh]h*}(hjOhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjOubj)}(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&] refdomainj0reftypejp% reftargetjOmodnameN classnameNjt%jw%)}jz%]jO c.xa_insertasbuh1hhjOubja)}(h h]h }(hjOhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjOubj)}(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&]hhjuh1jHjjhjNhhhjNhMubah}(h]jNah ](j j eh"]h$]h&]jj)jhuh1jBhjNhMhjNhhubj)}(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.}(hj7PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj4Phhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjNhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jOPj7jOPj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjYPh]h Parameters}(hj[PhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjWPubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjSPubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]j3)}(hjxPh]hstruct xarray *xa}(hjzPhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjvPubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjrPubj)}(hhh]h)}(hXArray.h]hXArray.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjPubah}(h]h ]h"]h$]h&]uh1jhjrPubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjoPubj)}(h*``unsigned long index`` Index into array. h](j)}(h``unsigned long index``h]j3)}(hjPh]hunsigned long index}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjPubah}(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&]uh1jhjPhMhjoPubj)}(h``void *entry`` New entry. h](j)}(h``void *entry``h]j3)}(hjPh]h void *entry}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjPubah}(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&]uh1hhjPhMhjQubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjPhMhjoPubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]j3)}(hj#Qh]h gfp_t gfp}(hj%QhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj!Qubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjQubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hj)}(hhh](jC)}(hQint xa_insert_bh (struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h]jI)}(hPint xa_insert_bh(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](jO)}(hinth]hint}(hjRhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjQhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubja)}(h h]h }(hjRhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjQhhhjRhMubj)}(h xa_insert_bhh]j)}(h xa_insert_bhh]h xa_insert_bh}(hj$RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Rubah}(h]h ](jjeh"]h$]h&]hhuh1jhjQhhhjRhMubj)}(h@(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](j)}(hstruct xarray *xah](je)}(hjh]hstruct}(hj@RhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhj)}(hhh](jC)}(hRint xa_insert_irq (struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h]jI)}(hQint xa_insert_irq(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](jO)}(hinth]hint}(hjjUhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjfUhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM6ubja)}(h h]h }(hjyUhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjfUhhhjxUhM6ubj)}(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&]hhuh1jhjfUhhhjxUhM6ubj)}(h@(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](j)}(hstruct xarray *xah](je)}(hjh]hstruct}(hjUhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjUubja)}(h h]h }(hjUhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjUubh)}(hhh]j)}(hxarrayh]hxarray}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjUmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jUsbc.xa_insert_irqasbuh1hhjUubja)}(h h]h }(hjUhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjUubjr)}(hjh]h*}(hjUhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjUubj)}(hxah]hxa}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjUubj)}(hunsigned long indexh](jO)}(hunsignedh]hunsigned}(hjVhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjVubja)}(h h]h }(hj'VhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjVubjO)}(hlongh]hlong}(hj5VhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjVubja)}(h h]h }(hjCVhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjVubj)}(hindexh]hindex}(hjQVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjUubj)}(h void *entryh](jO)}(hvoidh]hvoid}(hjjVhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjfVubja)}(h h]h }(hjxVhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjfVubjr)}(hjh]h*}(hjVhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjfVubj)}(hentryh]hentry}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfVubeh}(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&] refdomainj0reftypejp% reftargetjVmodnameN classnameNjt%jw%)}jz%]jUc.xa_insert_irqasbuh1hhjVubja)}(h h]h }(hjVhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjVubj)}(hgfph]hgfp}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjUubeh}(h]h ]h"]h$]h&]hhuh1jhjfUhhhjxUhM6ubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjbUhhhjxUhM6ubah}(h]j]Uah ](j j eh"]h$]h&]jj)jhuh1jBhjxUhM6hj_Uhhubj)}(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&]uh1jhj_UhhhjxUhM6ubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jWj7jWj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hj'Wh]h Parameters}(hj)WhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj%Wubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM:hj!Wubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]j3)}(hjFWh]hstruct xarray *xa}(hjHWhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjDWubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM8hj@Wubj)}(hhh]h)}(hXArray.h]hXArray.}(hj_WhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[WhM8hj\Wubah}(h]h ]h"]h$]h&]uh1jhj@Wubeh}(h]h ]h"]h$]h&]uh1jhj[WhM8hj=Wubj)}(h*``unsigned long index`` Index into array. h](j)}(h``unsigned long index``h]j3)}(hjWh]hunsigned long index}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj}Wubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM9hjyWubj)}(hhh]h)}(hIndex into array.h]hIndex into array.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhM9hjWubah}(h]h ]h"]h$]h&]uh1jhjyWubeh}(h]h ]h"]h$]h&]uh1jhjWhM9hj=Wubj)}(h``void *entry`` New entry. h](j)}(h``void *entry``h]j3)}(hjWh]h void *entry}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjWubah}(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:hj=Wubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]j3)}(hjWh]h gfp_t gfp}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjWubah}(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.}(hj XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhM;hjXubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjXhM;hj=Wubeh}(h]h ]h"]h$]h&]uh1jhj!Wubh)}(h**Description**h]jF)}(hj,Xh]h Description}(hj.XhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj*Xubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM=hj!Wubh)}(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.}(hjBXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM=hj!Wubh)}(h **Context**h]jF)}(hjSXh]hContext}(hjUXhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjQXubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMAhj!Wubh)}(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 }(hjiXhhhNhNubjF)}(h**gfp**h]hgfp}(hjqXhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjiXubh flags permit.}(hjiXhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMAhj!Wubh)}(h **Return**h]jF)}(hjXh]hReturn}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjXubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMDhj!Wubh)}(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.hhMChj!Wubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_alloc (C function) c.xa_allochNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hXint xa_alloc (struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, gfp_t gfp)h]jI)}(hWint xa_alloc(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, gfp_t gfp)h](jO)}(hinth]hint}(hjXhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjXhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMTubja)}(h h]h }(hjXhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjXhhhjXhMTubj)}(hxa_alloch]j)}(hxa_alloch]hxa_alloc}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(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](je)}(hjh]hstruct}(hjYhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhj Yubja)}(h h]h }(hjYhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj Yubh)}(hhh]j)}(hxarrayh]hxarray}(hj,YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)Yubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj.YmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jXsb c.xa_allocasbuh1hhj Yubja)}(h h]h }(hjLYhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj Yubjr)}(hjh]h*}(hjZYhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj Yubj)}(hxah]hxa}(hjgYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Yubeh}(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&] refdomainj0reftypejp% reftargetjYmodnameN classnameNjt%jw%)}jz%]jHY c.xa_allocasbuh1hhj|Yubja)}(h h]h }(hjYhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj|Yubjr)}(hjh]h*}(hjYhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj|Yubj)}(hidh]hid}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|Yubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjYubj)}(h void *entryh](jO)}(hvoidh]hvoid}(hjYhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjYubja)}(h h]h }(hjYhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjYubjr)}(hjh]h*}(hjYhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjYubj)}(hentryh]hentry}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjYubj)}(hstruct xa_limit limith](je)}(hjh]hstruct}(hjZhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjZubja)}(h h]h }(hj$ZhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjZubh)}(hhh]j)}(hxa_limith]hxa_limit}(hj5ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2Zubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj7ZmodnameN classnameNjt%jw%)}jz%]jHY c.xa_allocasbuh1hhjZubja)}(h h]h }(hjSZhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjZubj)}(hlimith]hlimit}(hjaZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjYubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj}ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzZubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjZmodnameN classnameNjt%jw%)}jz%]jHY c.xa_allocasbuh1hhjvZubja)}(h h]h }(hjZhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjvZubj)}(hgfph]hgfp}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvZubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjYubeh}(h]h ]h"]h$]h&]hhuh1jhjXhhhjXhMTubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjXhhhjXhMTubah}(h]jXah ](j j eh"]h$]h&]jj)jhuh1jBhjXhMThjXhhubj)}(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&]uh1jhjXhhhjXhMTubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jZj7jZj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjZubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMXhjZubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]j3)}(hj[h]hstruct xarray *xa}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj[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&]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]j3)}(hjM[h]hu32 *id}(hjO[hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjK[ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMVhjG[ubj)}(hhh]h)}(hPointer to ID.h]hPointer to ID.}(hjf[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjb[hMVhjc[ubah}(h]h ]h"]h$]h&]uh1jhjG[ubeh}(h]h ]h"]h$]h&]uh1jhjb[hMVhj [ubj)}(h``void *entry`` New entry. h](j)}(h``void *entry``h]j3)}(hj[h]h void *entry}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj[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]j3)}(hj[h]hstruct xa_limit limit}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj[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]j3)}(hj[h]h gfp_t gfp}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj[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&]uh1jhjZubh)}(h**Description**h]jF)}(hj3\h]h Description}(hj5\hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj1\ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM[hjZubh)}(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 }(hjI\hhhNhNubjF)}(h**xa**h]hxa}(hjQ\hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjI\ubh between }(hjI\hhhNhNubjF)}(h **limit.min**h]h limit.min}(hjc\hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjI\ubh and }(hjI\hhhNhNubjF)}(h **limit.max**h]h limit.max}(hju\hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjI\ubh, stores the index into the }(hjI\hhhNhNubjF)}(h**id**h]hid}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjI\ubhb pointer, then stores the entry at that index. A concurrent lookup will not see an uninitialised }(hjI\hhhNhNubjF)}(h**id**h]hid}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjI\ubh.}(hjI\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM[hjZubh)}(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_hjZubh)}(h **Context**h]jF)}(hj\h]hContext}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj\ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMbhjZubh)}(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\hhhNhNubjF)}(h**gfp**h]hgfp}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj\ubh flags permit.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMbhjZubh)}(h **Return**h]jF)}(hj\h]hReturn}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj\ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMehjZubh)}(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]hhhNhNubjF)}(h **limit**h]hlimit}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj]ubh.}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMdhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_alloc_bh (C function) c.xa_alloc_bhhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h[int xa_alloc_bh (struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, gfp_t gfp)h]jI)}(hZint xa_alloc_bh(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, gfp_t gfp)h](jO)}(hinth]hint}(hjS]hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjO]hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMuubja)}(h h]h }(hjb]hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjO]hhhja]hMuubj)}(h xa_alloc_bhh]j)}(h xa_alloc_bhh]h xa_alloc_bh}(hjt]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp]ubah}(h]h ](jjeh"]h$]h&]hhuh1jhjO]hhhja]hMuubj)}(hK(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, gfp_t gfp)h](j)}(hstruct xarray *xah](je)}(hjh]hstruct}(hj]hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhj]ubja)}(h h]h }(hj]hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj]ubh)}(hhh]j)}(hxarrayh]hxarray}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj]modnameN classnameNjt%jw%)}jz%]j}%)}jp%jv]sb c.xa_alloc_bhasbuh1hhj]ubja)}(h h]h }(hj]hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj]ubjr)}(hjh]h*}(hj]hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj]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&] refdomainj0reftypejp% reftargetj^modnameN classnameNjt%jw%)}jz%]j] c.xa_alloc_bhasbuh1hhj]ubja)}(h h]h }(hj#^hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj]ubjr)}(hjh]h*}(hj1^hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj]ubj)}(hidh]hid}(hj>^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj]ubj)}(h void *entryh](jO)}(hvoidh]hvoid}(hjW^hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjS^ubja)}(h h]h }(hje^hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjS^ubjr)}(hjh]h*}(hjs^hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjS^ubj)}(hentryh]hentry}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS^ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj]ubj)}(hstruct xa_limit limith](je)}(hjh]hstruct}(hj^hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhj^ubja)}(h h]h }(hj^hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj^ubh)}(hhh]j)}(hxa_limith]hxa_limit}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj^modnameN classnameNjt%jw%)}jz%]j] c.xa_alloc_bhasbuh1hhj^ubja)}(h h]h }(hj^hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj^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&] refdomainj0reftypejp% reftargetj_modnameN classnameNjt%jw%)}jz%]j] c.xa_alloc_bhasbuh1hhj^ubja)}(h h]h }(hj_hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj^ubj)}(hgfph]hgfp}(hj+_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj]ubeh}(h]h ]h"]h$]h&]hhuh1jhjO]hhhja]hMuubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjK]hhhja]hMuubah}(h]jF]ah ](j j eh"]h$]h&]jj)jhuh1jBhja]hMuhjH]hhubj)}(hhh]h)}(h1Find somewhere to store this entry in the XArray.h]h1Find somewhere to store this entry in the XArray.}(hjU_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMuhjR_hhubah}(h]h ]h"]h$]h&]uh1jhjH]hhhja]hMuubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jm_j7jm_j8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjw_h]h Parameters}(hjy_hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhju_ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMyhjq_ubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]j3)}(hj_h]hstruct xarray *xa}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj_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]j3)}(hj_h]hu32 *id}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj_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]j3)}(hj`h]h void *entry}(hj `hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj`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.}(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)}(h3``struct xa_limit limit`` Range of ID to allocate. h](j)}(h``struct xa_limit limit``h]j3)}(hjA`h]hstruct xa_limit limit}(hjC`hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj?`ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMyhj;`ubj)}(hhh]h)}(hRange of ID to allocate.h]hRange of ID to allocate.}(hjZ`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjV`hMyhjW`ubah}(h]h ]h"]h$]h&]uh1jhj;`ubeh}(h]h ]h"]h$]h&]uh1jhjV`hMyhj_ubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]j3)}(hjz`h]h gfp_t gfp}(hj|`hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjx`ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMzhjt`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&]uh1jhjt`ubeh}(h]h ]h"]h$]h&]uh1jhj`hMzhj_ubeh}(h]h ]h"]h$]h&]uh1jhjq_ubh)}(h**Description**h]jF)}(hj`h]h Description}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj`ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM|hjq_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`hhhNhNubjF)}(h**xa**h]hxa}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj`ubh between }(hj`hhhNhNubjF)}(h **limit.min**h]h limit.min}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj`ubh and }(hj`hhhNhNubjF)}(h **limit.max**h]h limit.max}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj`ubh, stores the index into the }(hj`hhhNhNubjF)}(h**id**h]hid}(hj ahhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj`ubhb pointer, then stores the entry at that index. A concurrent lookup will not see an uninitialised }(hj`hhhNhNubjF)}(h**id**h]hid}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj`ubh.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM|hjq_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().}(hj4ahhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjq_ubh)}(h **Context**h]jF)}(hjEah]hContext}(hjGahhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjCaubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjq_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 }(hj[ahhhNhNubjF)}(h**gfp**h]hgfp}(hjcahhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj[aubh flags permit.}(hj[ahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjq_ubh)}(h **Return**h]jF)}(hj~ah]hReturn}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj|aubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjq_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 }(hjahhhNhNubjF)}(h **limit**h]hlimit}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjaubh.}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjq_ubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_alloc_irq (C function)c.xa_alloc_irqhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h\int xa_alloc_irq (struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, gfp_t gfp)h]jI)}(h[int xa_alloc_irq(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, gfp_t gfp)h](jO)}(hinth]hint}(hjahhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjahhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubja)}(h h]h }(hjahhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjahhhjahMubj)}(h xa_alloc_irqh]j)}(h xa_alloc_irqh]h xa_alloc_irq}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(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](je)}(hjh]hstruct}(hjbhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjbubja)}(h h]h }(hjbhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjbubh)}(hhh]j)}(hxarrayh]hxarray}(hj0bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-bubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj2bmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jasbc.xa_alloc_irqasbuh1hhjbubja)}(h h]h }(hjPbhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjbubjr)}(hjh]h*}(hj^bhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjbubj)}(hxah]hxa}(hjkbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj bubj)}(hu32 *idh](h)}(hhh]j)}(hu32h]hu32}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjbmodnameN classnameNjt%jw%)}jz%]jLbc.xa_alloc_irqasbuh1hhjbubja)}(h h]h }(hjbhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjbubjr)}(hjh]h*}(hjbhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjbubj)}(hidh]hid}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj bubj)}(h void *entryh](jO)}(hvoidh]hvoid}(hjbhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjbubja)}(h h]h }(hjbhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjbubjr)}(hjh]h*}(hjbhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjbubj)}(hentryh]hentry}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj bubj)}(hstruct xa_limit limith](je)}(hjh]hstruct}(hjchhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjcubja)}(h h]h }(hj(chhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjcubh)}(hhh]j)}(hxa_limith]hxa_limit}(hj9chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6cubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj;cmodnameN classnameNjt%jw%)}jz%]jLbc.xa_alloc_irqasbuh1hhjcubja)}(h h]h }(hjWchhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjcubj)}(hlimith]hlimit}(hjechhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj bubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~cubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjcmodnameN classnameNjt%jw%)}jz%]jLbc.xa_alloc_irqasbuh1hhjzcubja)}(h h]h }(hjchhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjzcubj)}(hgfph]hgfp}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzcubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj bubeh}(h]h ]h"]h$]h&]hhuh1jhjahhhjahMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjahhhjahMubah}(h]jaah ](j j eh"]h$]h&]jj)jhuh1jBhjahMhjahhubj)}(hhh]h)}(h1Find somewhere to store this entry in the XArray.h]h1Find somewhere to store this entry in the XArray.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjchhubah}(h]h ]h"]h$]h&]uh1jhjahhhjahMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jcj7jcj8j9j:uh1j=hhhjhNhNubj<)}(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** Process context. Takes and releases the xa_lock while disabling interrupts. 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]jF)}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjcubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjcubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]j3)}(hjdh]hstruct xarray *xa}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjdubah}(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.}(hj1dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-dhMhj.dubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhj-dhMhjdubj)}(h``u32 *id`` Pointer to ID. h](j)}(h ``u32 *id``h]j3)}(hjQdh]hu32 *id}(hjSdhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjOdubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjKdubj)}(hhh]h)}(hPointer to ID.h]hPointer to ID.}(hjjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfdhMhjgdubah}(h]h ]h"]h$]h&]uh1jhjKdubeh}(h]h ]h"]h$]h&]uh1jhjfdhMhjdubj)}(h``void *entry`` New entry. h](j)}(h``void *entry``h]j3)}(hjdh]h void *entry}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjdubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjdubj)}(hhh]h)}(h New entry.h]h New entry.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjdubj)}(h3``struct xa_limit limit`` Range of ID to allocate. h](j)}(h``struct xa_limit limit``h]j3)}(hjdh]hstruct xa_limit limit}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjdubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjdubj)}(hhh]h)}(hRange of ID to allocate.h]hRange of ID to allocate.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjdubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]j3)}(hjdh]h gfp_t gfp}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjdubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjdubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMhjeubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjehMhjdubeh}(h]h ]h"]h$]h&]uh1jhjcubh)}(h**Description**h]jF)}(hj7eh]h Description}(hj9ehhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj5eubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjcubh)}(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 }(hjMehhhNhNubjF)}(h**xa**h]hxa}(hjUehhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjMeubh between }(hjMehhhNhNubjF)}(h **limit.min**h]h limit.min}(hjgehhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjMeubh and }(hjMehhhNhNubjF)}(h **limit.max**h]h limit.max}(hjyehhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjMeubh, stores the index into the }(hjMehhhNhNubjF)}(h**id**h]hid}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjMeubhb pointer, then stores the entry at that index. A concurrent lookup will not see an uninitialised }(hjMehhhNhNubjF)}(h**id**h]hid}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjMeubh.}(hjMehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjcubh)}(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().}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjcubh)}(h **Context**h]jF)}(hjeh]hContext}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjeubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjcubh)}(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 }(hjehhhNhNubjF)}(h**gfp**h]hgfp}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjeubh flags permit.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjcubh)}(h **Return**h]jF)}(hjfh]hReturn}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjeubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjcubh)}(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 }(hjfhhhNhNubjF)}(h **limit**h]hlimit}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjfubh.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_alloc_cyclic (C function)c.xa_alloc_cyclichNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hjint xa_alloc_cyclic (struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, u32 *next, gfp_t gfp)h]jI)}(hiint xa_alloc_cyclic(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, u32 *next, gfp_t gfp)h](jO)}(hinth]hint}(hjWfhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjSfhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubja)}(h h]h }(hjffhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjSfhhhjefhMubj)}(hxa_alloc_cyclich]j)}(hxa_alloc_cyclich]hxa_alloc_cyclic}(hjxfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtfubah}(h]h ](jjeh"]h$]h&]hhuh1jhjSfhhhjefhMubj)}(hV(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, u32 *next, gfp_t gfp)h](j)}(hstruct xarray *xah](je)}(hjh]hstruct}(hjfhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjfubja)}(h h]h }(hjfhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjfubh)}(hhh]j)}(hxarrayh]hxarray}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjfmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jzfsbc.xa_alloc_cyclicasbuh1hhjfubja)}(h h]h }(hjfhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjfubjr)}(hjh]h*}(hjfhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjfubj)}(hxah]hxa}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjfubj)}(hu32 *idh](h)}(hhh]j)}(hu32h]hu32}(hj ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj gmodnameN classnameNjt%jw%)}jz%]jfc.xa_alloc_cyclicasbuh1hhjgubja)}(h h]h }(hj'ghhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjgubjr)}(hjh]h*}(hj5ghhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjgubj)}(hidh]hid}(hjBghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjfubj)}(h void *entryh](jO)}(hvoidh]hvoid}(hj[ghhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjWgubja)}(h h]h }(hjighhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjWgubjr)}(hjh]h*}(hjwghhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjWgubj)}(hentryh]hentry}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWgubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjfubj)}(hstruct xa_limit limith](je)}(hjh]hstruct}(hjghhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjgubja)}(h h]h }(hjghhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjgubh)}(hhh]j)}(hxa_limith]hxa_limit}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjgmodnameN classnameNjt%jw%)}jz%]jfc.xa_alloc_cyclicasbuh1hhjgubja)}(h h]h }(hjghhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjgubj)}(hlimith]hlimit}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjfubj)}(h u32 *nexth](h)}(hhh]j)}(hu32h]hu32}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjhmodnameN classnameNjt%jw%)}jz%]jfc.xa_alloc_cyclicasbuh1hhjgubja)}(h h]h }(hj!hhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjgubjr)}(hjh]h*}(hj/hhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjgubj)}(hnexth]hnext}(hjiubah}(h]h ]h"]h$]h&]uh1jhj"iubeh}(h]h ]h"]h$]h&]uh1jhj=ihMhjhubj)}(h``void *entry`` New entry. h](j)}(h``void *entry``h]j3)}(hjaih]h void *entry}(hjcihhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj_iubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj[iubj)}(hhh]h)}(h New entry.h]h New entry.}(hjzihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvihMhjwiubah}(h]h ]h"]h$]h&]uh1jhj[iubeh}(h]h ]h"]h$]h&]uh1jhjvihMhjhubj)}(h1``struct xa_limit limit`` Range of allocated ID. h](j)}(h``struct xa_limit limit``h]j3)}(hjih]hstruct xa_limit limit}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjiubah}(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]j3)}(hjih]h u32 *next}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjiubah}(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.}(hjihhhNhNubah}(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]j3)}(hj jh]h gfp_t gfp}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj jubah}(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.}(hj%jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!jhMhj"jubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhj!jhMhjhubeh}(h]h ]h"]h$]h&]uh1jhjhubh)}(h**Description**h]jF)}(hjGjh]h Description}(hjIjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjEjubah}(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 }(hj]jhhhNhNubjF)}(h**xa**h]hxa}(hjejhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj]jubh between }(hj]jhhhNhNubjF)}(h **limit.min**h]h limit.min}(hjwjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj]jubh and }(hj]jhhhNhNubjF)}(h **limit.max**h]h limit.max}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj]jubh, stores the index into the }(hj]jhhhNhNubjF)}(h**id**h]hid}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj]jubhb pointer, then stores the entry at that index. A concurrent lookup will not see an uninitialised }(hj]jhhhNhNubjF)}(h**id**h]hid}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj]jubh.. The search for an empty entry will start at }(hj]jhhhNhNubjF)}(h**next**h]hnext}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj]jubh# and will wrap around if necessary.}(hj]jhhhNhNubeh}(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]jF)}(hjjh]hContext}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjjubah}(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 }(hjkhhhNhNubjF)}(h**gfp**h]hgfp}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjkubh flags permit.}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjhubh)}(h **Return**h]jF)}(hj1kh]hReturn}(hj3khhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj/kubah}(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 }(hjGkhhhNhNubjF)}(h **limit**h]hlimit}(hjOkhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjGkubh.}(hjGkhhhNhNubeh}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_alloc_cyclic_bh (C function)c.xa_alloc_cyclic_bhhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hmint xa_alloc_cyclic_bh (struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, u32 *next, gfp_t gfp)h]jI)}(hlint xa_alloc_cyclic_bh(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, u32 *next, gfp_t gfp)h](jO)}(hinth]hint}(hjkhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjkhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubja)}(h h]h }(hjkhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjkhhhjkhMubj)}(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](je)}(hjh]hstruct}(hjkhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjkubja)}(h h]h }(hjkhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjkubh)}(hhh]j)}(hxarrayh]hxarray}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjkmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jksbc.xa_alloc_cyclic_bhasbuh1hhjkubja)}(h h]h }(hjlhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjkubjr)}(hjh]h*}(hjlhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjkubj)}(hxah]hxa}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjkubj)}(hu32 *idh](h)}(hhh]j)}(hu32h]hu32}(hj:lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7lubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj)}(hhh](jC)}(hnint xa_alloc_cyclic_irq (struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, u32 *next, gfp_t gfp)h]jI)}(hmint xa_alloc_cyclic_irq(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, u32 *next, gfp_t gfp)h](jO)}(hinth]hint}(hjphhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjphhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubja)}(h h]h }(hjphhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjphhhjphMubj)}(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](je)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjpubja)}(h h]h }(hjqhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjpubh)}(hhh]j)}(hxarrayh]hxarray}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjqmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jpsbc.xa_alloc_cyclic_irqasbuh1hhjpubja)}(h h]h }(hj4qhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjpubjr)}(hjh]h*}(hjBqhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjpubj)}(hxah]hxa}(hjOqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjpubj)}(hu32 *idh](h)}(hhh]j)}(hu32h]hu32}(hjkqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhqubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmqmodnameN classnameNjt%jw%)}jz%]j0qc.xa_alloc_cyclic_irqasbuh1hhjdqubja)}(h h]h }(hjqhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjdqubjr)}(hjh]h*}(hjqhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjdqubj)}(hidh]hid}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdqubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjpubj)}(h void *entryh](jO)}(hvoidh]hvoid}(hjqhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjqubja)}(h h]h }(hjqhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjqubjr)}(hjh]h*}(hjqhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjqubj)}(hentryh]hentry}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjpubj)}(hstruct xa_limit limith](je)}(hjh]hstruct}(hjqhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjqubja)}(h h]h }(hj rhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjqubh)}(hhh]j)}(hxa_limith]hxa_limit}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjrmodnameN classnameNjt%jw%)}jz%]j0qc.xa_alloc_cyclic_irqasbuh1hhjqubja)}(h h]h }(hj;rhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjqubj)}(hlimith]hlimit}(hjIrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjpubj)}(h u32 *nexth](h)}(hhh]j)}(hu32h]hu32}(hjerhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbrubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjgrmodnameN classnameNjt%jw%)}jz%]j0qc.xa_alloc_cyclic_irqasbuh1hhj^rubja)}(h h]h }(hjrhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj^rubjr)}(hjh]h*}(hjrhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj^rubj)}(hnexth]hnext}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^rubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjpubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjrmodnameN classnameNjt%jw%)}jz%]j0qc.xa_alloc_cyclic_irqasbuh1hhjrubja)}(h h]h }(hjrhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjrubj)}(hgfph]hgfp}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjpubeh}(h]h ]h"]h$]h&]hhuh1jhjphhhjphMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjphhhjphMubah}(h]jpah ](j j eh"]h$]h&]jj)jhuh1jBhjphMhjphhubj)}(hhh]h)}(h1Find somewhere to store this entry in the XArray.h]h1Find somewhere to store this entry in the XArray.}(hjshhhNhNubah}(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&]uh1jhjphhhjphMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6j(sj7j(sj8j9j:uh1j=hhhjhNhNubj<)}(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** Process context. Takes and releases the xa_lock while disabling interrupts. 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]jF)}(hj2sh]h Parameters}(hj4shhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj0subah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM hj,subj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]j3)}(hjQsh]hstruct xarray *xa}(hjSshhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjOsubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjKsubj)}(hhh]h)}(hXArray.h]hXArray.}(hjjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfshMhjgsubah}(h]h ]h"]h$]h&]uh1jhjKsubeh}(h]h ]h"]h$]h&]uh1jhjfshMhjHsubj)}(h``u32 *id`` Pointer to ID. h](j)}(h ``u32 *id``h]j3)}(hjsh]hu32 *id}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjsubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjsubj)}(hhh]h)}(hPointer to ID.h]hPointer to ID.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMhjsubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjshMhjHsubj)}(h``void *entry`` New entry. h](j)}(h``void *entry``h]j3)}(hjsh]h void *entry}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjsubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjsubj)}(hhh]h)}(h New entry.h]h New entry.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjshMhjsubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjshMhjHsubj)}(h1``struct xa_limit limit`` Range of allocated ID. h](j)}(h``struct xa_limit limit``h]j3)}(hjsh]hstruct xa_limit limit}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjsubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM hjsubj)}(hhh]h)}(hRange of allocated ID.h]hRange of allocated ID.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthM hjtubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjthM hjHsubj)}(h.``u32 *next`` Pointer to next ID to allocate. h](j)}(h ``u32 *next``h]j3)}(hj5th]h u32 *next}(hj7thhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj3tubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM hj/tubj)}(hhh]h)}(hPointer to next ID to allocate.h]hPointer to next ID to allocate.}(hjNthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJthM hjKtubah}(h]h ]h"]h$]h&]uh1jhj/tubeh}(h]h ]h"]h$]h&]uh1jhjJthM hjHsubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]j3)}(hjnth]h gfp_t gfp}(hjpthhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjltubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM hjhtubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthM hjtubah}(h]h ]h"]h$]h&]uh1jhjhtubeh}(h]h ]h"]h$]h&]uh1jhjthM hjHsubeh}(h]h ]h"]h$]h&]uh1jhj,subh)}(h**Description**h]jF)}(hjth]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjtubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM hj,subh)}(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 }(hjthhhNhNubjF)}(h**xa**h]hxa}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjtubh between }(hjthhhNhNubjF)}(h **limit.min**h]h limit.min}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjtubh and }(hjthhhNhNubjF)}(h **limit.max**h]h limit.max}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjtubh, stores the index into the }(hjthhhNhNubjF)}(h**id**h]hid}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjtubhb pointer, then stores the entry at that index. A concurrent lookup will not see an uninitialised }(hjthhhNhNubjF)}(h**id**h]hid}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjtubh.. The search for an empty entry will start at }(hjthhhNhNubjF)}(h**next**h]hnext}(hj!uhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjtubh# and will wrap around if necessary.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM hj,subh)}(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:uhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj,subh)}(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.}(hjIuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj,subh)}(h **Context**h]jF)}(hjZuh]hContext}(hj\uhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjXuubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj,subh)}(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 }(hjpuhhhNhNubjF)}(h**gfp**h]hgfp}(hjxuhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjpuubh flags permit.}(hjpuhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj,subh)}(h **Return**h]jF)}(hjuh]hReturn}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjuubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj,subh)}(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 }(hjuhhhNhNubjF)}(h **limit**h]hlimit}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjuubh.}(hjuhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj,subeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_reserve (C function) c.xa_reservehNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hBint xa_reserve (struct xarray *xa, unsigned long index, gfp_t gfp)h]jI)}(hAint xa_reserve(struct xarray *xa, unsigned long index, gfp_t gfp)h](jO)}(hinth]hint}(hjuhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjuhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM,ubja)}(h h]h }(hjuhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjuhhhjuhM,ubj)}(h xa_reserveh]j)}(h xa_reserveh]h xa_reserve}(hj vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ](jjeh"]h$]h&]hhuh1jhjuhhhjuhM,ubj)}(h3(struct xarray *xa, unsigned long index, gfp_t gfp)h](j)}(hstruct xarray *xah](je)}(hjh]hstruct}(hj'vhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhj#vubja)}(h h]h }(hj4vhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj#vubh)}(hhh]j)}(hxarrayh]hxarray}(hjEvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBvubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjGvmodnameN classnameNjt%jw%)}jz%]j}%)}jp%j vsb c.xa_reserveasbuh1hhj#vubja)}(h h]h }(hjevhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj#vubjr)}(hjh]h*}(hjsvhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj#vubj)}(hxah]hxa}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#vubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjvubj)}(hunsigned long indexh](jO)}(hunsignedh]hunsigned}(hjvhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjvubja)}(h h]h }(hjvhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjvubjO)}(hlongh]hlong}(hjvhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjvubja)}(h h]h }(hjvhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjvubj)}(hindexh]hindex}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjvubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjvmodnameN classnameNjt%jw%)}jz%]jav c.xa_reserveasbuh1hhjvubja)}(h h]h }(hj whhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjvubj)}(hgfph]hgfp}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjvubeh}(h]h ]h"]h$]h&]hhuh1jhjuhhhjuhM,ubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjuhhhjuhM,ubah}(h]juah ](j j eh"]h$]h&]jj)jhuh1jBhjuhM,hjuhhubj)}(hhh]h)}(h!Reserve this index in the XArray.h]h!Reserve this index in the XArray.}(hjCwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM,hj@whhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjuhM,ubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6j[wj7j[wj8j9j:uh1j=hhhjhNhNubj<)}(hX**Parameters** ``struct xarray *xa`` XArray. ``unsigned long index`` Index into array. ``gfp_t gfp`` Memory allocation flags. **Description** Ensures there is somewhere to store an entry at **index** in the array. If there is already something stored at **index**, this function does nothing. If there was nothing there, the entry is marked as reserved. Loading from a reserved entry returns a ``NULL`` pointer. If you do not use the entry that you have reserved, call xa_release() or xa_erase() to free any unnecessary memory. **Context** Any context. Takes and releases the xa_lock. May sleep if the **gfp** flags permit. **Return** 0 if the reservation succeeded or -ENOMEM if it failed.h](h)}(h**Parameters**h]jF)}(hjewh]h Parameters}(hjgwhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjcwubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM0hj_wubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]j3)}(hjwh]hstruct xarray *xa}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjwubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM-hj~wubj)}(hhh]h)}(hXArray.h]hXArray.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhM-hjwubah}(h]h ]h"]h$]h&]uh1jhj~wubeh}(h]h ]h"]h$]h&]uh1jhjwhM-hj{wubj)}(h*``unsigned long index`` Index into array. h](j)}(h``unsigned long index``h]j3)}(hjwh]hunsigned long index}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjwubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM.hjwubj)}(hhh]h)}(hIndex into array.h]hIndex into array.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhM.hjwubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjwhM.hj{wubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]j3)}(hjwh]h gfp_t gfp}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjwubah}(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&]uh1hhj xhM/hj xubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhj xhM/hj{wubeh}(h]h ]h"]h$]h&]uh1jhj_wubh)}(h**Description**h]jF)}(hj1xh]h Description}(hj3xhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj/xubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM1hj_wubh)}(hXEnsures there is somewhere to store an entry at **index** in the array. If there is already something stored at **index**, this function does nothing. If there was nothing there, the entry is marked as reserved. Loading from a reserved entry returns a ``NULL`` pointer.h](h0Ensures there is somewhere to store an entry at }(hjGxhhhNhNubjF)}(h **index**h]hindex}(hjOxhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjGxubh7 in the array. If there is already something stored at }(hjGxhhhNhNubjF)}(h **index**h]hindex}(hjaxhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjGxubh, this function does nothing. If there was nothing there, the entry is marked as reserved. Loading from a reserved entry returns a }(hjGxhhhNhNubj3)}(h``NULL``h]hNULL}(hjsxhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjGxubh pointer.}(hjGxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM1hj_wubh)}(hsIf you do not use the entry that you have reserved, call xa_release() or xa_erase() to free any unnecessary memory.h]hsIf you do not use the entry that you have reserved, call xa_release() or xa_erase() to free any unnecessary memory.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM6hj_wubh)}(h **Context**h]jF)}(hjxh]hContext}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjxubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM9hj_wub'h)}(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 }(hjxhhhNhNubjF)}(h**gfp**h]hgfp}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjxubh flags permit.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM9hj_wubh)}(h **Return**h]jF)}(hjxh]hReturn}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjxubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM<hj_wubh)}(h70 if the reservation succeeded or -ENOMEM if it failed.h]h70 if the reservation succeeded or -ENOMEM if it failed.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM;hj_wubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_reserve_bh (C function)c.xa_reserve_bhhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hEint xa_reserve_bh (struct xarray *xa, unsigned long index, gfp_t gfp)h]jI)}(hDint xa_reserve_bh(struct xarray *xa, unsigned long index, gfp_t gfp)h](jO)}(hinth]hint}(hjyhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjyhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMDubja)}(h h]h }(hj*yhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjyhhhj)yhMDubj)}(h xa_reserve_bhh]j)}(h xa_reserve_bhh]h xa_reserve_bh}(hjysbc.xa_reserve_bhasbuh1hhjTyubja)}(h h]h }(hjyhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjTyubjr)}(hjh]h*}(hjyhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjTyubj)}(hxah]hxa}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTyubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjPyubj)}(hunsigned long indexh](jO)}(hunsignedh]hunsigned}(hjyhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjyubja)}(h h]h }(hjyhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjyubjO)}(hlongh]hlong}(hjyhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjyubja)}(h h]h }(hjyhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjyubj)}(hindexh]hindex}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjPyubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj zmodnameN classnameNjt%jw%)}jz%]jyc.xa_reserve_bhasbuh1hhjzubja)}(h h]h }(hj)}(hhh](jC)}(hFint xa_reserve_irq (struct xarray *xa, unsigned long index, gfp_t gfp)h]jI)}(hEint xa_reserve_irq(struct xarray *xa, unsigned long index, gfp_t gfp)h](jO)}(hinth]hint}(hj{hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj{hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMVubja)}(h h]h }(hj|hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj{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](je)}(hjh]hstruct}(hj2|hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhj.|ubja)}(h h]h }(hj?|hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj.|ubh)}(hhh]j)}(hxarrayh]hxarray}(hjP|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM|ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjR|modnameN classnameNjt%jw%)}jz%]j}%)}jp%j|sbc.xa_reserve_irqasbuh1hhj.|ubja)}(h h]h }(hjp|hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj.|ubjr)}(hjh]h*}(hj~|hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj.|ubj)}(hxah]hxa}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.|ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj*|ubj)}(hunsigned long indexh](jO)}(hunsignedh]hunsigned}(hj|hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj|ubja)}(h h]h }(hj|hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj|ubjO)}(hlongh]hlong}(hj|hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj|ubja)}(h h]h }(hj|hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj|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&] refdomainj0reftypejp% reftargetj|modnameN classnameNjt%jw%)}jz%]jl|c.xa_reserve_irqasbuh1hhj|ubja)}(h h]h }(hj}hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj|ubj)}(hgfph]hgfp}(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&]hhjuh1jHjjhj{hhhj|hMVubah}(h]j{ah ](j j eh"]h$]h&]jj)jhuh1jBhj|hMVhj{hhubj)}(hhh]h)}(h!Reserve this index in the XArray.h]h!Reserve this index in the XArray.}(hjN}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMVhjK}hhubah}(h]h ]h"]h$]h&]uh1jhj{hhhj|hMVubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jf}j7jf}j8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjp}h]h Parameters}(hjr}hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjn}ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMZhjj}ubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]j3)}(hj}h]hstruct xarray *xa}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj}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]j3)}(hj}h]hunsigned long index}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj}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]j3)}(hj~h]h gfp_t gfp}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj}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&]uh1jhjj}ubh)}(h**Description**h]jF)}(hj<~h]h Description}(hj>~hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj:~ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM[hjj}ubh)}(h/An interrupt-disabling version of xa_reserve().h]h/An interrupt-disabling version of xa_reserve().}(hjR~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM[hjj}ubh)}(h **Context**h]jF)}(hjc~h]hContext}(hje~hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhja~ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM]hjj}ubh)}(hLProcess context. Takes and releases the xa_lock while disabling interrupts.h]hLProcess context. Takes and releases the xa_lock while disabling interrupts.}(hjy~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM]hjj}ubh)}(h **Return**h]jF)}(hj~h]hReturn}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj~ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM`hjj}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_hjj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_release (C function) c.xa_releasehNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h8void xa_release (struct xarray *xa, unsigned long index)h]jI)}(h7void xa_release(struct xarray *xa, unsigned long index)h](jO)}(hvoidh]hvoid}(hj~hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj~hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhubja)}(h h]h }(hj~hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj~hhhj~hMhubj)}(h xa_releaseh]j)}(h xa_releaseh]h xa_release}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj~hhhj~hMhubj)}(h((struct xarray *xa, unsigned long index)h](j)}(hstruct xarray *xah](je)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxarrayh]hxarray}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj,modnameN classnameNjt%jw%)}jz%]j}%)}jp%j~sb c.xa_releaseasbuh1hhjubja)}(h h]h }(hjJhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjXhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hxah]hxa}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long indexh](jO)}(hunsignedh]hunsigned}(hj~hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjzubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjzubjO)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjzubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjzubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhj~hhhj~hMhubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhj~hhhj~hMhubah}(h]j~ah ](j j eh"]h$]h&]jj)jhuh1jBhj~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&]uh1jhj~hhhj~hMhubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hj!h]hstruct xarray *xa}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMihjubj)}(hhh]h)}(hXArray.h]hXArray.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMihj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hMihjubj)}(h(``unsigned long index`` Index of entry. h](j)}(h``unsigned long index``h]j3)}(hjZh]hunsigned long index}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjXubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMjhjTubj)}(hhh]h)}(hIndex of entry.h]hIndex of entry.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMjhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohMjhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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 }(hjhhhNhNubjF)}(h **index**h]hindex}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh3 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.hhMlhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_is_sibling (C function)c.xa_is_siblinghNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h&bool xa_is_sibling (const void *entry)h]jI)}(h%bool xa_is_sibling(const void *entry)h](jO)}(hjh]hbool}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhMubj)}(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&]hhuh1jhjhhhjhMubj)}(h(const void *entry)h]j)}(hconst void *entryh](je)}(hjhh]hconst}(hj(hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhj$ubja)}(h h]h }(hj5hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj$ubjO)}(hvoidh]hvoid}(hjChhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj$ubja)}(h h]h }(hjQhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj$ubjr)}(hjh]h*}(hj_hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj$ubj)}(hentryh]hentry}(hjlhhhNhNubah}(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&]hhjuh1jHjjhjhhhjhMubah}(h]j߀ah ](j j eh"]h$]h&]jj)jhuh1jBhjhMhjhhubj)}(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&]uh1jhjhhhjhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(h~**Parameters** ``const void *entry`` Entry retrieved from the XArray **Return** ``true`` if the entry is a sibling entry.h](h)}(h**Parameters**h]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM hjubj)}(hhh]j)}(h6``const void *entry`` Entry retrieved from the XArray h](j)}(h``const void *entry``h]j3)}(hjׁh]hconst void *entry}(hjفhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjՁ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 the XArrayh]hEntry retrieved from the XArray}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjсubeh}(h]h ]h"]h$]h&]uh1jhjhMhj΁ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]jF)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM hjubh)}(h)``true`` if the entry is a sibling entry.h](j3)}(h``true``h]htrue}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj(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 hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_is_retry (C function) c.xa_is_retryhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h$bool xa_is_retry (const void *entry)h]jI)}(h#bool xa_is_retry(const void *entry)h](jO)}(hjh]hbool}(hjehhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjahhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubja)}(h h]h }(hjshhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjahhhjrhMubj)}(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&]hhuh1jhjahhhjrhMubj)}(h(const void *entry)h]j)}(hconst void *entryh](je)}(hjhh]hconst}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjʂhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hj؂hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjahhhjrhMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhj]hhhjrhMubah}(h]jXah ](j j eh"]h$]h&]jj)jhuh1jBhjrhMhjZhhubj)}(hhh]h)}(hIs the entry a retry entry?h]hIs the entry a retry entry?}(hjhhhNhNubah}(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&]uh1jhjZhhhjrhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6j'j7j'j8j9j:uh1j=hhhjhNhNubj<)}(h|**Parameters** ``const void *entry`` Entry retrieved from the XArray **Return** ``true`` if the entry is a retry entry.h](h)}(h**Parameters**h]jF)}(hj1h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj/ubah}(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]j3)}(hjPh]hconst void *entry}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjJubj)}(hhh]h)}(hEntry retrieved from the XArrayh]hEntry retrieved from the XArray}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehMhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubh)}(h **Return**h]jF)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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](j3)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh 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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_is_advanced (C function)c.xa_is_advancedhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h'bool xa_is_advanced (const void *entry)h]jI)}(h&bool xa_is_advanced(const void *entry)h](jO)}(hjh]hbool}(hjރhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjڃhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjڃhhhjhMubj)}(hxa_is_advancedh]j)}(hxa_is_advancedh]hxa_is_advanced}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjڃhhhjhMubj)}(h(const void *entry)h]j)}(hconst void *entryh](je)}(hjhh]hconst}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hj'hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjO)}(hvoidh]hvoid}(hj5hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjChhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjQhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hentryh]hentry}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjڃhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjփhhhjhMubah}(h]jуah ](j j eh"]h$]h&]jj)jhuh1jBhjhMhjӃhhubj)}(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&]uh1jhjӃhhhjhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hjɄh]hconst void *entry}(hj˄hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjDŽ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&]uh1hhjބhM hj߄ubah}(h]h ]h"]h$]h&]uh1jhjÄubeh}(h]h ]h"]h$]h&]uh1jhjބhM hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]jF)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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](j3)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh1 if the entry cannot be stored by the normal API.}(hjhhhNhNubeh}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_update_node_t (C macro)c.xa_update_node_thNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hxa_update_node_th]jI)}(hxa_update_node_th]j)}(hxa_update_node_th]j)}(hjQh]hxa_update_node_t}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](jjeh"]h$]h&]hhuh1jhjShhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM*ubah}(h]h ]h"]h$]h&]hhjuh1jHjjhjOhhhjnhM*ubah}(h]jJah ](j j eh"]h$]h&]jj)jhuh1jBhjnhM*hjLhhubj)}(hhh]h)}(h1**Typedef**: A callback function from the XArray.h](jF)}(h **Typedef**h]hTypedef}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj~ubh&: A callback function from the XArray.}(hj~hhhNhNubeh}(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&]uh1jhjLhhhjnhM*ubeh}(h]h ](j0macroeh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubh)}(h **Syntax**h]jF)}(hjh]hSyntax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM/hjhhubj )}(h1``void xa_update_node_t (struct xa_node *node)`` h]h)}(h0``void xa_update_node_t (struct xa_node *node)``h]j3)}(hjƅh]h,void xa_update_node_t (struct xa_node *node)}(hjȅhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjąubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM1hjubah}(h]h ]h"]h$]h&]uh1j hjۅhM1hjhhubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hjh]hstruct xa_node *node}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM+hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM+hjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jF)}(hjBh]h Description}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj@ubah}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM-hjubh)}(h **Context**h]jF)}(hjih]hContext}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjgubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM1hjubh)}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9XA_STATE (C macro) c.XA_STATEhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hXA_STATEh]jI)}(hXA_STATEh]j)}(hXA_STATEh]j)}(hjh]hXA_STATE}(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.hhMmubah}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhjņhMmubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjņhMmhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjņhMmubeh}(h]h ](j0macroeh"]h$]h&]j5j0j6jކj7jކj8j9j:uh1j=hhhjhNhNubh)}(h!``XA_STATE (name, array, index)``h]j3)}(hjh]hXA_STATE (name, array, index)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMohjhhubj )}(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 hMmhjhhubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMqhjubj)}(hhh](j)}(h5``name`` Name of this operation state (usually xas). h](j)}(h``name``h]j3)}(hj8h]hname}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj6ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMnhj2ubj)}(hhh]h)}(h+Name of this operation state (usually xas).h]h+Name of this operation state (usually xas).}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhMnhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMnhj/ubj)}(h``array`` Array to operate on. h](j)}(h ``array``h]j3)}(hjqh]harray}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjoubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMohjkubj)}(hhh]h)}(hArray to operate on.h]hArray to operate on.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMohjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhMohj/ubj)}(h%``index`` Initial index of interest. h](j)}(h ``index``h]j3)}(hjh]hindex}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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&]uh1hhjhMphjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMphj/ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMrhjubh)}(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.hhMrhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9XA_STATE_ORDER (C macro)c.XA_STATE_ORDERhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hXA_STATE_ORDERh]jI)}(hXA_STATE_ORDERh]j)}(hXA_STATE_ORDERh]j)}(hj$h]hXA_STATE_ORDER}(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.hhMxubah}(h]h ]h"]h$]h&]hhjuh1jHjjhj"hhhjAhMxubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjAhMxhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjAhMxubeh}(h]h ](j0macroeh"]h$]h&]j5j0j6jZj7jZj8j9j:uh1j=hhhjhNhNubh)}(h.``XA_STATE_ORDER (name, array, index, order)``h]j3)}(hj`h]h*XA_STATE_ORDER (name, array, index, order)}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj^ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMzhjhhubj )}(h#Declare an XArray operation state. h]h)}(h"Declare an XArray operation state.h]h"Declare an XArray operation state.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMxhjvubah}(h]h ]h"]h$]h&]uh1j hjhMxhjhhubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hjh]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMyhjubj)}(hhh]h)}(h+Name of this operation state (usually xas).h]h+Name of this operation state (usually xas).}(hj͈hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjɈhMyhjʈubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjɈhMyhjubj)}(h``array`` Array to operate on. h](j)}(h ``array``h]j3)}(hjh]harray}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]j3)}(hj&h]hindex}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj$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)}(hInitial index of interest.h]hInitial index of interest.}(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``order`` Order of entry. h](j)}(h ``order``h]j3)}(hj_h]horder}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj]ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM|hjYubj)}(hhh]h)}(hOrder of entry.h]hOrder of entry.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthM|hjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthM|hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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.`}(hjhhhNhNubah}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_error (C function) c.xas_errorhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h*int xas_error (const struct xa_state *xas)h]jI)}(h)int xas_error(const struct xa_state *xas)h](jO)}(hinth]hint}(hj߉hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjۉhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjۉhhhjhMubj)}(h xas_errorh]j)}(h xas_errorh]h xas_error}(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](je)}(hjhh]hconst}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hj)hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubje)}(hjh]hstruct}(hj7hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjDhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjWmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jsb c.xas_errorasbuh1hhjubja)}(h h]h }(hjuhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(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&]hhjuh1jHjjhj׉hhhjhMubah}(h]j҉ah ](j j eh"]h$]h&]jj)jhuh1jBhjhMhjԉhhubj)}(hhh]h)}(h'Return an errno stored in the xa_state.h]h'Return an errno stored 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&]uh1jhjԉhhhjhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jҊj7jҊj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hj܊h]h Parameters}(hjފhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjڊ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]j3)}(hjh]hconst struct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]jF)}(hj6h]hReturn}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj4ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj֊ubh)}(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.}(hjLhhhNhNubah}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_set_err (C function) c.xas_set_errhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h1void xas_set_err (struct xa_state *xas, long err)h]jI)}(h0void xas_set_err(struct xa_state *xas, long err)h](jO)}(hvoidh]hvoid}(hj{hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjwhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjwhhhjhMubj)}(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&]hhuh1jhjwhhhjhMubj)}(h (struct xa_state *xas, long err)h](j)}(hstruct xa_state *xash](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjŋhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hj֋hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӋubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj؋modnameN classnameNjt%jw%)}jz%]j}%)}jp%jsb c.xas_set_errasbuh1hhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hxash]hxas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hlong errh](jO)}(hlongh]hlong}(hj*hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj&ubja)}(h h]h }(hj8hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj&ubj)}(herrh]herr}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjwhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjshhhjhMubah}(h]jnah ](j j eh"]h$]h&]jj)jhuh1jBhjhMhjphhubj)}(hhh]h)}(hNote an error in the xa_state.h]hNote an error in the xa_state.}(hjphhhNhNubah}(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&]uh1jhjphhhjhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hjh]hstruct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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ƌhMhjnjubah}(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]j3)}(hjh]hlong err}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]jF)}(hj%h]h Description}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj#ubah}(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 }(hj;hhhNhNubjF)}(h**err**h]herr}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj;ubh; 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().}(hj;hhhNhNubeh}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_invalid (C function) c.xas_invalidhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h-bool xas_invalid (const struct xa_state *xas)h]jI)}(h,bool xas_invalid(const struct xa_state *xas)h](jO)}(hjh]hbool}(hj|hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjxhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjxhhhjhMubj)}(h xas_invalidh]j)}(h xas_invalidh]h xas_invalid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjxhhhjhMubj)}(h(const struct xa_state *xas)h]j)}(hconst struct xa_state *xash](je)}(hjhh]hconst}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjōhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubje)}(hjh]hstruct}(hjӍhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jsb c.xas_invalidasbuh1hhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hxash]hxas}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjxhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjthhhjhMubah}(h]joah ](j j eh"]h$]h&]jj)jhuh1jBhjhMhjqhhubj)}(hhh]h)}(h%Is the xas in a retry or error state?h]h%Is the xas in a retry or error state?}(hjVhhhNhNubah}(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&]uh1jhjqhhhjhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jnj7jnj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjxh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjvubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjrubj)}(hhh]j)}(h7``const struct xa_state *xas`` XArray operation state. h](j)}(h``const struct xa_state *xas``h]j3)}(hjh]hconst struct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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&]uh1jhjrubh)}(h **Return**h]jF)}(hjҎh]hReturn}(hjԎhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjЎubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjrubh)}(h2``true`` if the xas cannot be used for operations.h](j3)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh* 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.hhMhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_valid (C function) c.xas_validhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h+bool xas_valid (const struct xa_state *xas)h]jI)}(h*bool xas_valid(const struct xa_state *xas)h](jO)}(hjh]hbool}(hj%hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj!hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubja)}(h h]h }(hj3hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj!hhhj2hMubj)}(h xas_validh]j)}(h xas_validh]h xas_valid}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](jjeh"]h$]h&]hhuh1jhj!hhhj2hMubj)}(h(const struct xa_state *xas)h]j)}(hconst struct xa_state *xash](je)}(hjhh]hconst}(hjahhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhj]ubja)}(h h]h }(hjnhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj]ubje)}(hjh]hstruct}(hj|hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhj]ubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj]ubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jGsb c.xas_validasbuh1hhj]ubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj]ubjr)}(hjh]h*}(hjȏhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj]ubj)}(hxash]hxas}(hjՏhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjYubah}(h]h ]h"]h$]h&]hhuh1jhj!hhhj2hMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhj2hMubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhj2hMhjhhubj)}(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&]uh1jhjhhhj2hMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hj!h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hj@h]hconst struct xa_state *xas}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj>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.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMhj7ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]jF)}(hj{h]hReturn}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjyubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubh)}(h/``true`` if the xas can be used for operations.h](j3)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh' 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.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_is_node (C function) c.xas_is_nodehNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h-bool xas_is_node (const struct xa_state *xas)h]jI)}(h,bool xas_is_node(const struct xa_state *xas)h](jO)}(hjh]hbool}(hjΐhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjʐhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubja)}(h h]h }(hjܐhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjʐhhhjېhMubj)}(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ʐhhhjېhMubj)}(h(const struct xa_state *xas)h]j)}(hconst struct xa_state *xash](je)}(hjhh]hconst}(hj hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubje)}(hjh]hstruct}(hj%hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hj2hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjEmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jsb c.xas_is_nodeasbuh1hhjubja)}(h h]h }(hjchhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjqhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hxash]hxas}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjʐhhhjېhMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjƐhhhjېhMubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjېhMhjÐ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&]uh1jhjÐhhhjېhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(h**Parameters** ``const struct xa_state *xas`` XArray operation state. **Return** ``true`` if the xas currently references a node.h](h)}(h**Parameters**h]jF)}(hjʑh]h Parameters}(hj̑hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjȑ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]j3)}(hjh]hconst struct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]jF)}(hj$h]hReturn}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj"ubah}(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](j3)}(h``true``h]htrue}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj:ubh( if the xas currently references a node.}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_reset (C function) c.xas_resethNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h%void xas_reset (struct xa_state *xas)h]jI)}(h$void xas_reset(struct xa_state *xas)h](jO)}(hvoidh]hvoid}(hjwhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjshhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjshhhjhMubj)}(h xas_reseth]j)}(h xas_reseth]h xas_reset}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjshhhjhMubj)}(h(struct xa_state *xas)h]j)}(hstruct xa_state *xash](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjҒhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϒubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjԒmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jsb c.xas_resetasbuh1hhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hxash]hxas}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjshhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjohhhjhMubah}(h]jjah ](j j eh"]h$]h&]jj)jhuh1jBhjhMhjlhhubj)}(hhh]h)}(h Reset an XArray operation state.h]h Reset an XArray operation state.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj4hhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jOj7jOj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjYh]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjWubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjSubj)}(hhh]j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]j3)}(hjxh]hstruct xa_state *xas}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjvubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjrubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhjoubah}(h]h ]h"]h$]h&]uh1jhjSubh)}(h**Description**h]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjSubh)}(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ɓhhhNhNubjF)}(h**xas**h]hxas}(hjѓhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjɓ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.hhMhjSubh)}(h **Context**h]jF)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjSubh)}(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.hhMhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_retry (C function) c.xas_retryhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h8bool xas_retry (struct xa_state *xas, const void *entry)h]jI)}(h7bool xas_retry(struct xa_state *xas, const void *entry)h](jO)}(hjh]hbool}(hj1hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj-hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubja)}(h h]h }(hj?hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj-hhhj>hMubj)}(h xas_retryh]j)}(h xas_retryh]h xas_retry}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ](jjeh"]h$]h&]hhuh1jhj-hhhj>hMubj)}(h)(struct xa_state *xas, const void *entry)h](j)}(hstruct xa_state *xash](je)}(hjh]hstruct}(hjmhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjiubja)}(h h]h }(hjzhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjiubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jSsb c.xas_retryasbuh1hhjiubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjiubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjiubj)}(hxash]hxas}(hjƔhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjeubj)}(hconst void *entryh](je)}(hjhh]hconst}(hjߔhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhj۔ubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj۔ubjO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj۔ubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj۔ubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj۔ubj)}(hentryh]hentry}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj۔ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjeubeh}(h]h ]h"]h$]h&]hhuh1jhj-hhhj>hMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhj)hhhj>hMubah}(h]j$ah ](j j eh"]h$]h&]jj)jhuh1jBhj>hMhj&hhubj)}(hhh]h)}(h#Retry the operation if appropriate.h]h#Retry the operation if appropriate.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjJhhubah}(h]h ]h"]h$]h&]uh1jhj&hhhj>hMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jej7jej8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjoh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjmubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjiubj)}(hhh](j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]j3)}(hjh]hstruct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]j3)}(hjǕh]hconst void *entry}(hjɕhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjŕubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubj)}(hhh]h)}(hEntry from xarray.h]hEntry from xarray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjܕhMhjݕubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjܕhMhjubeh}(h]h ]h"]h$]h&]uh1jhjiubh)}(h**Description**h]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjiubh)}(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 }(hjhhhNhNubjF)}(h**xas**h]hxas}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh: to restart the walk from the head of the array if needed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjiubh)}(h **Context**h]jF)}(hj;h]hContext}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj9ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjiubh)}(h Any context.h]h Any context.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjiubh)}(h **Return**h]jF)}(hjbh]hReturn}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj`ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjiubh)}(h*true if the operation needs to be retried.h]h*true if the operation needs to be retried.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_reload (C function) c.xas_reloadhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h(void * xas_reload (struct xa_state *xas)h]jI)}(h&void *xas_reload(struct xa_state *xas)h](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMAubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhMAubjr)}(hjh]h*}(hjĖhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjhhhjhMAubj)}(h xas_reloadh]j)}(h xas_reloadh]h xas_reload}(hjՖhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjіubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMAubj)}(h(struct xa_state *xas)h]j)}(hstruct xa_state *xash](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jזsb c.xas_reloadasbuh1hhjubja)}(h h]h }(hj/hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hj=hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hxash]hxas}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMAubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhjhMAubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjhMAhjhhubj)}(hhh]h)}(h!Refetch an entry from the xarray.h]h!Refetch an entry from the xarray.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMAhjqhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMAubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hjh]hstruct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMBhjubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjΗhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjʗhMBhj˗ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjʗhMBhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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.hhMDhjubh)}(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 }(hjhhhNhNubjF)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubhU is still valid. If it may be in an error or restart state, call xas_load() instead.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMIhjubh)}(h **Return**h]jF)}(hj8h]hReturn}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj6ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMLhjubh)}(h)The entry at this location in the xarray.h]h)The entry at this location in the xarray.}(hjNhhhNhNubah}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_set (C function) c.xas_sethNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h8void xas_set (struct xa_state *xas, unsigned long index)h]jI)}(h7void xas_set(struct xa_state *xas, unsigned long index)h](jO)}(hvoidh]hvoid}(hj}hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjyhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMcubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjyhhhjhMcubj)}(hxas_seth]j)}(hxas_seth]hxas_set}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjyhhhjhMcubj)}(h+(struct xa_state *xas, unsigned long index)h](j)}(hstruct xa_state *xash](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjǘhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjؘhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj՘ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjژmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jsb c.xas_setasbuh1hhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hxash]hxas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long indexh](jO)}(hunsignedh]hunsigned}(hj,hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj(ubja)}(h h]h }(hj:hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj(ubjO)}(hlongh]hlong}(hjHhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj(ubja)}(h h]h }(hjVhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj(ubj)}(hindexh]hindex}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjyhhhjhMcubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjuhhhjhMcubah}(h]jpah ](j j eh"]h$]h&]jj)jhuh1jBhjhMchjrhhubj)}(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&]uh1jhjrhhhjhMcubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hjϙh]hstruct xa_state *xas}(hjљhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj͙ubah}(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]j3)}(hjh]hunsigned long index}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMehjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMehjƙubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jF)}(hjCh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjAubah}(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.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMghjubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_advance (C function) c.xas_advancehNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h)}(hhh](jC)}(hRvoid xas_set_order (struct xa_state *xas, unsigned long index, unsigned int order)h]jI)}(hQvoid xas_set_order(struct xa_state *xas, unsigned long index, unsigned int order)h](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhMubj)}(h xas_set_orderh]j)}(h xas_set_orderh]h xas_set_order}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMubj)}(h?(struct xa_state *xas, unsigned long index, unsigned int order)h](j)}(hstruct xa_state *xash](je)}(hjh]hstruct}(hjМhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhj̜ubja)}(h h]h }(hjݜhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj̜ubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jsbc.xas_set_orderasbuh1hhj̜ubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj̜ubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj̜ubj)}(hxash]hxas}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̜ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjȜubj)}(hunsigned long indexh](jO)}(hunsignedh]hunsigned}(hjBhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj>ubja)}(h h]h }(hjPhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj>ubjO)}(hlongh]hlong}(hj^hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj>ubja)}(h h]h }(hjlhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj>ubj)}(hindexh]hindex}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjȜubj)}(hunsigned int orderh](jO)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjO)}(hinth]hint}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubj)}(horderh]horder}(hj˝hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjȜubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhjhMubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjhMhjhhubj)}(hhh]h)}(h4Set up XArray operation state for a multislot entry.h]h4Set up XArray operation state for a multislot 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&]uh1jhjhhhjhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6j j7j j8j9j:uh1j=hhhjhNhNubj<)}(h**Parameters** ``struct xa_state *xas`` XArray operation state. ``unsigned long index`` Target of the operation. ``unsigned int order`` Entry occupies 2^**order** indices.h](h)}(h**Parameters**h]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hj6h]hstruct xa_state *xas}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj4ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj0ubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhMhj-ubj)}(h1``unsigned long index`` Target of the operation. h](j)}(h``unsigned long index``h]j3)}(hjoh]hunsigned long index}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjmubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjiubj)}(hhh]h)}(hTarget of the operation.h]hTarget of the operation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhMhj-ubj)}(h:``unsigned int order`` Entry occupies 2^**order** indices.h](j)}(h``unsigned int order``h]j3)}(hjh]hunsigned int order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubj)}(hhh]h)}(h#Entry occupies 2^**order** indices.h]h#Entry occupies 2^**order** indices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj-ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_set_update (C function)c.xas_set_updatehNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hCvoid xas_set_update (struct xa_state *xas, xa_update_node_t update)h]jI)}(hBvoid xas_set_update(struct xa_state *xas, xa_update_node_t update)h](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhMubj)}(hxas_set_updateh]j)}(hxas_set_updateh]hxas_set_update}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMubj)}(h/(struct xa_state *xas, xa_update_node_t update)h](j)}(hstruct xa_state *xash](je)}(hjh]hstruct}(hj?hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhj;ubja)}(h h]h }(hjLhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj;ubh)}(hhh]j)}(hxa_stateh]hxa_state}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj_modnameN classnameNjt%jw%)}jz%]j}%)}jp%j%sbc.xas_set_updateasbuh1hhj;ubja)}(h h]h }(hj}hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj;ubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj;ubj)}(hxash]hxas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj7ubj)}(hxa_update_node_t updateh](h)}(hhh]j)}(hxa_update_node_th]hxa_update_node_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]jyc.xas_set_updateasbuh1hhjubja)}(h h]h }(hjҟhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubj)}(hupdateh]hupdate}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj7ubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhjhMubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjhMhjhhubj)}(hhh]h)}(h-Set up XArray operation state for a callback.h]h-Set up XArray operation state for a callback.}(hj hhhNhNubah}(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&]uh1jhjhhhjhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6j"j7j"j8j9j:uh1j=hhhjhNhNubj<)}(hX.**Parameters** ``struct xa_state *xas`` XArray operation state. ``xa_update_node_t update`` Function to call when updating a node. **Description** The 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](h)}(h**Parameters**h]jF)}(hj,h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj*ubah}(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]j3)}(hjKh]hstruct xa_state *xas}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjIubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjEubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMhjBubj)}(hC``xa_update_node_t update`` Function to call when updating a node. h](j)}(h``xa_update_node_t update``h]j3)}(hjh]hxa_update_node_t update}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj~ubj)}(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&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjBubeh}(h]h ]h"]h$]h&]uh1jhj&ubh)}(h**Description**h]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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.}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_next_entry (C function)c.xas_next_entryhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h?void * xas_next_entry (struct xa_state *xas, unsigned long max)h]jI)}(h=void *xas_next_entry(struct xa_state *xas, unsigned long max)h](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhMubjr)}(hjh]h*}(hj!hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjhhhjhMubj)}(hxas_next_entryh]j)}(hxas_next_entryh]hxas_next_entry}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMubj)}(h)(struct xa_state *xas, unsigned long max)h](j)}(hstruct xa_state *xash](je)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjJubja)}(h h]h }(hj[hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjJubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjnmodnameN classnameNjt%jw%)}jz%]j}%)}jp%j4sbc.xas_next_entryasbuh1hhjJubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjJubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjJubj)}(hxash]hxas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjFubj)}(hunsigned long maxh](jO)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjΡhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjO)}(hlongh]hlong}(hjܡhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubj)}(hmaxh]hmax}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjFubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhjhMubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjhMhjhhubj)}(hhh]h)}(h'Advance iterator to next present entry.h]h'Advance iterator to next present entry.}(hj"hhhNhNubah}(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&]uh1jhjhhhjhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6j:j7j:j8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjDh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjBubah}(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]j3)}(hjch]hstruct xa_state *xas}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjaubah}(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&]uh1hhjxhMhjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjZubj)}(h/``unsigned long max`` Highest index to return. h](j)}(h``unsigned long max``h]j3)}(hjh]hunsigned long max}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjZubeh}(h]h ]h"]h$]h&]uh1jhj>ubh)}(h**Description**h]jF)}(hjעh]h Description}(hj٢hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjբubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj>ubh)}(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.hhMhj>ubh)}(h **Return**h]jF)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj>ubh)}(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 }(hjhhhNhNubjF)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh.}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_next_marked (C function)c.xas_next_markedhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hPvoid * xas_next_marked (struct xa_state *xas, unsigned long max, xa_mark_t mark)h]jI)}(hNvoid *xas_next_marked(struct xa_state *xas, unsigned long max, xa_mark_t mark)h](jO)}(hvoidh]hvoid}(hjUhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjQhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMubja)}(h h]h }(hjdhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjQhhhjchMubjr)}(hjh]h*}(hjrhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjQhhhjchMubj)}(hxas_next_markedh]j)}(hxas_next_markedh]hxas_next_marked}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjQhhhjchMubj)}(h9(struct xa_state *xas, unsigned long max, xa_mark_t mark)h](j)}(hstruct xa_state *xash](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jsbc.xas_next_markedasbuh1hhjubja)}(h h]h }(hjݣhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hxash]hxas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long maxh](jO)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj ubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj ubjO)}(hlongh]hlong}(hj-hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj ubja)}(h h]h }(hj;hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj ubj)}(hmaxh]hmax}(hjIhhhNhNubah}(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}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjgmodnameN classnameNjt%jw%)}jz%]j٣c.xas_next_markedasbuh1hhj^ubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj^ubj)}(hmarkh]hmark}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjQhhhjchMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjMhhhjchMubah}(h]jHah ](j j eh"]h$]h&]jj)jhuh1jBhjchMhjJhhubj)}(hhh]h)}(h&Advance iterator to next marked entry.h]h&Advance iterator to next marked 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&]uh1jhjJhhhjchMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jӤj7jӤj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjݤh]h Parameters}(hjߤhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjۤubah}(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]j3)}(hjh]hstruct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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/``unsigned long max`` Highest index to return. h](j)}(h``unsigned long max``h]j3)}(hj5h]hunsigned long max}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj3ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhj/ubj)}(hhh]h)}(hHighest index to return.h]hHighest index to return.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjubj)}(h'``xa_mark_t mark`` Mark to search for. h](j)}(h``xa_mark_t mark``h]j3)}(hjnh]hxa_mark_t mark}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjlubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjhubj)}(hhh]h)}(hMark to search for.h]hMark to search for.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjפubh)}(h**Description**h]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjפubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjפubh)}(h **Return**h]jF)}(hjХh]hReturn}(hjҥhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjΥubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjפubh)}(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 }(hjhhhNhNubjF)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh.}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_for_each (C macro)c.xas_for_eachhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h xas_for_eachh]jI)}(h xas_for_eachh]j)}(h xas_for_eachh]j)}(hj!h]h xas_for_each}(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&]hhjuh1jHjjhjhhhj>hM ubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhj>hM hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj>hM ubeh}(h]h ](j0macroeh"]h$]h&]j5j0j6jWj7jWj8j9j:uh1j=hhhjhNhNubh)}(h"``xas_for_each (xas, entry, max)``h]j3)}(hj]h]hxas_for_each (xas, entry, max)}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj[ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjhhubj )}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM hjsubah}(h]h ]h"]h$]h&]uh1j hjhM hjhhubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hjh]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]j3)}(hjh]hentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]j3)}(hj#h]hmax}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj!ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjubj)}(hhh]h)}(h%Maximum index to retrieve from array.h]h%Maximum index to retrieve from array.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jF)}(hj^h]h Description}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj\ubah}(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 }(hjthhhNhNubjF)}(h**max**h]hmax}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjtubh. }(hjthhhNhNubjF)}(h **entry**h]hentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjtubh 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.}(hjthhhNhNubeh}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_for_each_marked (C macro)c.xas_for_each_markedhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hxas_for_each_markedh]jI)}(hxas_for_each_markedh]j)}(hxas_for_each_markedh]j)}(hjh]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&]hhjuh1jHjjhjhhhjާhMubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjާhMhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjާhMubeh}(h]h ](j0macroeh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubh)}(h/``xas_for_each_marked (xas, entry, max, mark)``h]j3)}(hjh]h+xas_for_each_marked (xas, entry, max, mark)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM hjhhubj )}(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.hhMhjubah}(h]h ]h"]h$]h&]uh1j hj%hMhjhhubj<)}(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]jF)}(hj2h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj0ubah}(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]j3)}(hjQh]hxas}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjOubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMhjKubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjHubj)}(h*``entry`` Entry retrieved from the array. h](j)}(h ``entry``h]j3)}(hjh]hentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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 hjHubj)}(h.``max`` Maximum index to retrieve from array. h](j)}(h``max``h]j3)}(hjèh]hmax}(hjŨhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM!hjubj)}(hhh]h)}(h%Maximum index to retrieve from array.h]h%Maximum index to retrieve from array.}(hjܨhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjبhM!hj٨ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjبhM!hjHubj)}(h``mark`` Mark to search for. h](j)}(h``mark``h]j3)}(hjh]hmark}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM"hjubj)}(hhh]h)}(hMark to search for.h]hMark to search for.}(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]jF)}(hj7h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj5ubah}(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 }(hjMhhhNhNubjF)}(h**max**h]hmax}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjMubh. }(hjMhhhNhNubjF)}(h **entry**h]hentry}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjMubh 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.}(hjMhhhNhNubeh}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_for_each_conflict (C macro)c.xas_for_each_conflicthNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hxas_for_each_conflicth]jI)}(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&]hhjuh1jHjjhjhhhjhM0ubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjhM0hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM0ubeh}(h]h ](j0macroeh"]h$]h&]j5j0j6jЩj7jЩj8j9j:uh1j=hhhjhNhNubh)}(h&``xas_for_each_conflict (xas, entry)``h]j3)}(hj֩h]h"xas_for_each_conflict (xas, entry)}(hjةhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjԩubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM2hjhhubj )}(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 hjhM0hjhhubj<)}(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]jF)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj ubah}(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]j3)}(hj*h]hxas}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj(ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM1hj$ubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hM1hj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hM1hj!ubj)}(h*``entry`` Entry retrieved from the array. h](j)}(h ``entry``h]j3)}(hjch]hentry}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjaubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM2hj]ubj)}(hhh]h)}(hEntry retrieved from the array.h]hEntry retrieved from the array.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhM2hjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhM2hj!ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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 }(hjhhhNhNubjF)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh$. If the loop terminates normally, }(hjhhhNhNubjF)}(h **entry**h]hentry}(hjΪhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh will be }(hjhhhNhNubj3)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh8. The user may break out of the loop, which will leave }(hjhhhNhNubjF)}(h **entry**h]hentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM4hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_prev (C function) c.xas_prevhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h&void * xas_prev (struct xa_state *xas)h]jI)}(h$void *xas_prev(struct xa_state *xas)h](jO)}(hvoidh]hvoid}(hj+hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj'hhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMBubja)}(h h]h }(hj:hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj'hhhj9hMBubjr)}(hjh]h*}(hjHhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj'hhhj9hMBubj)}(hxas_prevh]j)}(hxas_prevh]hxas_prev}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ](jjeh"]h$]h&]hhuh1jhj'hhhj9hMBubj)}(h(struct xa_state *xas)h]j)}(hstruct xa_state *xash](je)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjqubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjqubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%j[sb c.xas_prevasbuh1hhjqubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjqubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjqubj)}(hxash]hxas}(hjΫhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjmubah}(h]h ]h"]h$]h&]hhuh1jhj'hhhj9hMBubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhj#hhhj9hMBubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhj9hMBhj hhubj)}(hhh]h)}(h Move iterator to previous index.h]h Move iterator to previous index.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMBhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj9hMBubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMFhjubj)}(hhh]j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]j3)}(hj9h]hstruct xa_state *xas}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj7ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMChj3ubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMChjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhMChj0ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jF)}(hjth]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjrubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMEhjubh)}(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 }(hjhhhNhNubjF)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubhW was in an error state, it will remain in an error state and this function will return }(hjhhhNhNubj3)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh . If the }(hjhhhNhNubjF)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh 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.hhMEhjubh)}(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 }(hjϬhhhNhNubj3)}(h ``ULONG_MAX``h]h ULONG_MAX}(hj׬hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjϬubh.}(hjϬhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMKhjubh)}(h **Return**h]jF)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMNhjubh)}(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 }(hjhhhNhNubj3)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh or an internal entry.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMNhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_next (C function) c.xas_nexthNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h&void * xas_next (struct xa_state *xas)h]jI)}(h$void *xas_next(struct xa_state *xas)h](jO)}(hvoidh]hvoid}(hjIhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjEhhhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM_ubja)}(h h]h }(hjXhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjEhhhjWhM_ubjr)}(hjh]h*}(hjfhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjEhhhjWhM_ubj)}(hxas_nexth]j)}(hxas_nexth]hxas_next}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ](jjeh"]h$]h&]hhuh1jhjEhhhjWhM_ubj)}(h(struct xa_state *xas)h]j)}(hstruct xa_state *xash](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jysb c.xas_nextasbuh1hhjubja)}(h h]h }(hjѭhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hj߭hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hxash]hxas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjEhhhjWhM_ubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjAhhhjWhM_ubah}(h]j<ah ](j j eh"]h$]h&]jj)jhuh1jBhjWhM_hj>hhubj)}(hhh]h)}(hMove state to next index.h]hMove state to next index.}(hjhhhNhNubah}(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&]uh1jhj>hhhjWhM_ubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6j.j7j.j8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hj8h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj6ubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMchj2ubj)}(hhh]j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]j3)}(hjWh]hstruct xa_state *xas}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjUubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhM`hjQubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhM`hjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhM`hjNubah}(h]h ]h"]h$]h&]uh1jhj2ubh)}(h**Description**h]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMbhj2ubh)}(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 }(hjhhhNhNubjF)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubhW was in an error state, it will remain in an error state and this function will return }(hjhhhNhNubj3)}(h``NULL``h]hNULL}(hj®hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh . If the }(hjhhhNhNubjF)}(h**xas**h]hxas}(hjԮhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh 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.hhMbhj2ubh)}(hUIf the iterator was referencing index ``ULONG_MAX``, this function wraps around to 0.h](h&If the iterator was referencing index }(hjhhhNhNubj3)}(h ``ULONG_MAX``h]h ULONG_MAX}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh", 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.hhMhhj2ubh)}(h **Return**h]jF)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhW/var/lib/git/docbuild/linux/Documentation/core-api/xarray:509: ./include/linux/xarray.hhMkhj2ubh)}(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&hhhNhNubj3)}(h``NULL``h]hNULL}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj&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.hhMkhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_load (C function) c.xas_loadhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h&void * xas_load (struct xa_state *xas)h]jI)}(h$void *xas_load(struct xa_state *xas)h](jO)}(hvoidh]hvoid}(hjghhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjchhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chKubja)}(h h]h }(hjvhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjchhhjuhKubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjchhhjuhKubj)}(hxas_loadh]j)}(hxas_loadh]hxas_load}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjchhhjuhKubj)}(h(struct xa_state *xas)h]j)}(hstruct xa_state *xash](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjϯhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̯ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjѯmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jsb c.xas_loadasbuh1hhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hxash]hxas}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjchhhjuhKubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhj_hhhjuhKubah}(h]jZah ](j j eh"]h$]h&]jj)jhuh1jBhjuhKhj\hhubj)}(hhh]h)}(h)Load an entry from the XArray (advanced).h]h)Load an entry from the XArray (advanced).}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chKhj1hhubah}(h]h ]h"]h$]h&]uh1jhj\hhhjuhKubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jLj7jLj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjVh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjTubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chKhjPubj)}(hhh]j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]j3)}(hjuh]hstruct xa_state *xas}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjsubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chKhjoubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhKhjlubah}(h]h ]h"]h$]h&]uh1jhjPubh)}(h**Description**h]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chKhjPubh)}(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ưhhhNhNubjF)}(h**xas**h]hxas}(hjΰhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjưubhh to the appropriate state to load the entry stored at xa_index. However, it will do nothing and return }(hjưhhhNhNubj3)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjưubh if }(hjưhhhNhNubjF)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjư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.chKhjPubh)}(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 }(hj hhhNhNubj3)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj ubhW or an internal entry, even if there are entries present within the range specified by }(hj hhhNhNubjF)}(h**xas**h]hxas}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chKhjPubh)}(h **Context**h]jF)}(hj@h]hContext}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj>ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chKhjPubh)}(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.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chKhjPubh)}(h **Return**h]jF)}(hjgh]hReturn}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjeubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chKhjPubh)}(hCUsually an entry in the XArray, but see description for exceptions.h]hCUsually an entry in the XArray, but see description for exceptions.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chKhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_nomem (C function) c.xas_nomemhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h0bool xas_nomem (struct xa_state *xas, gfp_t gfp)h]jI)}(h/bool xas_nomem(struct xa_state *xas, gfp_t gfp)h](jO)}(hjh]hbool}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhMubj)}(h xas_nomemh]j)}(h xas_nomemh]h xas_nomem}(hj̱hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȱubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMubj)}(h!(struct xa_state *xas, gfp_t gfp)h](j)}(hstruct xa_state *xash](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jαsb c.xas_nomemasbuh1hhjubja)}(h h]h }(hj&hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hj4hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hxash]hxas}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj_modnameN classnameNjt%jw%)}jz%]j" c.xas_nomemasbuh1hhjVubja)}(h h]h }(hj{hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjVubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhjhMubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjhMhjhhubj)}(hhh]h)}(hAllocate memory if needed.h]hAllocate memory if needed.}(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&]uh1jhjhhhjhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6j˲j7j˲j8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjղh]h Parameters}(hjײhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjӲubah}(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]j3)}(hjh]hstruct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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&]uh1hhj hMhj ubah}(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]j3)}(hj-h]h gfp_t gfp}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj+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.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjubeh}(h]h ]h"]h$]h&]uh1jhjϲubh)}(h**Description**h]jF)}(hjhh]h Description}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjfubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjϲubh)}(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, }(hj~hhhNhNubjF)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj~ubh 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.}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjϲubh)}(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&hjϲubh)}(h **Return**h]jF)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM+hjϲubh)}(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+hjϲubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_free_nodes (C function)c.xas_free_nodeshNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h?void xas_free_nodes (struct xa_state *xas, struct xa_node *top)h]jI)}(h>void xas_free_nodes(struct xa_state *xas, struct xa_node *top)h](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM ubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhM ubj)}(hxas_free_nodesh]j)}(hxas_free_nodesh]hxas_free_nodes}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhM ubj)}(h+(struct xa_state *xas, struct xa_node *top)h](j)}(hstruct xa_state *xash](je)}(hjh]hstruct}(hj2hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhj.ubja)}(h h]h }(hj?hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj.ubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjRmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jsbc.xas_free_nodesasbuh1hhj.ubja)}(h h]h }(hjphhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj.ubjr)}(hjh]h*}(hj~hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj.ubj)}(hxash]hxas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj*ubj)}(hstruct xa_node *toph](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxa_nodeh]hxa_node}(hj´hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjĴmodnameN classnameNjt%jw%)}jz%]jlc.xas_free_nodesasbuh1hhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(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&]hhjuh1jHjjhjhhhjhM ubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjhM hjhhubj)}(hhh]h)}(h/Free this node and all nodes that it referencesh]h/Free this node and all nodes that it references}(hj%hhhNhNubah}(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&]uh1jhjhhhjhM ubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6j=j7j=j8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjGh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjEubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjAubj)}(hhh](j)}(h0``struct xa_state *xas`` Array operation state. h](j)}(h``struct xa_state *xas``h]j3)}(hjfh]hstruct xa_state *xas}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjdubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hj`ubj)}(hhh]h)}(hArray operation state.h]hArray operation state.}(hjhhhNhNubah}(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%``struct xa_node *top`` Node to free h](j)}(h``struct xa_node *top``h]j3)}(hjh]hstruct xa_node *top}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj]ubeh}(h]h ]h"]h$]h&]uh1jhjAubh)}(h**Description**h]jF)}(hjڵh]h Description}(hjܵhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjصubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjAubh)}(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.chMhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_create_range (C function)c.xas_create_rangehNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h,void xas_create_range (struct xa_state *xas)h]jI)}(h+void xas_create_range(struct xa_state *xas)h](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubja)}(h h]h }(hj.hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhj-hMubj)}(hxas_create_rangeh]j)}(hxas_create_rangeh]hxas_create_range}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhj-hMubj)}(h(struct xa_state *xas)h]j)}(hstruct xa_state *xash](je)}(hjh]hstruct}(hj\hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjXubja)}(h h]h }(hjihhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjXubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj|modnameN classnameNjt%jw%)}jz%]j}%)}jp%jBsbc.xas_create_rangeasbuh1hhjXubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjXubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjXubj)}(hxash]hxas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjTubah}(h]h ]h"]h$]h&]hhuh1jhjhhhj-hMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhj-hMubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhj-hMhjhhubj)}(hhh]h)}(h-Ensure that stores to this range will succeedh]h-Ensure that stores to this range will succeed}(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&]uh1jhjhhhj-hMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hj h]hstruct xa_state *xas}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jF)}(hj[h]h Description}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjYubah}(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 }(hjqhhhNhNubjF)}(h**xas**h]hxas}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjqubh. Sets }(hjqhhhNhNubjF)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjqubh 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.}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_store (C function) c.xas_storehNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h4void * xas_store (struct xa_state *xas, void *entry)h]jI)}(h2void *xas_store(struct xa_state *xas, void *entry)h](jO)}(hvoidh]hvoid}(hjķhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubja)}(h h]h }(hjӷhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjҷhMubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjhhhjҷhMubj)}(h xas_storeh]j)}(h xas_storeh]h xas_store}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjҷhMubj)}(h#(struct xa_state *xas, void *entry)h](j)}(hstruct xa_state *xash](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhj ubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj ubh)}(hhh]j)}(hxa_stateh]hxa_state}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj.modnameN classnameNjt%jw%)}jz%]j}%)}jp%jsb c.xas_storeasbuh1hhj ubja)}(h h]h }(hjLhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj ubjr)}(hjh]h*}(hjZhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj ubj)}(hxash]hxas}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(h void *entryh](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj|ubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj|ubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj|ubj)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjҷhMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhjҷhMubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjҷhMhjhhubj)}(hhh]h)}(hStore this entry in the XArray.h]hStore this 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&]uh1jhjhhhjҷhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hjh]hstruct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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&]uh1hhj)hMhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hMhj ubj)}(h``void *entry`` New entry. h](jI)}(h``void *entry``h]j3)}(hjMh]h void *entry}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjKubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjGubj)}(hhh]h)}(h New entry.h]h New entry.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhj ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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 }(hjhhhNhNubjF)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh 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 }(hjhhhNhNubj3)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh, 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]jF)}(hjӹh]hReturn}(hjչhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjѹubah}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_get_mark (C function)c.xas_get_markhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h>bool xas_get_mark (const struct xa_state *xas, xa_mark_t mark)h]jI)}(h=bool xas_get_mark(const struct xa_state *xas, xa_mark_t mark)h](jO)}(hjh]hbool}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMZubja)}(h h]h }(hj&hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhj%hMZubj)}(h xas_get_markh]j)}(h xas_get_markh]h xas_get_mark}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhj%hMZubj)}(h,(const struct xa_state *xas, xa_mark_t mark)h](j)}(hconst struct xa_state *xash](je)}(hjhh]hconst}(hjThhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjPubja)}(h h]h }(hjahhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjPubje)}(hjh]hstruct}(hjohhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjPubja)}(h h]h }(hj|hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjPubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%j:sbc.xas_get_markasbuh1hhjPubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjPubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjPubj)}(hxash]hxas}(hjȺhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjLubj)}(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&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]jc.xas_get_markasbuh1hhjݺubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjݺubj)}(hmarkh]hmark}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݺubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjLubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhj%hMZubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhj%hMZubah}(h]j ah ](j j eh"]h$]h&]jj)jhuh1jBhj%hMZhj hhubj)}(hhh]h)}(hReturns the state of this mark.h]hReturns the state of this mark.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMZhj7hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj%hMZubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jRj7jRj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hj\h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjZubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM^hjVubj)}(hhh](j)}(h7``const struct xa_state *xas`` XArray operation state. h](j)}(h``const struct xa_state *xas``h]j3)}(hj{h]hconst struct xa_state *xas}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjyubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM[hjuubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM[hjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhM[hjrubj)}(h ``xa_mark_t mark`` Mark number. h](j)}(h``xa_mark_t mark``h]j3)}(hjh]hxa_mark_t mark}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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.}(hjͻhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjɻhM\hjʻubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjɻhM\hjrubeh}(h]h ]h"]h$]h&]uh1jhjVubh)}(h **Return**h]jF)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM^hjVubh)}(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 }(hjhhhNhNubjF)}(h**xas**h]hxas}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh 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^hjVubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_set_mark (C function)c.xas_set_markhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h>void xas_set_mark (const struct xa_state *xas, xa_mark_t mark)h]jI)}(h=void xas_set_mark(const struct xa_state *xas, xa_mark_t mark)h](jO)}(hvoidh]hvoid}(hjFhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjBhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMlubja)}(h h]h }(hjUhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjBhhhjThMlubj)}(h xas_set_markh]j)}(h xas_set_markh]h xas_set_mark}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ](jjeh"]h$]h&]hhuh1jhjBhhhjThMlubj)}(h,(const struct xa_state *xas, xa_mark_t mark)h](j)}(hconst struct xa_state *xash](je)}(hjhh]hconst}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubje)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jisbc.xas_set_markasbuh1hhjubja)}(h h]h }(hjܼhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hxash]hxas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]jؼc.xas_set_markasbuh1hhj ubja)}(h h]h }(hj1hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj ubj)}(hmarkh]hmark}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj{ubeh}(h]h ]h"]h$]h&]hhuh1jhjBhhhjThMlubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhj>hhhjThMlubah}(h]j9ah ](j j eh"]h$]h&]jj)jhuh1jBhjThMlhj;hhubj)}(hhh]h)}(h,Sets the mark on this entry and its parents.h]h,Sets the mark on this entry and its parents.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMlhjfhhubah}(h]h ]h"]h$]h&]uh1jhj;hhhjThMlubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hjh]hconst struct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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&]uh1hhjhMmhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMmhjubj)}(h ``xa_mark_t mark`` Mark number. h](j)}(h``xa_mark_t mark``h]j3)}(hjh]hxa_mark_t mark}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMnhjubah}(h]h ]h"]h$]h&]uh1jhjݽubeh}(h]h ]h"]h$]h&]uh1jhjhMnhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jF)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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 }(hj4hhhNhNubjF)}(h**xas**h]hxas}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj4ubh: has not been walked to an entry, or is in an error state.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMphjubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_clear_mark (C function)c.xas_clear_markhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h@void xas_clear_mark (const struct xa_state *xas, xa_mark_t mark)h]jI)}(h?void xas_clear_mark(const struct xa_state *xas, xa_mark_t mark)h](jO)}(hvoidh]hvoid}(hjuhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjqhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjqhhhjhMubj)}(hxas_clear_markh]j)}(hxas_clear_markh]hxas_clear_mark}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjqhhhjhMubj)}(h,(const struct xa_state *xas, xa_mark_t mark)h](j)}(hconst struct xa_state *xash](je)}(hjhh]hconst}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubje)}(hjh]hstruct}(hj;hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjھhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jsbc.xas_clear_markasbuh1hhjubja)}(h h]h }(hj hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(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}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjDmodnameN classnameNjt%jw%)}jz%]jc.xas_clear_markasbuh1hhj;ubja)}(h h]h }(hj`hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj;ubj)}(hmarkh]hmark}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjqhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjmhhhjhMubah}(h]jhah ](j j eh"]h$]h&]jj)jhuh1jBhjhMhjjhhubj)}(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&]uh1jhjjhhhjhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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`` XArray operation state. h](j)}(h``const struct xa_state *xas``h]j3)}(hjٿh]hconst struct xa_state *xas}(hjۿhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj׿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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjӿubeh}(h]h ]h"]h$]h&]uh1jhjhMhjпubj)}(h ``xa_mark_t mark`` Mark number. h](j)}(h``xa_mark_t mark``h]j3)}(hjh]hxa_mark_t mark}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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'hMhjпubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jF)}(hjMh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjKubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(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 }(hjchhhNhNubjF)}(h**xas**h]hxas}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjcubh: has not been walked to an entry, or is in an error state.}(hjchhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_init_marks (C function)c.xas_init_markshNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h0void xas_init_marks (const struct xa_state *xas)h]jI)}(h/void xas_init_marks(const struct xa_state *xas)h](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhMubj)}(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](je)}(hjhh]hconst}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubje)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hj hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jsbc.xas_init_marksasbuh1hhjubja)}(h h]h }(hj:hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjHhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hxash]hxas}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhjhMubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjhMhjhhubj)}(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.chMhj|hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hjh]hconst struct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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 }(hjhhhNhNubjF)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubhp. If we’re tracking free entries with a mark, we need to set it on all entries. All other marks are cleared.}(hjhhhNhNubeh}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_split_alloc (C function)c.xas_split_allochNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hWvoid xas_split_alloc (struct xa_state *xas, void *entry, unsigned int order, gfp_t gfp)h]jI)}(hVvoid xas_split_alloc(struct xa_state *xas, void *entry, unsigned int order, gfp_t gfp)h](jO)}(hvoidh]hvoid}(hjahhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj]hhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubja)}(h h]h }(hjphhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj]hhhjohMubj)}(hxas_split_alloch]j)}(hxas_split_alloch]hxas_split_alloc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj]hhhjohMubj)}(hB(struct xa_state *xas, void *entry, unsigned int order, gfp_t gfp)h](j)}(hstruct xa_state *xash](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jsbc.xas_split_allocasbuh1hhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hxash]hxas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(h void *entryh](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj ubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj ubjr)}(hjh]h*}(hj,hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj ubj)}(hentryh]hentry}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned int orderh](jO)}(hunsignedh]hunsigned}(hjRhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjNubja)}(h h]h }(hj`hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjNubjO)}(hinth]hint}(hjnhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjNubja)}(h h]h }(hj|hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjNubj)}(horderh]horder}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubeh}(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&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]jc.xas_split_allocasbuh1hhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhj]hhhjohMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjYhhhjohMubah}(h]jTah ](j j eh"]h$]h&]jj)jhuh1jBhjohMhjVhhubj)}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhjohMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hj=h]hstruct xa_state *xas}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj;ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hj7ubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhM hjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhM hj4ubj)}(h=``void *entry`` New entry which will be stored in the array. h](j)}(h``void *entry``h]j3)}(hjvh]h void *entry}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjtubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjpubj)}(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&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhM hj4ubj)}(h,``unsigned int order`` Current entry order. h](j)}(h``unsigned int order``h]j3)}(hjh]hunsigned int order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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 hj4ubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]j3)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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 hj4ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jF)}(hj#h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj!ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(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 }(hj9hhhNhNubjF)}(h **entry**h]hentry}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj9ubh3) to prepare for the upcoming split of an entry of }(hj9hhhNhNubjF)}(h **order**h]horder}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj9ubh. size into entries of the order stored in the }(hj9hhhNhNubjF)}(h**xas**h]hxas}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj9ubh.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h **Context**h]jF)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj~ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h"May sleep if **gfp** flags permit.h](h May sleep if }(hjhhhNhNubjF)}(h**gfp**h]hgfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh flags permit.}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_split (C function) c.xas_splithNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hFvoid xas_split (struct xa_state *xas, void *entry, unsigned int order)h]jI)}(hEvoid xas_split(struct xa_state *xas, void *entry, unsigned int order)h](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM4ubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhM4ubj)}(h xas_splith]j)}(h xas_splith]h xas_split}(hjhhhNhNubah}(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](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hj!hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj4modnameN classnameNjt%jw%)}jz%]j}%)}jp%jsb c.xas_splitasbuh1hhjubja)}(h h]h }(hjRhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hj`hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hxash]hxas}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj ubj)}(h void *entryh](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj ubj)}(hunsigned int orderh](jO)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjO)}(hinth]hint}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubj)}(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&]hhjuh1jHjjhjhhhjhM4ubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjhM4hjhhubj)}(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&]uh1jhjhhhjhM4ubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jBj7jBj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjLh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjJubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM8hjFubj)}(hhh](j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]j3)}(hjkh]hstruct xa_state *xas}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjiubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM5hjeubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjbubj)}(h1``void *entry`` New entry to store in the array. h](j)}(h``void *entry``h]j3)}(hjh]h void *entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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&]uh1jhjhM6hjbubj)}(h,``unsigned int order`` Current entry order. h](j)}(h``unsigned int order``h]j3)}(hjh]hunsigned int order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM7hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM7hjbubeh}(h]h ]h"]h$]h&]uh1jhjFubh)}(h**Description**h]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM9hjFubh)}(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 }(hj.hhhNhNubjF)}(h**xas**h]hxas}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj.ubh. The value in }(hj.hhhNhNubjF)}(h **entry**h]hentry}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj.ubh* is copied to all the replacement entries.}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM9hjFubh)}(h **Context**h]jF)}(hjch]hContext}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjaubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM<hjFubh)}(h1Any context. The caller should hold the xa_lock.h]h1Any context. The caller should hold the xa_lock.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM<hjFubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9$xas_try_split_min_order (C function)c.xas_try_split_min_orderhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h9unsigned int xas_try_split_min_order (unsigned int order)h]jI)}(h8unsigned int xas_try_split_min_order(unsigned int order)h](jO)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMrubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhMrubjO)}(hinth]hint}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhjhMrubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhMrubj)}(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](jO)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjO)}(hinth]hint}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hj+hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubj)}(horderh]horder}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMrubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhjhMrubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjhMrhjhhubj)}(hhh]h)}(h.Minimal split order xas_try_split() can accepth]h.Minimal split order xas_try_split() can accept}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMrhj`hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMrubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6j{j7j{j8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hjh]hunsigned int order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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 }(hjhhhNhNubjF)}(h **order**h]horder}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubhd - 1 if no new xa_node is needed. This function provides the minimal order xas_try_split() supports.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMuhjubh)}(h **Return**h]jF)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMyhjubh)}(h*the minimal order xas_try_split() supportsh]h*the minimal order xas_try_split() supports}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMyhjubh)}(h **Context**h]jF)}(hj?h]hContext}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj=ubah}(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.}(hjUhhhNhNubah}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_try_split (C function)c.xas_try_splithNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hJvoid xas_try_split (struct xa_state *xas, void *entry, unsigned int order)h]jI)}(hIvoid xas_try_split(struct xa_state *xas, void *entry, unsigned int order)h](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhMubj)}(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](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jsbc.xas_try_splitasbuh1hhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hj hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hxash]hxas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(h void *entryh](jO)}(hvoidh]hvoid}(hj3hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj/ubja)}(h h]h }(hjAhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj/ubjr)}(hjh]h*}(hjOhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj/ubj)}(hentryh]hentry}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned int orderh](jO)}(hunsignedh]hunsigned}(hjuhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjqubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjqubjO)}(hinth]hint}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjqubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjqubj)}(horderh]horder}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhj|hhhjhMubah}(h]jwah ](j j eh"]h$]h&]jj)jhuh1jBhjhMhjyhhubj)}(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&]uh1jhjyhhhjhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hjh]hstruct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hMhjubj)}(h1``void *entry`` New entry to store in the array. h](j)}(h``void *entry``h]j3)}(hjQh]h void *entry}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjOubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjKubj)}(hhh]h)}(h New entry to store in the array.h]h New entry to store in the array.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjubj)}(h,``unsigned int order`` Current entry order. h](j)}(h``unsigned int order``h]j3)}(hjh]hunsigned int order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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 }(hjhhhNhNubjF)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh. The value in }(hjhhhNhNubjF)}(h **entry**h]hentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh 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]jF)}(hjh]hNOTE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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&hhhNhNubjF)}(h **order**h]horder}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj&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]jF)}(hjIh]hContext}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjGubah}(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.}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_pause (C function) c.xas_pausehNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h%void xas_pause (struct xa_state *xas)h]jI)}(h$void xas_pause(struct xa_state *xas)h](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhMubj)}(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](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jsb c.xas_pauseasbuh1hhjubja)}(h h]h }(hj hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hxash]hxas}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhjhMubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjhMhjhhubj)}(hhh]h)}(hPause a walk to drop a lock.h]hPause a walk to drop a lock.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjKhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jfj7jfj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjph]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjnubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjjubj)}(hhh]j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]j3)}(hjh]hstruct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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&]uh1jhjjubh)}(h**Description**h]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjjubh)}(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 }(hjhhhNhNubjF)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh 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.chMhjjubh)}(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.chMhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_find (C function) c.xas_findhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h9void * xas_find (struct xa_state *xas, unsigned long max)h]jI)}(h7void *xas_find(struct xa_state *xas, unsigned long max)h](jO)}(hvoidh]hvoid}(hj0hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj,hhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMbubja)}(h h]h }(hj?hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj,hhhj>hMbubjr)}(hjh]h*}(hjMhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj,hhhj>hMbubj)}(hxas_findh]j)}(hxas_findh]hxas_find}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ](jjeh"]h$]h&]hhuh1jhj,hhhj>hMbubj)}(h)(struct xa_state *xas, unsigned long max)h](j)}(hstruct xa_state *xash](je)}(hjh]hstruct}(hjzhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjvubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjvubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%j`sb c.xas_findasbuh1hhjvubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjvubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjvubj)}(hxash]hxas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjrubj)}(hunsigned long maxh](jO)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjO)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubj)}(hmaxh]hmax}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjrubeh}(h]h ]h"]h$]h&]hhuh1jhj,hhhj>hMbubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhj(hhhj>hMbubah}(h]j#ah ](j j eh"]h$]h&]jj)jhuh1jBhj>hMbhj%hhubj)}(hhh]h)}(h*Find the next present entry in the XArray.h]h*Find the next present entry in the XArray.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMbhjKhhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj>hMbubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jfj7jfj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjph]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjnubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMfhjjubj)}(hhh](j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]j3)}(hjh]hstruct xa_state *xas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]j3)}(hjh]hunsigned long max}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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&]uh1jhjjubh)}(h**Description**h]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMfhjjubh)}(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 }(hjhhhNhNubjF)}(h**xas**h]hxas}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMfhjjubh)}(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 }(hj:hhhNhNubjF)}(h**max**h]hmax}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj:ubhO, the iterator is set to the smallest index not yet in the array. This allows }(hj:hhhNhNubjF)}(h**xas**h]hxas}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj:ubh) to be immediately passed to xas_store().}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMkhjjubh)}(h **Return**h]jF)}(hjoh]hReturn}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjmubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMohjjubh)}(h(The entry, if found, otherwise ``NULL``.h](hThe entry, if found, otherwise }(hjhhhNhNubj3)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMohjjubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_find_marked (C function)c.xas_find_markedhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hPvoid * xas_find_marked (struct xa_state *xas, unsigned long max, xa_mark_t mark)h]jI)}(hNvoid *xas_find_marked(struct xa_state *xas, unsigned long max, xa_mark_t mark)h](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhMubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjhhhjhMubj)}(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](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhj ubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj ubh)}(hhh]j)}(hxa_stateh]hxa_state}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj0modnameN classnameNjt%jw%)}jz%]j}%)}jp%jsbc.xas_find_markedasbuh1hhj ubja)}(h h]h }(hjNhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj ubjr)}(hjh]h*}(hj\hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj ubj)}(hxash]hxas}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long maxh](jO)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj~ubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj~ubjO)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj~ubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj~ubj)}(hmaxh]hmax}(hjhhhNhNubah}(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&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]jJc.xas_find_markedasbuh1hhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubj)}(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&]hhjuh1jHjjhjhhhjhMubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjhMhjhhubj)}(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&]uh1jhjhhhjhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jDj7jDj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjNh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjLubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjHubj)}(hhh](j)}(h1``struct xa_state *xas`` XArray operation state. h](j)}(h``struct xa_state *xas``h]j3)}(hjmh]hstruct xa_state *xas}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjkubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjgubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhMhjdubj)}(h/``unsigned long max`` Highest index to return. h](j)}(h``unsigned long max``h]j3)}(hjh]hunsigned long max}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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&]uh1jhjhMhjdubj)}(h.``xa_mark_t mark`` Mark number to search for. h](j)}(h``xa_mark_t mark``h]j3)}(hjh]hxa_mark_t mark}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjdubeh}(h]h ]h"]h$]h&]uh1jhjHubh)}(h**Description**h]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjHubh)}(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 }(hj0hhhNhNubjF)}(h**xas**h]hxas}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj0ubh 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.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjHubh)}(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 }(hjQhhhNhNubjF)}(h**max**h]hmax}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjQubh, }(hjQhhhNhNubjF)}(h**xas**h]hxas}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjQubhn is set to the bounds state and xas->xa_index is set to the smallest index not yet in the array. This allows }(hjQhhhNhNubjF)}(h**xas**h]hxas}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjQubh) to be immediately passed to xas_store().}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjHubh)}(hTIf no entry is found before **max** is reached, **xas** is set to the restart state.h](hIf no entry is found before }(hjhhhNhNubjF)}(h**max**h]hmax}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh is reached, }(hjhhhNhNubjF)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh 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.chMhjHubh)}(h **Return**h]jF)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjHubh)}(h(The entry, if found, otherwise ``NULL``.h](hThe entry, if found, otherwise }(hjhhhNhNubj3)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_find_conflict (C function)c.xas_find_conflicthNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h/void * xas_find_conflict (struct xa_state *xas)h]jI)}(h-void *xas_find_conflict(struct xa_state *xas)h](jO)}(hvoidh]hvoid}(hj"hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubja)}(h h]h }(hj1hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhj0hMubjr)}(hjh]h*}(hj?hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjhhhj0hMubj)}(hxas_find_conflicth]j)}(hxas_find_conflicth]hxas_find_conflict}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhj0hMubj)}(h(struct xa_state *xas)h]j)}(hstruct xa_state *xash](je)}(hjh]hstruct}(hjlhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjhubja)}(h h]h }(hjyhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jRsbc.xas_find_conflictasbuh1hhjhubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjhubj)}(hxash]hxas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjdubah}(h]h ]h"]h$]h&]hhuh1jhjhhhj0hMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhj0hMubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhj0hMhjhhubj)}(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&]uh1jhjhhhj0hMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hj0h]hstruct xa_state *xas}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj.ubah}(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.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhM hjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhM hj'ubah}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]jF)}(hjkh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjiubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hj ubh)}(hDThe **xas** describes both a range and a position within that range.h](hThe }(hjhhhNhNubjF)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh9 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 hj ubh)}(h **Context**h]jF)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hj ubh)}(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 hj ubh)}(h **Return**h]jF)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj ubh)}(h;The next entry in the range covered by **xas** or ``NULL``.h](h'The next entry in the range covered by }(hjhhhNhNubjF)}(h**xas**h]hxas}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh or }(hjhhhNhNubj3)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh.}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_load (C function) c.xa_loadhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h7void * xa_load (struct xarray *xa, unsigned long index)h]jI)}(h5void *xa_load(struct xarray *xa, unsigned long index)h](jO)}(hvoidh]hvoid}(hj4hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj0hhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMEubja)}(h h]h }(hjChhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj0hhhjBhMEubjr)}(hjh]h*}(hjQhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj0hhhjBhMEubj)}(hxa_loadh]j)}(hxa_loadh]hxa_load}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj0hhhjBhMEubj)}(h((struct xarray *xa, unsigned long index)h](j)}(hstruct xarray *xah](je)}(hjh]hstruct}(hj~hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjzubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjzubh)}(hhh]j)}(hxarrayh]hxarray}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jdsb c.xa_loadasbuh1hhjzubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjzubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjzubj)}(hxah]hxa}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjvubj)}(hunsigned long indexh](jO)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjO)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubj)}(hindexh]hindex}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjvubeh}(h]h ]h"]h$]h&]hhuh1jhj0hhhjBhMEubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhj,hhhjBhMEubah}(h]j'ah ](j j eh"]h$]h&]jj)jhuh1jBhjBhMEhj)hhubj)}(hhh]h)}(hLoad an entry from an XArray.h]hLoad an entry from an XArray.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMEhjOhhubah}(h]h ]h"]h$]h&]uh1jhj)hhhjBhMEubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jjj7jjj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjth]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjrubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMIhjnubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]j3)}(hjh]hstruct xarray *xa}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]j3)}(hjh]hunsigned long index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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&]uh1jhjnubh)}(h **Context**h]jF)}(hjh]hContext}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMIhjnubh)}(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.chMIhjnubh)}(h **Return**h]jF)}(hj.h]hReturn}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj,ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMKhjnubh)}(h!The entry at **index** in **xa**.h](h The entry at }(hjDhhhNhNubjF)}(h **index**h]hindex}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjDubh in }(hjDhhhNhNubjF)}(h**xa**h]hxa}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjDubh.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMJhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9__xa_erase (C function) c.__xa_erasehNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h:void * __xa_erase (struct xarray *xa, unsigned long index)h]jI)}(h8void *__xa_erase(struct xarray *xa, unsigned long index)h](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMcubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhMcubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjhhhjhMcubj)}(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](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxarrayh]hxarray}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jsb c.__xa_eraseasbuh1hhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hj-hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hxah]hxa}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long indexh](jO)}(hunsignedh]hunsigned}(hjShhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjOubja)}(h h]h }(hjahhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjOubjO)}(hlongh]hlong}(hjohhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjOubja)}(h h]h }(hj}hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjOubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMcubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhjhMcubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjhMchjhhubj)}(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&]uh1jhjhhhjhMcubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hjh]hstruct xarray *xa}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMdhjubj)}(hhh]h)}(hXArray.h]hXArray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMdhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMdhjubj)}(h*``unsigned long index`` Index into array. h](j)}(h``unsigned long index``h]j3)}(hj/h]hunsigned long index}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj-ubah}(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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMehjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMehjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jF)}(hjjh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjhubah}(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 }(hjhhhNhNubjF)}(h **index**h]hindex}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh will return }(hjhhhNhNubj3)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh. 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.chMghjubh)}(h **Context**h]jF)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMkhjubh)}(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]jF)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_erase (C function) c.xa_erasehNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h8void * xa_erase (struct xarray *xa, unsigned long index)h]jI)}(h6void *xa_erase(struct xarray *xa, unsigned long index)h](jO)}(hvoidh]hvoid}(hj!hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMvubja)}(h h]h }(hj0hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhj/hMvubjr)}(hjh]h*}(hj>hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjhhhj/hMvubj)}(hxa_eraseh]j)}(hxa_eraseh]hxa_erase}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhj/hMvubj)}(h((struct xarray *xa, unsigned long index)h](j)}(hstruct xarray *xah](je)}(hjh]hstruct}(hjkhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjgubja)}(h h]h }(hjxhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjgubh)}(hhh]j)}(hxarrayh]hxarray}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jQsb c.xa_eraseasbuh1hhjgubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjgubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjgubj)}(hxah]hxa}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjcubj)}(hunsigned long indexh](jO)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjO)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjcubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhj/hMvubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhj/hMvubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhj/hMvhjhhubj)}(hhh]h)}(h!Erase this entry from the XArray.h]h!Erase this entry from the XArray.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMvhj<hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj/hMvubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jWj7jWj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjah]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj_ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMzhj[ubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]j3)}(hjh]hstruct xarray *xa}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj~ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMwhjzubj)}(hhh]h)}(hXArray.h]hXArray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMwhjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhMwhjwubj)}(h(``unsigned long index`` Index of entry. h](j)}(h``unsigned long index``h]j3)}(hjh]hunsigned long index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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&]uh1jhjhMxhjwubeh}(h]h ]h"]h$]h&]uh1jhj[ubh)}(h**Description**h]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMzhj[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 }(hj hhhNhNubjF)}(h **index**h]hindex}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj ubh will return }(hj hhhNhNubj3)}(h``NULL``h]hNULL}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj 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.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMzhj[ubh)}(h **Context**h]jF)}(hj?h]hContext}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj=ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM~hj[ubh)}(h-Any context. Takes and releases the xa_lock.h]h-Any context. Takes and releases the xa_lock.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM~hj[ubh)}(h **Return**h]jF)}(hjfh]hReturn}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjdubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj[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&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9__xa_store (C function) c.__xa_storehNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hRvoid * __xa_store (struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h]jI)}(hPvoid *__xa_store(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhMubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjhhhjhMubj)}(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](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxarrayh]hxarray}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jsb c.__xa_storeasbuh1hhjubja)}(h h]h }(hj3hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjAhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hxah]hxa}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long indexh](jO)}(hunsignedh]hunsigned}(hjghhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjcubja)}(h h]h }(hjuhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjcubjO)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjcubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjcubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(h void *entryh](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(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&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j/ c.__xa_storeasbuh1hhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubj)}(hgfph]hgfp}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhjhMubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjhMhjhhubj)}(hhh]h)}(hStore this entry in the XArray.h]hStore this entry in the XArray.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjPhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jkj7jkj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjuh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjsubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjoubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]j3)}(hjh]hstruct xarray *xa}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]j3)}(hjh]hunsigned long index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]j3)}(hjh]h void *entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]j3)}(hj?h]h gfp_t gfp}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj=ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj9ubj)}(hhh]h)}(hMemory allocation flags.h]hMemory allocation flags.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMhjubeh}(h]h ]h"]h$]h&]uh1jhjoubh)}(h**Description**h]jF)}(hjzh]h Description}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjxubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjoubh)}(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.chMhjoubh)}(h **Context**h]jF)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjoubh)}(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 }(hjhhhNhNubjF)}(h**gfp**h]hgfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh flags permit.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjoubh)}(h **Return**h]jF)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjoubh)}(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.chMhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_store (C function) c.xa_storehNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hPvoid * xa_store (struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h]jI)}(hNvoid *xa_store(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubja)}(h h]h }(hj.hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhj-hMubjr)}(hjh]h*}(hj<hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjhhhj-hMubj)}(hxa_storeh]j)}(hxa_storeh]hxa_store}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhj-hMubj)}(h@(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](j)}(hstruct xarray *xah](je)}(hjh]hstruct}(hjihhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjeubja)}(h h]h }(hjvhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjeubh)}(hhh]j)}(hxarrayh]hxarray}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jOsb c.xa_storeasbuh1hhjeubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjeubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjeubj)}(hxah]hxa}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjaubj)}(hunsigned long indexh](jO)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjO)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjaubj)}(h void *entryh](jO)}(hvoidh]hvoid}(hj,hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj(ubja)}(h h]h }(hj:hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj(ubjr)}(hjh]h*}(hjHhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj(ubj)}(hentryh]hentry}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjaubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjsmodnameN classnameNjt%jw%)}jz%]j c.xa_storeasbuh1hhjjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjjubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjaubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhj-hMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhj-hMubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhj-hMhjhhubj)}(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&]uh1jhjhhhj-hMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hjh]hstruct xarray *xa}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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&]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]j3)}(hjAh]hunsigned long index}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj?ubah}(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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhjubj)}(h``void *entry`` New entry. h](j)}(h``void *entry``h]j3)}(hjzh]h void *entry}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjxubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjtubj)}(hhh]h)}(h New entry.h]h New entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]j3)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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 }(hjhhhNhNubjF)}(h **entry**h]hentry}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubhi. Storing into an existing multi-index entry updates the entry of every index. The marks associated with }(hjhhhNhNubjF)}(h **index**h]hindex}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh are unaffected unless }(hjhhhNhNubjF)}(h **entry**h]hentry}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh is }(hjhhhNhNubj3)}(h``NULL``h]hNULL}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h **Context**h]jF)}(hj]h]hContext}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj[ubah}(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 }(hjshhhNhNubjF)}(h**gfp**h]hgfp}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjsubh flags permit.}(hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h **Return**h]jF)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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 }(hjhhhNhNubjF)}(h **entry**h]hentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubhO 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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9__xa_cmpxchg (C function)c.__xa_cmpxchghNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h_void * __xa_cmpxchg (struct xarray *xa, unsigned long index, void *old, void *entry, gfp_t gfp)h]jI)}(h]void *__xa_cmpxchg(struct xarray *xa, unsigned long index, void *old, void *entry, gfp_t gfp)h](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhMubjr)}(hjh]h*}(hj hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjhhhjhMubj)}(h __xa_cmpxchgh]j)}(h __xa_cmpxchgh]h __xa_cmpxchg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(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](je)}(hjh]hstruct}(hj7hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhj3ubja)}(h h]h }(hjDhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj3ubh)}(hhh]j)}(hxarrayh]hxarray}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjWmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jsbc.__xa_cmpxchgasbuh1hhj3ubja)}(h h]h }(hjuhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj3ubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj3ubj)}(hxah]hxa}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj/ubj)}(hunsigned long indexh](jO)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjO)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj/ubj)}(h void *oldh](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(holdh]hold}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj/ubj)}(h void *entryh](jO)}(hvoidh]hvoid}(hj<hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj8ubja)}(h h]h }(hjJhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj8ubjr)}(hjh]h*}(hjXhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj8ubj)}(hentryh]hentry}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj/ubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]jqc.__xa_cmpxchgasbuh1hhjzubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjzubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj/ubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhjhMubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjhMhjhhubj)}(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&]uh1jhjhhhjhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hjh]hstruct xarray *xa}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(hXArray.h]hXArray.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hMhjubj)}(h*``unsigned long index`` Index into array. h](j)}(h``unsigned long index``h]j3)}(hjQh]hunsigned long index}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjOubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjKubj)}(hhh]h)}(hIndex into array.h]hIndex into array.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhMhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjubj)}(h)``void *old`` Old value to test against. h](j)}(h ``void *old``h]j3)}(hjh]h void *old}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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&]uh1jhjhMhjubj)}(h-``void *entry`` New value to place in array. h](j)}(h``void *entry``h]j3)}(hjh]h void *entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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&]uh1jhjhMhjubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]j3)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]jF)}(hj7h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj5ubah}(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.}(hjMhhhNhNubah}(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 }(hj\hhhNhNubjF)}(h **index**h]hindex}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj\ubh is the same as }(hj\hhhNhNubjF)}(h**old**h]hold}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj\ubh, replace it with }(hj\hhhNhNubjF)}(h **entry**h]hentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj\ubh". If the return value is equal to }(hj\hhhNhNubjF)}(h**old**h]hold}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj\ubh#, then the exchange was successful.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h **Context**h]jF)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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 }(hjhhhNhNubjF)}(h**gfp**h]hgfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh 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]jF)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9__xa_insert (C function) c.__xa_inserthNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hPint __xa_insert (struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h]jI)}(hOint __xa_insert(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](jO)}(hinth]hint}(hj3hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj/hhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubja)}(h h]h }(hjBhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj/hhhjAhMubj)}(h __xa_inserth]j)}(h __xa_inserth]h __xa_insert}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ](jjeh"]h$]h&]hhuh1jhj/hhhjAhMubj)}(h@(struct xarray *xa, unsigned long index, void *entry, gfp_t gfp)h](j)}(hstruct xarray *xah](je)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjlubja)}(h h]h }(hj}hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjlubh)}(hhh]j)}(hxarrayh]hxarray}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jVsb c.__xa_insertasbuh1hhjlubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjlubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjlubj)}(hxah]hxa}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjhubj)}(hunsigned long indexh](jO)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjO)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hj hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjhubj)}(h void *entryh](jO)}(hvoidh]hvoid}(hj3hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj/ubja)}(h h]h }(hjAhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj/ubjr)}(hjh]h*}(hjOhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj/ubj)}(hentryh]hentry}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjhubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjzmodnameN classnameNjt%jw%)}jz%]j c.__xa_insertasbuh1hhjqubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjqubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjhubeh}(h]h ]h"]h$]h&]hhuh1jhj/hhhjAhMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhj+hhhjAhMubah}(h]j&ah ](j j eh"]h$]h&]jj)jhuh1jBhjAhMhj(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&]uh1jhj(hhhjAhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hjh]hstruct xarray *xa}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj 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.}(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 index`` Index into array. h](j)}(h``unsigned long index``h]j3)}(hjHh]hunsigned long index}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjFubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjBubj)}(hhh]h)}(hIndex into array.h]hIndex into array.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMhjubj)}(h``void *entry`` New entry. h](j)}(h``void *entry``h]j3)}(hjh]h void *entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]j3)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h **Context**h]jF)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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 }(hj2hhhNhNubjF)}(h**gfp**h]hgfp}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj2ubh flags permit.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjubh)}(h **Return**h]jF)}(hjUh]hReturn}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjSubah}(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.}(hjkhhhNhNubah}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_store_range (C function)c.xa_store_rangehNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hjvoid * xa_store_range (struct xarray *xa, unsigned long first, unsigned long last, void *entry, gfp_t gfp)h]jI)}(hhvoid *xa_store_range(struct xarray *xa, unsigned long first, unsigned long last, void *entry, gfp_t gfp)h](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM?ubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhM?ubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjhhhjhM?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](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxarrayh]hxarray}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jsbc.xa_store_rangeasbuh1hhjubja)}(h h]h }(hj"hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hj0hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hxah]hxa}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long firsth](jO)}(hunsignedh]hunsigned}(hjVhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjRubja)}(h h]h }(hjdhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjRubjO)}(hlongh]hlong}(hjrhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjRubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjRubj)}(hfirsth]hfirst}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long lasth](jO)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjO)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubj)}(hlasth]hlast}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(h void *entryh](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hentryh]hentry}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(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&] refdomainj0reftypejp% reftargetj?modnameN classnameNjt%jw%)}jz%]jc.xa_store_rangeasbuh1hhj6ubja)}(h h]h }(hj[hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj6ubj)}(hgfph]hgfp}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhM?ubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhjhM?ubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjhM?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&]uh1jhjhhhjhM?ubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hjh]hstruct xarray *xa}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]j3)}(hj h]hunsigned long first}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj ubah}(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&]uh1hhj"hMAhj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hMAhjubj)}(h-``unsigned long last`` Last index to affect. h](j)}(h``unsigned long last``h]j3)}(hjFh]hunsigned long last}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjDubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMBhj@ubj)}(hhh]h)}(hLast index to affect.h]hLast index to affect.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hMBhj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hMBhjubj)}(h``void *entry`` New entry. h](j)}(h``void *entry``h]j3)}(hjh]h void *entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj}ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMChjyubj)}(hhh]h)}(h New entry.h]h New entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMChjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhMChjubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]j3)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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 }(hj hhhNhNubjF)}(h **first**h]hfirst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj ubh and }(hj hhhNhNubjF)}(h**last**h]hlast}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj ubh, inclusive will return }(hj hhhNhNubjF)}(h **entry**h]hentry}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj ubhi. Storing into an existing multi-index entry updates the entry of every index. The marks associated with }(hj hhhNhNubjF)}(h **index**h]hindex}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj ubh are unaffected unless }(hj hhhNhNubjF)}(h **entry**h]hentry}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj ubh is }(hj hhhNhNubj3)}(h``NULL``h]hNULL}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMFhjubh)}(h **Context**h]jF)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMKhjubh)}(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 }(hjhhhNhNubjF)}(h**gfp**h]hgfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh 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]jF)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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](j3)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh on success, xa_err(-EINVAL) if }(hjhhhNhNubjF)}(h **entry**h]hentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubhO 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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xas_get_order (C function)c.xas_get_orderhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h(int xas_get_order (struct xa_state *xas)h]jI)}(h'int xas_get_order(struct xa_state *xas)h](jO)}(hinth]hint}(hj$hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj hhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMuubja)}(h h]h }(hj3hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj hhhj2hMuubj)}(h xas_get_orderh]j)}(h xas_get_orderh]h xas_get_order}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](jjeh"]h$]h&]hhuh1jhj hhhj2hMuubj)}(h(struct xa_state *xas)h]j)}(hstruct xa_state *xash](je)}(hjh]hstruct}(hjahhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhj]ubja)}(h h]h }(hjnhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj]ubh)}(hhh]j)}(hxa_stateh]hxa_state}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jGsbc.xas_get_orderasbuh1hhj]ubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj]ubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj]ubj)}(hxash]hxas}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjYubah}(h]h ]h"]h$]h&]hhuh1jhj hhhj2hMuubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhj2hMuubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhj2hMuhjhhubj)}(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&]uh1jhjhhhj2hMuubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(h**Parameters** ``struct xa_state *xas`` XArray operation state. **Description** Called after xas_load, the xas should not be in an error state. **Return** A number between 0 and 63 indicating the order of the entry.h](h)}(h**Parameters**h]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hj%h]hstruct xa_state *xas}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj#ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMvhjubj)}(hhh]h)}(hXArray operation state.h]hXArray operation state.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMvhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hMvhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jF)}(hj`h]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj^ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMxhjubh)}(h?Called after xas_load, the xas should not be in an error state.h]h?Called after xas_load, the xas should not be in an error state.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMxhjubh)}(h **Return**h]jF)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMzhjubh)}(h)}(hhh](jC)}(h9int xa_get_order (struct xarray *xa, unsigned long index)h]jI)}(h8int xa_get_order(struct xarray *xa, unsigned long index)h](jO)}(hinth]hint}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhMubj)}(h xa_get_orderh]j)}(h xa_get_orderh]h xa_get_order}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMubj)}(h((struct xarray *xa, unsigned long index)h](j)}(hstruct xarray *xah](je)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxarrayh]hxarray}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj)modnameN classnameNjt%jw%)}jz%]j}%)}jp%jsbc.xa_get_orderasbuh1hhjubja)}(h h]h }(hjGhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjUhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hxah]hxa}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long indexh](jO)}(hunsignedh]hunsigned}(hj{hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjwubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjwubjO)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjwubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjwubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhjhMubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjhMhjhhubj)}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(h**Parameters** ``struct xarray *xa`` XArray. ``unsigned long index`` Index of the entry. **Return** A number between 0 and 63 indicating the order of the entry.h](h)}(h**Parameters**h]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hjh]hstruct xarray *xa}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(hXArray.h]hXArray.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhjubj)}(h,``unsigned long index`` Index of the entry. h](j)}(h``unsigned long index``h]j3)}(hjWh]hunsigned long index}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjUubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjQubj)}(hhh]h)}(hIndex of the entry.h]hIndex of the entry.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]jF)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h)}(hhh](jC)}(hZint __xa_alloc (struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, gfp_t gfp)h]jI)}(hYint __xa_alloc(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, gfp_t gfp)h](jO)}(hinth]hint}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhMubj)}(h __xa_alloch]j)}(h __xa_alloch]h __xa_alloc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjhhhjhMubj)}(hK(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, gfp_t gfp)h](j)}(hstruct xarray *xah](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hj!hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxarrayh]hxarray}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj4modnameN classnameNjt%jw%)}jz%]j}%)}jp%jsb c.__xa_allocasbuh1hhjubja)}(h h]h }(hjRhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hj`hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hxah]hxa}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj ubj)}(hu32 *idh](h)}(hhh]j)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]jN c.__xa_allocasbuh1hhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hidh]hid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj ubj)}(h void *entryh](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj ubj)}(hstruct xa_limit limith](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hj*hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxa_limith]hxa_limit}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj=modnameN classnameNjt%jw%)}jz%]jN c.__xa_allocasbuh1hhjubja)}(h h]h }(hjYhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubj)}(hlimith]hlimit}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(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&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]jN c.__xa_allocasbuh1hhj|ubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj|ubj)}(hgfph]hgfp}(hjhhhNhNubah}(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&]hhjuh1jHjjhjhhhjhMubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjhMhjhhubj)}(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&]uh1jhjhhhjhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hjh]hstruct xarray *xa}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubj)}(hhh]h)}(hXArray.h]hXArray.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hMhjubj)}(h``u32 *id`` Pointer to ID. h](j)}(h ``u32 *id``h]j3)}(hjSh]hu32 *id}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjQubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjMubj)}(hhh]h)}(hPointer to ID.h]hPointer to ID.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjubj)}(h``void *entry`` New entry. h](j)}(h``void *entry``h]j3)}(hjh]h void *entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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)}(h2``struct xa_limit limit`` Range for allocated ID. h](j)}(h``struct xa_limit limit``h]j3)}(hjh]hstruct xa_limit limit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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&]uh1jhjhMhjubj)}(h'``gfp_t gfp`` Memory allocation flags. h](j)}(h ``gfp_t gfp``h]j3)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]jF)}(hj9h]h Description}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj7ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(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 }(hjOhhhNhNubjF)}(h**xa**h]hxa}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjOubh between }(hjOhhhNhNubjF)}(h **limit.min**h]h limit.min}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjOubh and }(hjOhhhNhNubjF)}(h **limit.max**h]h limit.max}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjOubh, stores the index into the }(hjOhhhNhNubjF)}(h**id**h]hid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjOubhb pointer, then stores the entry at that index. A concurrent lookup will not see an uninitialised }(hjOhhhNhNubjF)}(h**id**h]hid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjOubh.}(hjOhhhNhNubeh}(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]jF)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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 }(hjhhhNhNubjF)}(h**gfp**h]hgfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh 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]jF)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(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 }(hjhhhNhNubjF)}(h **limit**h]hlimit}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh.}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9__xa_alloc_cyclic (C function)c.__xa_alloc_cyclichNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hlint __xa_alloc_cyclic (struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, u32 *next, gfp_t gfp)h]jI)}(hkint __xa_alloc_cyclic(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, u32 *next, gfp_t gfp)h](jO)}(hinth]hint}(hjYhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjUhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubja)}(h h]h }(hjhhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjUhhhjghMubj)}(h__xa_alloc_cyclich]j)}(h__xa_alloc_cyclich]h__xa_alloc_cyclic}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ](jjeh"]h$]h&]hhuh1jhjUhhhjghMubj)}(hV(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, u32 *next, gfp_t gfp)h](j)}(hstruct xarray *xah](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxarrayh]hxarray}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%j|sbc.__xa_alloc_cyclicasbuh1hhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hxah]hxa}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hu32 *idh](h)}(hhh]j)}(hu32h]hu32}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj modnameN classnameNjt%jw%)}jz%]jc.__xa_alloc_cyclicasbuh1hhjubja)}(h h]h }(hj)hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hj7hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hidh]hid}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(h void *entryh](jO)}(hvoidh]hvoid}(hj]hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjYubja)}(h h]h }(hjkhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjYubjr)}(hjh]h*}(hjyhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjYubj)}(hentryh]hentry}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hstruct xa_limit limith](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxa_limith]hxa_limit}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]jc.__xa_alloc_cyclicasbuh1hhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubj)}(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&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]jc.__xa_alloc_cyclicasbuh1hhjubja)}(h h]h }(hj#hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hj1hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hnexth]hnext}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj\modnameN classnameNjt%jw%)}jz%]jc.__xa_alloc_cyclicasbuh1hhjSubja)}(h h]h }(hjxhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjSubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjUhhhjghMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjQhhhjghMubah}(h]jLah ](j j eh"]h$]h&]jj)jhuh1jBhjghMhjNhhubj)}(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&]uh1jhjNhhhjghMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hjh]hstruct xarray *xa}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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&]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]j3)}(hj*h]hu32 *id}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj(ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj$ubj)}(hhh]h)}(hPointer to ID.h]hPointer to ID.}(hjChhhNhNubah}(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]j3)}(hjch]h void *entry}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjaubah}(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.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhMhjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjubj)}(h1``struct xa_limit limit`` Range of allocated ID. h](j)}(h``struct xa_limit limit``h]j3)}(hjh]hstruct xa_limit limit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]j3)}(hjh]h u32 *next}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]j3)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj 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&]uh1hhj#hMhj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jF)}(hjIh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjGubah}(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 }(hj_hhhNhNubjF)}(h**xa**h]hxa}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj_ubh between }(hj_hhhNhNubjF)}(h **limit.min**h]h limit.min}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj_ubh and }(hj_hhhNhNubjF)}(h **limit.max**h]h limit.max}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj_ubh, stores the index into the }(hj_hhhNhNubjF)}(h**id**h]hid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj_ubhb pointer, then stores the entry at that index. A concurrent lookup will not see an uninitialised }(hj_hhhNhNubjF)}(h**id**h]hid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj_ubh.. The search for an empty entry will start at }(hj_hhhNhNubjF)}(h**next**h]hnext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj_ubh# and will wrap around if necessary.}(hj_hhhNhNubeh}(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]jF)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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 }(hjhhhNhNubjF)}(h**gfp**h]hgfp}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubh 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]jF)}(hj$h]hReturn}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj"ubah}(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 }(hj:hhhNhNubjF)}(h **limit**h]hlimit}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj:ubh.}(hj:hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9__xa_set_mark (C function)c.__xa_set_markhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hKvoid __xa_set_mark (struct xarray *xa, unsigned long index, xa_mark_t mark)h]jI)}(hJvoid __xa_set_mark(struct xarray *xa, unsigned long index, xa_mark_t mark)h](jO)}(hvoidh]hvoid}(hj{hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjwhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjwhhhjhMubj)}(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&]hhuh1jhjwhhhjhMubj)}(h8(struct xarray *xa, unsigned long index, xa_mark_t mark)h](j)}(hstruct xarray *xah](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxarrayh]hxarray}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jsbc.__xa_set_markasbuh1hhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hxah]hxa}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long indexh](jO)}(hunsignedh]hunsigned}(hj*hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj&ubja)}(h h]h }(hj8hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj&ubjO)}(hlongh]hlong}(hjFhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj&ubja)}(h h]h }(hjThhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj&ubj)}(hindexh]hindex}(hjbhhhNhNubah}(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}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]jc.__xa_set_markasbuh1hhjwubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjwubj)}(hmarkh]hmark}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjwhhhjhMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjshhhjhMubah}(h]jnah ](j j eh"]h$]h&]jj)jhuh1jBhjhMhjphhubj)}(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&]uh1jhjphhhjhMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hjh]hstruct xarray *xa}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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&]uh1hhj*hMhj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hMhj ubj)}(h(``unsigned long index`` Index of entry. h](j)}(h``unsigned long index``h]j3)}(hjNh]hunsigned long index}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjLubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjHubj)}(hhh]h)}(hIndex of entry.h]hIndex of entry.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchMhj ubj)}(h ``xa_mark_t mark`` Mark number. h](j)}(h``xa_mark_t mark``h]j3)}(hjh]hxa_mark_t mark}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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 }(hjhhhNhNubj3)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh 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]jF)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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.}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9__xa_clear_mark (C function)c.__xa_clear_markhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hMvoid __xa_clear_mark (struct xarray *xa, unsigned long index, xa_mark_t mark)h]jI)}(hLvoid __xa_clear_mark(struct xarray *xa, unsigned long index, xa_mark_t mark)h](jO)}(hvoidh]hvoid}(hj@hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj<hhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM$ubja)}(h h]h }(hjOhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj<hhhjNhM$ubj)}(h__xa_clear_markh]j)}(h__xa_clear_markh]h__xa_clear_mark}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj<hhhjNhM$ubj)}(h8(struct xarray *xa, unsigned long index, xa_mark_t mark)h](j)}(hstruct xarray *xah](je)}(hjh]hstruct}(hj}hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjyubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjyubh)}(hhh]j)}(hxarrayh]hxarray}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jcsbc.__xa_clear_markasbuh1hhjyubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjyubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjyubj)}(hxah]hxa}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjuubj)}(hunsigned long indexh](jO)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjO)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubj)}(hindexh]hindex}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjuubj)}(hxa_mark_t markh](h)}(hhh]j)}(h xa_mark_th]h xa_mark_t}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjEmodnameN classnameNjt%jw%)}jz%]jc.__xa_clear_markasbuh1hhj<ubja)}(h h]h }(hjahhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj<ubj)}(hmarkh]hmark}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjuubeh}(h]h ]h"]h$]h&]hhuh1jhj<hhhjNhM$ubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhj8hhhjNhM$ubah}(h]j3ah ](j j eh"]h$]h&]jj)jhuh1jBhjNhM$hj5hhubj)}(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&]uh1jhj5hhhjNhM$ubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hjh]hstruct xarray *xa}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]j3)}(hjh]hunsigned long index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]j3)}(hjLh]hxa_mark_t mark}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjJubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM'hjFubj)}(hhh]h)}(h Mark number.h]h Mark number.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahM'hjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahM'hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Context**h]jF)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_get_mark (C function) c.xa_get_markhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hIbool xa_get_mark (struct xarray *xa, unsigned long index, xa_mark_t mark)h]jI)}(hHbool xa_get_mark(struct xarray *xa, unsigned long index, xa_mark_t mark)h](jO)}(hjh]hbool}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM6ubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhM6ubj)}(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&]hhuh1jhjhhhjhM6ubj)}(h8(struct xarray *xa, unsigned long index, xa_mark_t mark)h](j)}(hstruct xarray *xah](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxarrayh]hxarray}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj(modnameN classnameNjt%jw%)}jz%]j}%)}jp%jsb c.xa_get_markasbuh1hhjubja)}(h h]h }(hjFhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjThhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hxah]hxa}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long indexh](jO)}(hunsignedh]hunsigned}(hjzhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjvubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjvubjO)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjvubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjvubj)}(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&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]jB c.xa_get_markasbuh1hhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubj)}(hmarkh]hmark}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhM6ubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhjhM6ubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjhM6hjhhubj)}(hhh]h)}(h/Inquire whether this mark is set on this entry.h]h/Inquire whether this mark is set on this entry.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM6hj!hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM6ubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6j<j7j<j8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjFh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjDubah}(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]j3)}(hjeh]hstruct xarray *xa}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjcubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM7hj_ubj)}(hhh]h)}(hXArray.h]hXArray.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhM7hj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhM7hj\ubj)}(h(``unsigned long index`` Index of entry. h](j)}(h``unsigned long index``h]j3)}(hjh]hunsigned long index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM8hjubj)}(hhh]h)}(hIndex of entry.h]hIndex of entry.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM8hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM8hj\ubj)}(h ``xa_mark_t mark`` Mark number. h](j)}(h``xa_mark_t mark``h]j3)}(hjh]hxa_mark_t mark}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM9hjubj)}(hhh]h)}(h Mark number.h]h Mark number.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM9hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM9hj\ubeh}(h]h ]h"]h$]h&]uh1jhj@ubh)}(h**Description**h]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM;hj@ubh)}(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;hj@ubh)}(h **Context**h]jF)}(hj9h]hContext}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj7ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM>hj@ubh)}(h.Any context. Takes and releases the RCU lock.h]h.Any context. Takes and releases the RCU lock.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM>hj@ubh)}(h **Return**h]jF)}(hj`h]hReturn}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj^ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM@hj@ubh)}(hFTrue if the entry at **index** has this mark set, false if it doesn't.h](hTrue if the entry at }(hjvhhhNhNubjF)}(h **index**h]hindex}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjvubh* has this mark set, false if it doesn’t.}(hjvhhhNhNubeh}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_set_mark (C function) c.xa_set_markhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hIvoid xa_set_mark (struct xarray *xa, unsigned long index, xa_mark_t mark)h]jI)}(hHvoid xa_set_mark(struct xarray *xa, unsigned long index, xa_mark_t mark)h](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjhhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMVubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjhhhjhMVubj)}(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&]hhuh1jhjhhhjhMVubj)}(h8(struct xarray *xa, unsigned long index, xa_mark_t mark)h](j)}(hstruct xarray *xah](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxarrayh]hxarray}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jsb c.xa_set_markasbuh1hhjubja)}(h h]h }(hj2hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hj@hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hxah]hxa}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubj)}(hunsigned long indexh](jO)}(hunsignedh]hunsigned}(hjfhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjbubja)}(h h]h }(hjthhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjbubjO)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjbubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjbubj)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(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&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j. c.xa_set_markasbuh1hhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubj)}(hmarkh]hmark}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhjhhhjhMVubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhjhMVubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhjhMVhjhhubj)}(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.chMVhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMVubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6j( j7j( j8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hj2 h]h Parameters}(hj4 hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj0 ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMZhj, ubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]j3)}(hjQ h]hstruct xarray *xa}(hjS hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjO ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMWhjK ubj)}(hhh]h)}(hXArray.h]hXArray.}(hjj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjf hMWhjg ubah}(h]h ]h"]h$]h&]uh1jhjK ubeh}(h]h ]h"]h$]h&]uh1jhjf hMWhjH ubj)}(h(``unsigned long index`` Index of entry. h](j)}(h``unsigned long index``h]j3)}(hj h]hunsigned long index}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMXhj ubj)}(hhh]h)}(hIndex of entry.h]hIndex of entry.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMXhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMXhjH ubj)}(h ``xa_mark_t mark`` Mark number. h](j)}(h``xa_mark_t mark``h]j3)}(hj h]hxa_mark_t mark}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMYhj ubj)}(hhh]h)}(h Mark number.h]h Mark number.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMYhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMYhjH ubeh}(h]h ]h"]h$]h&]uh1jhj, ubh)}(h**Description**h]jF)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj 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 hhhNhNubj3)}(h``NULL``h]hNULL}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj 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]jF)}(hj7 h]hContext}(hj9 hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj5 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.}(hjM 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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_clear_mark (C function)c.xa_clear_markhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hKvoid xa_clear_mark (struct xarray *xa, unsigned long index, xa_mark_t mark)h]jI)}(hJvoid xa_clear_mark(struct xarray *xa, unsigned long index, xa_mark_t mark)h](jO)}(hvoidh]hvoid}(hj| hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjx hhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhubja)}(h h]h }(hj hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjx hhhj hMhubj)}(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&]hhuh1jhjx hhhj hMhubj)}(h8(struct xarray *xa, unsigned long index, xa_mark_t mark)h](j)}(hstruct xarray *xah](je)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhj ubja)}(h h]h }(hj hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj ubh)}(hhh]j)}(hxarrayh]hxarray}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj modnameN classnameNjt%jw%)}jz%]j}%)}jp%j sbc.xa_clear_markasbuh1hhj ubja)}(h h]h }(hj hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj ubjr)}(hjh]h*}(hj hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj ubj)}(hxah]hxa}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj ubj)}(hunsigned long indexh](jO)}(hunsignedh]hunsigned}(hj+ hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj' ubja)}(h h]h }(hj9 hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj' ubjO)}(hlongh]hlong}(hjG hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj' ubja)}(h h]h }(hjU hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj' ubj)}(hindexh]hindex}(hjc 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&] refdomainj0reftypejp% reftargetj modnameN classnameNjt%jw%)}jz%]j c.xa_clear_markasbuh1hhjx ubja)}(h h]h }(hj hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjx ubj)}(hmarkh]hmark}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhj ubeh}(h]h ]h"]h$]h&]hhuh1jhjx hhhj hMhubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjt hhhj hMhubah}(h]jo ah ](j j eh"]h$]h&]jj)jhuh1jBhj hMhhjq 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.chMhhj hhubah}(h]h ]h"]h$]h&]uh1jhjq hhhj hMhubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6j j7j j8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMlhj ubj)}(hhh](j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]j3)}(hj h]hstruct xarray *xa}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMihj ubj)}(hhh]h)}(hXArray.h]hXArray.}(hj/ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+ hMihj, ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj+ hMihj ubj)}(h(``unsigned long index`` Index of entry. h](j)}(h``unsigned long index``h]j3)}(hjO h]hunsigned long index}(hjQ hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjM ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMjhjI ubj)}(hhh]h)}(hIndex of entry.h]hIndex of entry.}(hjh hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjd hMjhje ubah}(h]h ]h"]h$]h&]uh1jhjI ubeh}(h]h ]h"]h$]h&]uh1jhjd hMjhj ubj)}(h ``xa_mark_t mark`` Mark number. h](j)}(h``xa_mark_t mark``h]j3)}(hj h]hxa_mark_t mark}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMkhj ubj)}(hhh]h)}(h Mark number.h]h Mark number.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMkhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMkhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]jF)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMmhj 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.chMmhj ubh)}(h **Context**h]jF)}(hj h]hContext}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMohj 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.chMohj ubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_find (C function) c.xa_findhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h^void * xa_find (struct xarray *xa, unsigned long *indexp, unsigned long max, xa_mark_t filter)h]jI)}(h\void *xa_find(struct xarray *xa, unsigned long *indexp, unsigned long max, xa_mark_t filter)h](jO)}(hvoidh]hvoid}(hj/ hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj+ hhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMzubja)}(h h]h }(hj> hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj+ hhhj= hMzubjr)}(hjh]h*}(hjL hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj+ hhhj= hMzubj)}(hxa_findh]j)}(hxa_findh]hxa_find}(hj] hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj+ hhhj= hMzubj)}(hO(struct xarray *xa, unsigned long *indexp, unsigned long max, xa_mark_t filter)h](j)}(hstruct xarray *xah](je)}(hjh]hstruct}(hjy hhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhju ubja)}(h h]h }(hj hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hju ubh)}(hhh]j)}(hxarrayh]hxarray}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj modnameN classnameNjt%jw%)}jz%]j}%)}jp%j_ sb c.xa_findasbuh1hhju ubja)}(h h]h }(hj hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hju ubjr)}(hjh]h*}(hj hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhju ubj)}(hxah]hxa}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjq ubj)}(hunsigned long *indexph](jO)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj ubja)}(h h]h }(hj hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj ubjO)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj ubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj ubjr)}(hjh]h*}(hj#hhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj ubj)}(hindexph]hindexp}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjq ubj)}(hunsigned long maxh](jO)}(hunsignedh]hunsigned}(hjIhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjEubja)}(h h]h }(hjWhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjEubjO)}(hlongh]hlong}(hjehhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjEubja)}(h h]h }(hjshhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjEubj)}(hmaxh]hmax}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjq 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&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j  c.xa_findasbuh1hhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubj)}(hfilterh]hfilter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjq ubeh}(h]h ]h"]h$]h&]hhuh1jhj+ hhhj= hMzubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhj' hhhj= hMzubah}(h]j" ah ](j j eh"]h$]h&]jj)jhuh1jBhj= hMzhj$ 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.chMzhjhhubah}(h]h ]h"]h$]h&]uh1jhj$ hhhj= hMzubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6j j7j j8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hj4h]hstruct xarray *xa}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj2ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM{hj.ubj)}(hhh]h)}(hXArray.h]hXArray.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhM{hjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhM{hj+ubj)}(h/``unsigned long *indexp`` Pointer to an index. h](j)}(h``unsigned long *indexp``h]j3)}(hjmh]hunsigned long *indexp}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjkubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM|hjgubj)}(hhh]h)}(hPointer to an index.h]hPointer to an index.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM|hjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhM|hj+ubj)}(h2``unsigned long max`` Maximum index to search to. h](j)}(h``unsigned long max``h]j3)}(hjh]hunsigned long max}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM}hjubj)}(hhh]h)}(hMaximum index to search to.h]hMaximum index to search to.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM}hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM}hj+ubj)}(h*``xa_mark_t filter`` Selection criterion. h](j)}(h``xa_mark_t filter``h]j3)}(hjh]hxa_mark_t filter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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~hj+ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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 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 }(hj0hhhNhNubjF)}(h**xa**h]hxa}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj0ubh which matches the }(hj0hhhNhNubjF)}(h **filter**h]hfilter}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj0ubh,, and has the lowest index that is at least }(hj0hhhNhNubjF)}(h **indexp**h]hindexp}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj0ubh and no more than }(hj0hhhNhNubjF)}(h**max**h]hmax}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj0ubh. If an entry is found, }(hj0hhhNhNubjF)}(h **indexp**h]hindexp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj0ubh 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 }(hj0hhhNhNubj3)}(h``XA_RETRY_ENTRY``h]hXA_RETRY_ENTRY}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj0ubh3; if you need to see retry entries, use xas_find().}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h **Context**h]jF)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]jF)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjubh)}(h(The entry, if found, otherwise ``NULL``.h](hThe entry, if found, otherwise }(hjhhhNhNubj3)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh.}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_find_after (C function)c.xa_find_afterhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hdvoid * xa_find_after (struct xarray *xa, unsigned long *indexp, unsigned long max, xa_mark_t filter)h]jI)}(hbvoid *xa_find_after(struct xarray *xa, unsigned long *indexp, unsigned long max, xa_mark_t filter)h](jO)}(hvoidh]hvoid}(hj+hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj'hhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMubja)}(h h]h }(hj:hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj'hhhj9hMubjr)}(hjh]h*}(hjHhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj'hhhj9hMubj)}(h xa_find_afterh]j)}(h xa_find_afterh]h xa_find_after}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ](jjeh"]h$]h&]hhuh1jhj'hhhj9hMubj)}(hO(struct xarray *xa, unsigned long *indexp, unsigned long max, xa_mark_t filter)h](j)}(hstruct xarray *xah](je)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjqubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjqubh)}(hhh]j)}(hxarrayh]hxarray}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%j[sbc.xa_find_afterasbuh1hhjqubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjqubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjqubj)}(hxah]hxa}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjmubj)}(hunsigned long *indexph](jO)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjO)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hindexph]hindexp}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjmubj)}(hunsigned long maxh](jO)}(hunsignedh]hunsigned}(hjEhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjAubja)}(h h]h }(hjShhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjAubjO)}(hlongh]hlong}(hjahhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjAubja)}(h h]h }(hjohhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjAubj)}(hmaxh]hmax}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjmubj)}(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&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]jc.xa_find_afterasbuh1hhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubj)}(hfilterh]hfilter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjmubeh}(h]h ]h"]h$]h&]hhuh1jhj'hhhj9hMubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhj#hhhj9hMubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhj9hMhj hhubj)}(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&]uh1jhj hhhj9hMubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hj0h]hstruct xarray *xa}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj.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.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhMhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMhj'ubj)}(h/``unsigned long *indexp`` Pointer to an index. h](j)}(h``unsigned long *indexp``h]j3)}(hjih]hunsigned long *indexp}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjgubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhjcubj)}(hhh]h)}(hPointer to an index.h]hPointer to an index.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj'ubj)}(h2``unsigned long max`` Maximum index to search to. h](j)}(h``unsigned long max``h]j3)}(hjh]hunsigned long max}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]j3)}(hjh]hxa_mark_t filter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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&]uh1jhj ubh)}(h**Description**h]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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 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,hhhNhNubjF)}(h**xa**h]hxa}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj,ubh which matches the }(hj,hhhNhNubjF)}(h **filter**h]hfilter}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj,ubh( and has the lowest index that is above X}(hj,hhhNhNubjF)}(h **indexp**h]hindexp}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj,ubh and no more than }(hj,hhhNhNubjF)}(h**max**h]hmax}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj,ubh. If an entry is found, }(hj,hhhNhNubjF)}(h **indexp**h]hindexp}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj,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,hhhNhNubj3)}(h``XA_RETRY_ENTRY``h]hXA_RETRY_ENTRY}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj,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.chMhj ubh)}(h **Context**h]jF)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]jF)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMhj ubh)}(h*The pointer, if found, otherwise ``NULL``.h](h!The pointer, if found, otherwise }(hjhhhNhNubj3)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh.}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_extract (C function) c.xa_extracthNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hunsigned int xa_extract (struct xarray *xa, void **dst, unsigned long start, unsigned long max, unsigned int n, xa_mark_t filter)h]jI)}(hunsigned int xa_extract(struct xarray *xa, void **dst, unsigned long start, unsigned long max, unsigned int n, xa_mark_t filter)h](jO)}(hunsignedh]hunsigned}(hj'hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj#hhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM ubja)}(h h]h }(hj6hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj#hhhj5hM ubjO)}(hinth]hint}(hjDhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj#hhhj5hM ubja)}(h h]h }(hjRhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj#hhhj5hM ubj)}(h xa_extracth]j)}(h xa_extracth]h xa_extract}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ](jjeh"]h$]h&]hhuh1jhj#hhhj5hM 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](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhj|ubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj|ubh)}(hhh]j)}(hxarrayh]hxarray}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jfsb c.xa_extractasbuh1hhj|ubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj|ubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhj|ubj)}(hxah]hxa}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjxubj)}(h void **dsth](jO)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hdsth]hdst}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjxubj)}(hunsigned long starth](jO)}(hunsignedh]hunsigned}(hjAhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj=ubja)}(h h]h }(hjOhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj=ubjO)}(hlongh]hlong}(hj]hhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj=ubja)}(h h]h }(hjkhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj=ubj)}(hstarth]hstart}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjxubj)}(hunsigned long maxh](jO)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjO)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubj)}(hmaxh]hmax}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjxubj)}(hunsigned int nh](jO)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjO)}(hinth]hint}(hjhhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjubja)}(h h]h }(hj hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubj)}(hjh]hn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjxubj)}(hxa_mark_t filterh](h)}(hhh]j)}(h xa_mark_th]h xa_mark_t}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetj8modnameN classnameNjt%jw%)}jz%]j c.xa_extractasbuh1hhj/ubja)}(h h]h }(hjThhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj/ubj)}(hfilterh]hfilter}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjxubeh}(h]h ]h"]h$]h&]hhuh1jhj#hhhj5hM ubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhjhhhj5hM ubah}(h]jah ](j j eh"]h$]h&]jj)jhuh1jBhj5hM hjhhubj)}(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&]uh1jhjhhhj5hM ubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]j3)}(hjh]hstruct xarray *xa}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]j3)}(hjh]h void **dst}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(hO``unsigned long start`` The first index in the XArray eligible to be selected. h](j)}(h``unsigned long start``h]j3)}(hj?h]hunsigned long start}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hj=ubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hj9ubj)}(hhh]h)}(h6The first index in the XArray eligible to be selected.h]h6The first index in the XArray eligible to be selected.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThM hjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThM hjubj)}(hL``unsigned long max`` The last index in the XArray eligible to be selected. h](j)}(h``unsigned long max``h]j3)}(hjxh]hunsigned long max}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjvubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM hjrubj)}(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&]uh1jhjrubeh}(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]j3)}(hjh]hunsigned int n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]j3)}(hjh]hxa_mark_t filter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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]jF)}(hj%h]h Description}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj#ubah}(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 }(hj;hhhNhNubjF)}(h**n**h]hn}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj;ubh entries that match }(hj;hhhNhNubjF)}(h **filter**h]hfilter}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj;ubh@ from the XArray. The copied entries will have indices between }(hj;hhhNhNubjF)}(h **start**h]hstart}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj;ubh and }(hj;hhhNhNubjF)}(h**max**h]hmax}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhj;ubh , inclusive.}(hj;hhhNhNubeh}(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 }(hjhhhNhNubjF)}(h **filter**h]hfilter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubht may be an XArray mark value, in which case entries which are marked with that mark will be copied. It may also be }(hjhhhNhNubj3)}(h``XA_PRESENT``h]h XA_PRESENT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh*, in which case all entries which are not }(hjhhhNhNubj3)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubh 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]jF)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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]jF)}(hjh]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(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.}(hj4hhhNhNubah}(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&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_delete_node (C function)c.xa_delete_nodehNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(hCvoid xa_delete_node (struct xa_node *node, xa_update_node_t update)h]jI)}(hBvoid xa_delete_node(struct xa_node *node, xa_update_node_t update)h](jO)}(hvoidh]hvoid}(hjchhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhj_hhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM, ubja)}(h h]h }(hjrhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hj_hhhjqhM, ubj)}(hxa_delete_nodeh]j)}(hxa_delete_nodeh]hxa_delete_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhj_hhhjqhM, ubj)}(h/(struct xa_node *node, xa_update_node_t update)h](j)}(hstruct xa_node *nodeh](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxa_nodeh]hxa_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jsbc.xa_delete_nodeasbuh1hhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hnodeh]hnode}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]jc.xa_delete_nodeasbuh1hhjubja)}(h h]h }(hj3hhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubj)}(hupdateh]hupdate}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubeh}(h]h ]h"]h$]h&]hhuh1jhj_hhhjqhM, ubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhj[hhhjqhM, ubah}(h]jVah ](j j eh"]h$]h&]jj)jhuh1jBhjqhM, hjXhhubj)}(hhh]h)}(h&Private interface for workingset code.h]h&Private interface for workingset code.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM, hjhhhubah}(h]h ]h"]h$]h&]uh1jhjXhhhjqhM, ubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6jj7jj8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM0 hjubj)}(hhh](j)}(h;``struct xa_node *node`` Node to be removed from the tree. h](j)}(h``struct xa_node *node``h]j3)}(hjh]hstruct xa_node *node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(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 be removed from the tree.h]h!Node to be removed from the tree.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM- hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM- hjubj)}(hG``xa_update_node_t update`` Function to call to update ancestor nodes. h](j)}(h``xa_update_node_t update``h]j3)}(hjh]hxa_update_node_t update}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM. 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&]uh1hhjhM. hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM. hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Context**h]jF)}(hj h]hContext}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM0 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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chM0 hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubj-)}(hhh]h}(h]h ]h"]h$]h&]entries](j9xa_destroy (C function) c.xa_destroyhNtauh1j,hjhhhNhNubj>)}(hhh](jC)}(h#void xa_destroy (struct xarray *xa)h]jI)}(h"void xa_destroy(struct xarray *xa)h](jO)}(hvoidh]hvoid}(hjehhhNhNubah}(h]h ]j[ah"]h$]h&]uh1jNhjahhhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMC ubja)}(h h]h }(hjthhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjahhhjshMC ubj)}(h xa_destroyh]j)}(h xa_destroyh]h xa_destroy}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](jjeh"]h$]h&]hhuh1jhjahhhjshMC ubj)}(h(struct xarray *xa)h]j)}(hstruct xarray *xah](je)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]jqah"]h$]h&]uh1jdhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubh)}(hhh]j)}(hxarrayh]hxarray}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj0reftypejp% reftargetjmodnameN classnameNjt%jw%)}jz%]j}%)}jp%jsb c.xa_destroyasbuh1hhjubja)}(h h]h }(hjhhhNhNubah}(h]h ]jmah"]h$]h&]uh1j`hjubjr)}(hjh]h*}(hjhhhNhNubah}(h]h ]j}ah"]h$]h&]uh1jqhjubj)}(hxah]hxa}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphhhuh1jhjubah}(h]h ]h"]h$]h&]hhuh1jhjahhhjshMC ubeh}(h]h ]h"]h$]h&]hhjuh1jHjjhj]hhhjshMC ubah}(h]jXah ](j j eh"]h$]h&]jj)jhuh1jBhjshMC hjZhhubj)}(hhh]h)}(h"Free all internal data structures.h]h"Free all internal data structures.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMC hj"hhubah}(h]h ]h"]h$]h&]uh1jhjZhhhjshMC ubeh}(h]h ](j0functioneh"]h$]h&]j5j0j6j=j7j=j8j9j:uh1j=hhhjhNhNubj<)}(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]jF)}(hjGh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjEubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMG hjAubj)}(hhh]j)}(h``struct xarray *xa`` XArray. h](j)}(h``struct xarray *xa``h]j3)}(hjfh]hstruct xarray *xa}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j2hjdubah}(h]h ]h"]h$]h&]uh1jhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMD hj`ubj)}(hhh]h)}(hXArray.h]hXArray.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMD hj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMD hj]ubah}(h]h ]h"]h$]h&]uh1jhjAubh)}(h**Description**h]jF)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMF hjAubh)}(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.chMF hjAubh)}(h **Context**h]jF)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jEhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/core-api/xarray:510: ./lib/xarray.chMJ hjAubh)}(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.chMJ hjAubeh}(h]h ] kernelindentah"]h$]h&]uh1j;hjhhhNhNubeh}(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_sourceh _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 jjjbj_jjj j jjj j jW jT jj jju nametypes}(jjj jjbjj jj jW jjuh}(jhjj j jjjj_jjjej jjj j jh jT j j jZ jjj;jDjjjjjDjIjyj~j%j*jjjjjGjLjjjPjUj j j!j!j"j"j#j#j$j$j#'j('j(j(j*j*j,j,j/j/j1j1j'4j,4j6j6j:j :jf=jk=j?j?jzBjBjFjFjJjJjNjNjQjQj]UjbUjXjXjF]jK]jajajJfjOfj{kjkjpjpjujujyjyj{j{j~j~j߀jjXj]jуjփjJjOjjjj"j҉j׉jnjsjojtjjjjƐjjjoj$j)jjjpjuj{jjjjjjjjHjMjjjjjjjj#j<jAjZj_jjjjjjjjj jj9j>jhjmjjjTjYjjjjjwj|jjj#j(jjjjj'j,jjjjjjjjjjj&j+jjjjjjjjjLjQjnjsj3j8jjjjjo jt j" j' jj#jjjVj[jXj]u 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.