xas_store(9)
β¨ xas_store(9) β¨
okay so this is a page straight out of the Kernel API Manual, bestie β xas_store(9) is the main character here and we're gonna get you so comfy with it π
π NAME π
xas_store β literally just store this entry in the XArray. that's the whole vibe β¨
πΈ SYNOPSIS πΈ
void * xas_store (struct xa_state *xas , void *entry );
π¦ ARGUMENTS π¦
xasβ the XArray operation state, aka the little context buddy that knows what's going on π«Άentryβ the new entry. the fresh one. the replacement. slay π
π DESCRIPTION π
okay so here's the tea π₯ β if xas is operating on a multi-index entry, then the entry returned by this function is, and I quote, "essentially meaningless" π it may be an internal entry, or it may be NULL β and it can be NULL even if there are non-NULL entries at some of the indices covered by the range π
and before you panic: this is not a problem for any current users, and it can be changed if needed. so likeβ¦ it's giving known quirk, not it's giving bug π
β RETURN β
the old entry at this index π (yep, you get the previous one back β little souvenir π)
π SEE ALSO π
this is the part where the whole friend group shows up, so buckle in π¦ the kernel file is ./lib/xarray.c and the squad is:
xas_load(9), xas_nomem(9), xas_free_nodes(9), xas_create_range(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), xas_find_conflict(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)
like I said. the whole group chat ππ
ngl if you made it this far you're lowkey an XArray girlie now. no cap π§ββοΈ
and that's a wrap, bestie π«Ά this one lives in ./lib, dated October 2026 β go forth and store responsibly π
β¨
π¦ 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