__xa_set_mark(9)
π¦ NAME π¦
__xa_set_mark β bestie, this is the one that sets this mark on this entry while you're already holding the lock π
no cap.
β¨ SYNOPSIS β¨
void __xa_set_mark (struct xarray *xa , unsigned long index , xa_mark_t mark );
π ARGUMENTS π
xaβ the XArray itself. the main character structure fr π«Άindexβ index of the entry you're eyeing up. that's the slot, not the thing in it πmarkβ mark number. which little tag you're slapping on π·οΈ
π DESCRIPTION π
so here's the vibe check πΈ you go to set a mark on an entry β but if that entry is NULL? it does not succeed. attempting to set a mark on a NULL entry does not succeed, periodt. lowkey that's the whole personality of this function π
π₯ CONTEXT π₯
any context, king β any context at all β¨ but (and this is the important bit, ngl) it expects xa_lock to be held on entry. so likeβ¦ you already locked it. this function is not doing that for you, bestie π
β οΈ xa_lock must be held on entry β that's not a suggestion, that's the assignment π
π SEE ALSO π
kernel file: ./lib/xarray.c π and likeβ¦ all of these icons, iykyk:
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_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_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)
okay that's the whole page, bestie π§ this one lives in ./lib, dated October 2026, and it goes by __xa_set_mark(9) β ate and left no crumbs πβ¨
π¦ 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