xas_init_marks(9)
β¨ xas_init_marks(9) β¨
okay so this is a page from the Kernel API Manual bestie, and it's about xas_init_marks β literally the glow-up/reset button for the marks on an entry π
πΈ NAME πΈ
xas_init_marks β Initialise all marks for the entry β¨
π¦ SYNOPSIS π¦
void xas_init_marks (const struct xa_state *xas );
π ARGUMENTS π
xasβ Array operations state. that's it, that's the whole vibe π«Ά
π DESCRIPTION π
So what this does: it initialises all the marks for the entry specified by xas. Like, every single one of them, fresh start, clean slate, main character energy β¨
Here's the tea though β if we're tracking free entries with a mark, we need to set that mark on all entries. And all the other marks? Cleared. Gone. Not invited to the party π
ngl this implementation is not as efficient as it could be β we may walk up the tree multiple times π so like, she works, but she's taking the scenic route π§
β SEE ALSO β
Kernel file ./lib/xarray.c β and the whole friend group:
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_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)
and that's the whole page bestie, periodt π
β¨ this lil cutie lives in ./lib and the version/date stamp on it is October 2026 β so yeah, she's from the future, iconic ππ¦π
π¦ 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