Lines Matching defs:entry

272 	BAM_DPRINTF(("%s: ptr on entry: %s\n", fcn, ptr));
295 BAM_DPRINTF(("%s: ptr on entry: %s\n", fcn, ptr));
315 * in "kernel/unix", we upgrade it to a 32-bit entry. If it ends in
316 * "kernel/amd64/unix", we upgrade it to the default entry. Otherwise,
338 * This function is only called to convert a multiboot entry to a dboot entry
346 cvt_kernel_line(line_t *line, const char *osroot, entry_t *entry)
363 if (!(entry->flags & BAM_ENTRY_MULTIBOOT)) {
368 if (entry->flags & BAM_ENTRY_FAILSAFE) {
464 if (entry->flags & BAM_ENTRY_FAILSAFE) {
523 cvt_module_line(line_t *line, entry_t *entry)
532 if (!(entry->flags & BAM_ENTRY_MULTIBOOT)) {
537 if (entry->flags & BAM_ENTRY_FAILSAFE) {
555 line->arg = s_strdup(entry->flags & BAM_ENTRY_FAILSAFE ?
571 entry_t *entry;
588 for (entry = mp->entries; entry; entry = entry->next) {
589 if (entry->flags & (BAM_ENTRY_BOOTADM|BAM_ENTRY_LU))
591 BAM_DPRINTF(("%s: found hand entry #: %d\n", fcn,
592 entry->entryNum));
598 hand_list[hand_num - 1] = entry->entryNum;
620 entry_t *entry;
632 for (entry = estart; entry; entry = entry->next) {
634 if (!(entry->flags & (BAM_ENTRY_BOOTADM|BAM_ENTRY_LU)) &&
636 BAM_DPRINTF(("%s: skipping hand entry #: %d\n",
637 fcn, entry->entryNum));
641 if (entry->flags & BAM_ENTRY_ROOT) {
642 for (line = entry->start; line; line = line->next) {
644 if (line == entry->end) {
645 BAM_DPRINTF(("%s: entry has "
659 return (entry);
661 if (line == entry->end) {
662 BAM_DPRINTF(("%s: entry has ended\n",
667 } else if (entry->flags & BAM_ENTRY_FINDROOT) {
668 for (line = entry->start; line; line = line->next) {
670 if (line == entry->end) {
671 BAM_DPRINTF(("%s: entry has "
685 return (entry);
687 if (line == entry->end) {
688 BAM_DPRINTF(("%s: entry has ended\n",
696 "opt: %d\n", fcn, entry->entryNum));
697 return (entry);
701 BAM_DPRINTF(("%s: no matching entry found\n", fcn));
711 * the current state of the menu entry, it does its best to
712 * convert the menu entry to the new state. In the process
723 entry_t *entry;
734 entry = find_matching_entry(mp->entries, grubsign, grubroot, root_opt);
735 while (entry != NULL) {
736 if (entry->flags & BAM_ENTRY_FINDROOT) {
738 BAM_DPRINTF(("%s: entry %d already converted to "
739 "findroot\n", fcn, entry->entryNum));
740 entry = find_matching_entry(entry->next, grubsign,
744 for (line = entry->start; line; line = line->next) {
746 if (line == entry->end) {
747 BAM_DPRINTF(("%s: entry has ended\n",
765 bam_add_line(mp, entry, line, newlp);
767 entry->flags &= ~BAM_ENTRY_ROOT;
768 entry->flags |= BAM_ENTRY_FINDROOT;
779 if (line == entry->end) {
780 BAM_DPRINTF(("%s: entry has ended\n", fcn));
784 entry = find_matching_entry(entry->next, grubsign, grubroot,
800 entry_t *entry;
805 entry = find_matching_entry(mp->entries, grubsign, grubroot, root_opt);
806 while (entry != NULL) {
807 if (entry->flags & BAM_ENTRY_HV) {
808 BAM_DPRINTF(("%s: entry %d already converted to "
809 "xvm HV\n", fcn, entry->entryNum));
812 entry = find_matching_entry(entry->next, grubsign, grubroot,
819 BAM_DPRINTF(("%s: added xVM HV entry via add_boot_entry()\n", fcn));
837 entry_t *entry;
844 entry = find_matching_entry(mp->entries, grubsign, grubroot, root_opt);
845 while (entry != NULL) {
846 for (line = entry->start; line; line = line->next) {
848 if (line == entry->end) {
849 BAM_DPRINTF(("%s: entry has ended\n",
862 * entry, something funny is going on and
866 ret = cvt_kernel_line(line, osroot, entry);
882 ret = cvt_module_line(line, entry);
898 if (line == entry->end) {
899 BAM_DPRINTF(("%s: entry has ended\n", fcn));
903 entry = find_matching_entry(entry->next, grubsign, grubroot,