__xa_erase(9)
β¨ __xa_erase(9) β¨
okay so bestie, this page is straight outta the Kernel API Manual, and it's all about erasing an entry from the XArray while you're locked. let's get into it π
π NAME π
__xa_erase β Erase this entry from the XArray while locked. π
πΈ SYNOPSIS πΈ
void * __xa_erase (struct xarray *xa , unsigned long index );
π¦ ARGUMENTS π¦
xaβ XArray.indexβ Index into array.
π« DESCRIPTION π«
After this function returns, loading from index will return NULL β like, literally no entry, just NULL energy π. If the index is part of a multi-index entry, all indices will be erased and none of the entries will be part of a multi-index entry. that's the whole behavior, periodt β¨
π CONTEXT π
Any context. On entry, it expects xa_lock to be held β so hold that lock, bestie. that's the vibe check π«Ά
π RETURN π
The entry which used to be at this index β that's what you get back π
π SEE ALSO π
- Kernel file:
./lib/xarray.c - Function squad:
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_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)
okay bestie, that's the whole page π«Ά source/version: ./lib; date: October 2026; page: __xa_erase(9). slay π
π¦ 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