xas_store(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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