Lines Matching defs:bm
88 struct boot_module *bm;
90 TAILQ_FOREACH(bm, &boot_modules, entries) {
91 fn(bm->module_name);
98 struct boot_module *bm;
105 TAILQ_FOREACH(bm, &boot_modules, entries) {
106 if (strcmp(bm->module_name, module_name) == 0)
111 bm = alloc(sizeof(*bm));
113 bm->module_name = alloc(slen);
114 memcpy(bm->module_name, module_name, slen);
115 TAILQ_INSERT_TAIL(&boot_modules, bm, entries);
121 struct boot_module *bm;
127 TAILQ_FOREACH(bm, &boot_modules, entries) {
128 if (strcmp(bm->module_name, module_name) == 0) {
129 TAILQ_REMOVE(&boot_modules, bm, entries);
130 dealloc(bm->module_name, strlen(bm->module_name) + 1);
131 dealloc(bm, sizeof(*bm));
140 struct boot_module *bm;
142 while ((bm = TAILQ_FIRST(&boot_modules)) != NULL) {
143 TAILQ_REMOVE(&boot_modules, bm, entries);
144 dealloc(bm->module_name, strlen(bm->module_name) + 1);
145 dealloc(bm, sizeof(*bm));