Lines Matching refs:ctx

45 #define talloc(ctx, type) (type *)talloc_named_const(ctx, sizeof(type), #type)  argument
46 #define talloc_size(ctx, size) talloc_named_const(ctx, size, __location__) argument
48 #define talloc_new(ctx) talloc_named_const(ctx, 0, "talloc_new: " __location__) argument
50 #define talloc_zero(ctx, type) (type *)_talloc_zero(ctx, sizeof(type), #type) argument
51 #define talloc_zero_size(ctx, size) _talloc_zero(ctx, size, __location__) argument
53 #define talloc_zero_array(ctx, type, count) (type *)_talloc_zero_array(ctx, sizeof(type), count, #t… argument
54 #define talloc_array(ctx, type, count) (type *)_talloc_array(ctx, sizeof(type), count, #type) argument
55 #define talloc_array_size(ctx, size, count) _talloc_array(ctx, size, count, __location__) argument
57 #define talloc_realloc(ctx, p, type, count) (type *)_talloc_realloc_array(ctx, p, sizeof(type), cou… argument
58 #define talloc_realloc_size(ctx, ptr, size) _talloc_realloc(ctx, ptr, size, __location__) argument
69 #define data_blob_talloc(ctx, ptr, size) data_blob_talloc_named(ctx, ptr, size, "DATA_BLOB: "__loca…
70 #define data_blob_dup_talloc(ctx, blob) data_blob_talloc_named(ctx, (blob)->data, (blob)->length, "…
80 #define talloc_zero_p(ctx, type) talloc_zero(ctx, type) argument
81 #define talloc_p(ctx, type) talloc(ctx, type) argument
82 #define talloc_array_p(ctx, type, count) talloc_array(ctx, type, count) argument
83 #define talloc_realloc_p(ctx, p, type, count) talloc_realloc(ctx, p, type, count) argument
84 #define talloc_destroy(ctx) talloc_free(ctx) argument
126 void *_talloc_zero(const void *ctx, size_t size, const char *name);
135 void *_talloc_array(const void *ctx, size_t el_size, unsigned count, const char *name);
136 void *_talloc_zero_array(const void *ctx, size_t el_size, unsigned count, const char *name);
137 void *_talloc_realloc_array(const void *ctx, void *ptr, size_t el_size, unsigned count, const char …
140 size_t talloc_get_size(const void *ctx);
141 void *talloc_find_parent_byname(const void *ctx, const char *name);