diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-05-29 13:19:40 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-05-29 13:19:40 -0700 |
commit | 82083452bf6f943c6958876317198690970c4d3e (patch) | |
tree | cade1f9af0e4315317dce315a9174e376b9a4984 /.gitignore | |
parent | bd99aba1ab28288853aa133afc7534126e789332 (diff) |
libstage: support caller-supplied stage memory
When !stage_conf_t.replace and stage_conf_t.stage is non-NULL,
stage_conf_t.stage will be used for the stage memory in stage_new()
instead of allocating some.
It's up to the caller to free this memory as needed, which may safely
be done from stage_ops_t.free_func() if needed.
Note that at this time there's no way for external callers to actually
know the stage_t size, as it's entirely opaque. A future commit will
expose a padded variant of the struct, exposing its size appropriately
without making it completely public.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions