Lines Matching refs:pointer

18 between a "talloc context" and a "talloc pointer". Any pointer
25 and the pointer X->name would be a "child" of the talloc context "X"
63 memory context and a type, and returns a pointer to a new area of
66 The returned pointer is itself a talloc context, so you can use it as
69 The returned pointer is a "child" of the supplied context. This means
89 children. You can call talloc_free() on any pointer returned by
94 condition is if the pointer had a destructor attached to it and the
98 If this pointer has an additional parent when talloc_free() is called
122 The return value of talloc_reference() is always the original pointer
132 - you can talloc_free() any parent of the original pointer. That
133 will reduce the number of parents of this pointer by 1, and will
134 cause this pointer to be freed if it runs out of parents.
136 - you can talloc_free() the pointer itself. That will destroy the
137 most recently established parent to the pointer and leave the
138 pointer as a child of its current parent.
148 with this pointer, or must be a direct parent of ptr.
163 pointer "ptr". A destructor is a function that is called when the
164 memory used by a pointer is about to be released. The destructor
165 receives the pointer as an argument, and should return 0 for success
173 You can only place one destructor on a pointer. If you need more than
174 one destructor then you can create a zero-length child of the pointer
180 If your destructor attempts to talloc_free() the pointer that it is
200 Each talloc pointer has a "name". The name is used principally for
202 name on a pointer in as a way of "marking" pointers in your code.
204 The main use for names on pointer is for "talloc reports". See
209 pointer. It is logically equivalent to:
225 supplied pointer into the internal representation of the talloc
226 ptr. This means you must not pass a name pointer to memory that will
233 The talloc_named() function creates a named talloc pointer. It is
252 This returns the current name for the given talloc pointer. See
278 pointer. The "count" argument is the number of elements of type "type"
279 that you want the resulting pointer to hold.
290 talloc_realloc() returns the new pointer, or NULL on failure. The call
291 will fail either due to a lack of memory, or because the pointer has
306 pointer. It is typically used when the context that the pointer is
310 The talloc_steal() function returns the pointer that you pass it. It
323 by this pointer and all child pointers. Mostly useful for debugging.
334 count used by this pointer and all child pointers. Mostly useful for
349 You can pass NULL for the pointer, in which case a report is printed
360 pointer. References in the tree are shown by giving the name of the
361 pointer that is referenced.
363 You can pass NULL for the pointer, in which case a report is printed
459 This functions sets the name of the new pointer to the passed
469 This functions sets the name of the new pointer to the passed
487 This functions sets the name of the new pointer to the passed
522 as libraries sometimes want a ralloc function pointer. A realloc()
525 around a single function pointer.
539 This function checks if a pointer has the specified name. If it does
540 then the pointer is returned. It it doesn't then NULL is returned.
556 This macro allows you to force the name of a pointer to be a