Home | History | Annotate | Download | only in altboot

Lines Matching refs:bm

471 	struct boot_module *bm, *bmp;
476 bm = alloc(sizeof(struct boot_module) + strlen(name) + 1);
477 if (bm == NULL) {
482 bm->bm_kmod = (char *)(bm + 1);
483 bm->bm_len = -1;
484 bm->bm_next = NULL;
485 strcpy(bm->bm_kmod, name);
487 boot_modules = bm;
491 bmp->bm_next = bm;
501 struct boot_module *bm;
533 for (bm = boot_modules; bm != NULL; bm = bm->bm_next) {
534 fd = module_open(bm);
538 printf("WARNING: couldn't stat %s\n", bm->bm_kmod);
542 bm->bm_len = (int)st.st_size;
563 for (bm = boot_modules; bm != NULL; bm = bm->bm_next) {
564 if (bm->bm_len == -1)
566 fd = module_open(bm);
567 printf("module \"%s\" ", bm->bm_kmod);
569 if (size < bm->bm_len)
572 snprintf(bi->kmod, sizeof(bi->kmod), "%s", bm->bm_kmod);
588 module_open(struct boot_module *bm)
594 "%s/%s/%s.kmod", module_base, bm->bm_kmod, bm->bm_kmod);