Lines Matching refs:context

18 between a "talloc context" and a "talloc pointer". Any pointer
19 returned from talloc() is itself a valid talloc context. This means
25 and the pointer X->name would be a "child" of the talloc context "X"
60 (type *)talloc(const void *context, type);
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
67 the context argument to more calls to talloc if you wish.
69 The returned pointer is a "child" of the supplied context. This means
70 that if you talloc_free() the context then the new child disappears as
73 The context argument to talloc() can be NULL, in which case a new top
74 level context is created.
78 void *talloc_size(const void *context, size_t size);
112 talloc context and talloc_free()s only the children, not the context
117 void *talloc_reference(const void *context, const void *ptr);
119 The talloc_reference() function makes "context" an additional parent
144 int talloc_unlink(const void *context, const void *ptr);
147 context passed must either be a context used in talloc_reference()
231 void *talloc_named(const void *context, size_t size, const char *fmt, ...);
236 ptr = talloc_size(context, size);
241 void *talloc_named_const(const void *context, size_t size, const char *name);
245 ptr = talloc_size(context, size);
259 This function creates a zero length named talloc context as a top
260 level context. It is equivalent to:
268 This is a utility macro that creates a new memory context hanging
269 off an exiting context, automatically naming it "talloc_new: __location__"
271 particularly useful for creating a new temporary working context.
275 (type *)talloc_realloc(const void *context, void *ptr, type, count);
283 talloc_realloc(context, NULL, type, 1) ==> talloc(context, type);
284 talloc_realloc(context, NULL, type, N) ==> talloc_array(context, type, N);
285 talloc_realloc(context, ptr, type, 0) ==> talloc_free(ptr);
287 The "context" argument is only used if "ptr" is not NULL, otherwise it
296 void *talloc_realloc_size(const void *context, void *ptr, size_t size);
305 The talloc_steal() function changes the parent context of a talloc
306 pointer. It is typically used when the context that the pointer is
350 for the top level memory context, but only if
364 for the top level memory context, but only if
377 talloc function as it establishes a "null context" that acts as the
402 talloc function as it establishes a "null context" that acts as the
422 This enables tracking of the NULL memory context without enabling leak
531 This is a handy utility function that returns a talloc context
567 this context. It does NOT account for subcontext memory.