assoc_array_apply_edit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:


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