assoc_array_apply_edit(9)
assoc_array_apply_edit(9) π
okay bestie, welcome to the Kernel API Manual β this page is all about assoc_array_apply_edit, and honestly it's a little iconic. β¨
πΈ NAME πΈ
assoc_array_apply_edit β apply an edit script to an associative array.
β¨ SYNOPSIS β¨
void assoc_array_apply_edit (struct assoc_array_edit *edit );
π ARGUMENTS π
editβ the script to apply. that's the whole argument, bestie, no hidden extras π
π¦ DESCRIPTION π¦
So here's the vibe: this function applies an edit script to an associative array to effect an insertion, a deletion, or a clearance. π«Ά
And because the edit script includes preallocated memory, this is guaranteed not to fail. no cap. π
The edit script, dead objects, and dead metadata will be scheduled for destruction after an RCU grace period. why? so the people doing read-only accesses on the array can continue to do so under the RCU read lock whilst the edit is taking place. literally so considerate. πβ¨
π SEE ALSO π
Kernel file ./lib/assoc_array.c says hi too, along with these besties:
assoc_array_iterate(9)assoc_array_find(9)assoc_array_destroy(9)assoc_array_insert(9)assoc_array_insert_set_object(9)assoc_array_delete(9)assoc_array_clear(9)assoc_array_cancel_edit(9)assoc_array_gc(9)
okay that's the whole page, bestie π source/version is ./lib, and this one is dated October 2026. catch you in the next manpage! π«Άπ
π¦ 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