xa_set_mark(9)
β¨ xa_set_mark(9) β¨
okay so bestie, welcome to the <pink>Kernel API Manual</pink> β today's main character is xa_set_mark(9) and she is, and I cannot stress this enough, so specific about what she will and will not do. π
π NAME π
xa_set_mark β set this mark on this entry. that's it. that's the whole gig. no cap. β¨
πΈ SYNOPSIS πΈ
void xa_set_mark (struct xarray *xa , unsigned long index , xa_mark_t
mark );
like look at her. three params, zero drama (until you pass a NULL entry, we'll get there). π
π¦ ARGUMENTS π¦
xaβ the XArray. the whole vibe container, your girl squad of entries. π«Άindexβ index of entry. which one of the girlies we're talking about. literally just the slot number.markβ mark number. the little sticky note π you're slapping on her.
π§ DESCRIPTION π§
so here's the tea: attempting to set a mark on a <red>NULL</red> entry does not succeed. read that again. if the entry is NULL, she's not taking the mark, no matter how cute it is. not me tryna tag a ghost π β it's giving "the vibes are simply not there." fr fr, the operation just won't land.
β CONTEXT β
process context, bestie. she takes and releases the xa_lock β so she's polite, she locks up, does her thing, hands the key back. π no funny business.
π lowkey important: she grabs xa_lock, so don't go thinking this is some lock-free free-for-all. it is not, and I would never lie to you.
π SEE ALSO π
the whole extended friend group, live from the kernel file ./lib/xarray.c π
the xas_* girlies:
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),xas_get_order(9)
and the xa/__xa side of the family:
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),xa_get_order(9),__xa_alloc(9),__xa_alloc_cyclic(9),__xa_set_mark(9),__xa_clear_mark(9),xa_get_mark(9),xa_clear_mark(9),xa_find(9),xa_find_after(9),xa_extract(9),xa_delete_node(9),xa_destroy(9)
go follow all of them, they're iconic. π₯
and that's the page!! π this one lives in ./lib, dated October 2026 β mwah, love that for us. stay hydrated, read your xarray.c, and remember: no marking NULL entries. periodt. πβ¨
π¦ 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