xas_clear_mark(9)
π xas_clear_mark(9) β Kernel API Manual, bestie edition
okay so this is xas_clear_mark, straight out of the Kernel API Manual, and it's genuinely one of the cleanest little functions you'll ever meet. no cap. it clears a mark. that's the whole vibe. let's get into it π
β¨ NAME β¨
xas_clear_mark β literally just clears the mark on this entry and its parents. that's it. that's the function. iconic minimalism honestly π¦
πΈ SYNOPSIS πΈ
void xas_clear_mark (const struct xa_state *xas , xa_mark_t mark );
look at her. void return, so no "did it work?" suspense β she just does the thing and dips π
π ARGUMENTS π
xasβ the XArray operation state. this is your little passport of where you are in the tree, bestie πmarkβ the mark number. which mark are we un-marking? that one. exactly that one β
π DESCRIPTION π
so here's the tea: xas_clear_mark clears the specified mark on this entry, then walks back to the head, attempting to clear it on all the ancestor entries too. like, it's not just cleaning its own room β it's going up the whole staircase telling everyone to tidy up too π§Ήβ¨
the way that it's basically a lil' ancestor-clearing cascade? obsessed.
but β and this is the important part, don't skip it β it does nothing if xas has not been walked to an entry, or if it's in an error state. like, if you haven't actually arrived anywhere yet, or you're mid-crisis, she's simply not going to act. vibe check failed, she stays home π
fr fr: not walked to an entry, or error state = no-op. zero. nothing. don't @ me π
π₯ SEE ALSO π₯
all the siblings and cousins, and yes we're listing every single one because we don't do "etc." in this house π«Ά
Kernel file ./lib/xarray.c plus:
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_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)
and that's the whole page, bestie π this one lives in ./lib and the manual's dated October 2026 β so go forth, clear those marks, walk those ancestors, and remember: if xas is in an error state, she's not doing anything today πππ
π¦ 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