Lines Matching refs:cfg
115 struct config *cfg;
117 cfg= calloc(1, sizeof(struct config));
118 if(!cfg) {
122 cfg->buf= buf;
123 cfg->stack_size= DEFAULT_STACK_SIZE;
162 cfg->stack_size= strtoul(arg, NULL, 10);
165 if(cfg->kernel) {
170 cfg->kernel= calloc(1, sizeof(struct component_config));
171 if(!cfg->kernel) {
178 &cfg->kernel->path_start,
179 &cfg->kernel->path_len,
180 &cfg->kernel->args_start,
181 &cfg->kernel->args_len))
200 if(cfg->first_module) {
201 assert(cfg->last_module);
202 cfg->last_module->next= module;
203 cfg->last_module= module;
206 assert(!cfg->last_module);
207 cfg->first_module= module;
208 cfg->last_module= module;
220 if(!cfg->kernel) {
225 return cfg;
228 if(cfg) {
229 if(cfg->kernel) free(cfg->kernel);
231 struct component_config *cmp= cfg->first_module;
238 free(cfg);