xas_set_mark(9)
π xas_set_mark(9) β from the Kernel API Manual, bestie
okay so picture this: you're deep in XArray land, you've got an entry, and you want to mark it. not just the entry though β the whole ancestor situation above it too. that's this function. she's giving "i told everyone in the group chat" energy. π
β¨ NAME β¨
xas_set_mark β Sets the mark on this entry and its parents. fr fr, that's the whole pitch. π
π¦ SYNOPSIS π¦
void xas_set_mark (const struct xa_state *xas , xa_mark_t mark );
πΈ ARGUMENTS πΈ
xasβ the XArray operation state. your little passport through the tree, yk? πmarkβ Mark number. which mark bestie, pick one. π
π DESCRIPTION π
So here's what goin on: xas_set_mark sets the specified mark on this entry, and then β this is the iconic part β it walks up the tree setting it on all the ancestor entries too. no cap, the whole bloodline gets the mark. π
it does nothing if xas has not been walked to an entry, or is in an error state. like, nothing at all. it's not gonna guess for you. π
π SEE ALSO π
Kernel file ./lib/xarray.c β and honestly the whole XArray cinematic universe:
xas_load(9)xas_nomem(9)xas_free_nodes(9)xas_create_range(9)xas_store(9)xas_get_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)
mwah π that's the page! this lil cutie lives in ./lib, dated October 2026 β stay marked, stay iconic, and go read xas_get_mark(9) next, iykyk π«Άβ¨
π¦ 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