assoc_array_insert(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– assoc_array_insert(9) β€” Kernel API Manual πŸ’–

🌸 NAME 🌸

Script insertion of an object into an associative array. Bestie, that is literally the whole plot. ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

struct assoc_array_edit * assoc_array_insert (struct assoc_array *array
, const struct assoc_array_ops *ops , const void *index_key , void
*object );

πŸŽ€ ARGUMENTS πŸŽ€

  • array β€” the array to insert into, bestie.
  • ops β€” the operations to use.
  • index_key β€” the key to insert at.
  • object β€” the object to insert.

✨ DESCRIPTION ✨

Okay so this function precalculates and preallocates a script for inserting or replacing an object in an associative array. The result is an edit script that can either be applied or cancelled. πŸ’…

The function returns a pointer to an edit script or -ENOMEM. No cap. πŸ’–

The caller should lock against other modifications, and must continue to hold that lock until assoc_array_apply_edit has been called. Like, do not let go early β€” the lock stays held until that call happens. πŸ”’

Accesses to the tree may take place concurrently with this function, provided they hold the RCU read lock. πŸ¦‹

πŸ‘‘ SEE ALSO πŸ‘‘


πŸ’Œ source/version: ./lib Β· date: October 2026 Β· page: assoc_array_insert(9) β€” mwah! πŸ’‹

πŸ“¦ where this page comes from