xas_find_conflict(9)
π¦ xas_find_conflict(9) π¦
okay so this is a page from the Kernel API Manual, and bestie, it's a short one but it's a baddie β it's literally the function that finds you the next present entry in a range π
β¨ NAME β¨
xas_find_conflict β find the next present entry in a range. That's it, that's the whole job π
πΈ SYNOPSIS πΈ
void * xas_find_conflict (struct xa_state *xas );
like, you hand it a state and it hands you back a pointer, no cap β¨
π ARGUMENTS π
xasβ the XArray operation state π«Ά that's the vibe, that's the whole input, she's lowkey carrying the entire operation
π DESCRIPTION π
The xas describes both a range and a position within that range. So it's not just "where am I" β it's "where am I and what's my window," which is honestly main character energy of it π
π₯ CONTEXT π₯
Any context. Periodt. Works anywhere π
β οΈ ok but fr fr, it expects xa_lock to be held. Like, that's not optional, bestie β the lock needs to already be in your hand before you call this. Don't skip that step π¨
β RETURN β
The next entry in the range covered by xas, or NULL π
so like β entry if there's one, NULL if there isn't. Simple. Iconic. Ate. π
π§ SEE ALSO π§
the whole friend group, iykyk β this is the Kernel file ./lib/xarray.c crew:
xas_load(9)xas_nomem(9)xas_free_nodes(9)xas_create_range(9)xas_store(9)xas_get_mark(9)xas_set_mark(9)xas_clear_mark(9)xas_init_marks(9)xas_split_alloc(9)xas_split(9)xas_try_split_min_order(9)xas_try_split(9)xas_pause(9)xas_find(9)xas_find_marked(9)xa_load(9)__xa_erase(9)xa_erase(9)__xa_store(9)xa_store(9)__xa_cmpxchg(9)__xa_insert(9)xa_store_range(9)xas_get_order(9)xa_get_order(9)__xa_alloc(9)__xa_alloc_cyclic(9)__xa_set_mark(9)__xa_clear_mark(9)xa_get_mark(9)xa_set_mark(9)xa_clear_mark(9)xa_find(9)xa_find_after(9)xa_extract(9)xa_delete_node(9)xa_destroy(9)
and that's the whole page bestie, go forth and find your entries π¦π
sign-off szn: this lil masterpiece lives in ./lib, it's tagged October 2026, and it's filed under xas_find_conflict(9) β mwah, no notes πβ¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms