Lines Matching defs:object

121  * callback more than once - though every object should be passed at least
134 int (*iterator)(const void *object,
293 * assoc_array_find - Find an object by index key
296 * @index_key: The key to the object.
298 * Find an object in an associative array by walking through the internal tree
299 * to the node that should contain the object and then searching the leaves
300 * there. NULL is returned if the requested object was not found in the array.
945 * assoc_array_insert - Script insertion of an object into an associative array
949 * @object: The object to insert.
952 * object in an associative array. This results in an edit script that can
966 void *object)
978 BUG_ON(assoc_array_ptr_is_meta(object));
985 edit->leaf = assoc_array_leaf_to_ptr(object);
1022 * assoc_array_insert_set_object - Set the new object pointer in an edit script
1024 * @object: The object pointer to set.
1026 * Change the object to be inserted in an edit script. The object pointed to
1027 * by the old object is not freed. This must be done prior to applying the
1030 void assoc_array_insert_set_object(struct assoc_array_edit *edit, void *object)
1032 BUG_ON(!object);
1033 edit->leaf = assoc_array_leaf_to_ptr(object);
1060 * assoc_array_delete - Script deletion of an object from an associative array
1063 * @index_key: The key to the object.
1065 * Precalculate and preallocate a script for the deletion of an object from an
1069 * The function returns a pointer to an edit script if the object was found,
1070 * NULL if the object was not found or -ENOMEM.
1433 * @iterator: A callback function to pass judgement on each object.
1439 * The iterator function is asked to pass judgement upon each object in the
1440 * array. If it returns false, the object is discard and if it returns true,
1441 * the object is kept. If it returns true, it must increment the object's
1455 bool (*iterator)(void *object, void *iterator_data),
1529 * counting on the object for us.