xa_get_mark(9)
π xa_get_mark(9) β Kernel API Manual β¨
okay so bestie, this is xa_get_mark(9) from the Kernel API Manual and it's literally the "is this lil mark on this entry?" checker π stay with me, it's short and it slays.
πΈ NAME πΈ
xa_get_mark β Inquire whether this mark is set on this entry. that's it, that's the whole job π
β¨ SYNOPSIS β¨
bool xa_get_mark (struct xarray *xa , unsigned long index , xa_mark_t
mark );
it returns a bool, no cap π«Ά
π¦ ARGUMENTS π¦
xaβ XArray. the actual array we're poking at πindexβ Index of entry. which slot we're looking at, iykyk πmarkβ Mark number. which mark we're checking for, fr fr β
π DESCRIPTION π
okay so here's the tea: this function uses the RCU read lock. which means the result may be out of date by the time it returns π like it literally could have changed the millisecond after handing you the answer.
so if you need the result to be stable, use a lock. that's not optional bestie, that's the whole caveat π
π§ CONTEXT π§
Any context. Takes and releases the RCU lock. main character energy in every context honestly πβ¨
π₯ RETURN π₯
Trueβ if the entry atindexhas this mark set πfalseβ if it doesn't π«
π 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_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_set_mark(9)xa_clear_mark(9)xa_find(9)xa_find_after(9)xa_extract(9)xa_delete_node(9)xa_destroy(9)
like, that's the entire group chat, they all ate π
and that's the page bestie π₯° it lives under ./lib, dated October 2026 β mwah, go check your marks, ily ππ¦πΈ
π¦ 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