Lines Matching defs:node

58 /* alias node searching return values */
70 #define OBP_NO_ALIAS_NODE 0x8 /* No alias node */
451 devfs_uefi_destroy_bootopt_node(uefi_boot_dev_t *node)
453 /* free node resources */
455 /* free node */
456 free(node);
465 uefi_boot_dev_t *node;
468 node = list_remove_tail(list);
469 devfs_uefi_destroy_bootopt_node(node);
482 uefi_boot_dev_t *node;
497 node = (uefi_boot_dev_t *)malloc(sizeof (uefi_boot_dev_t));
498 if (node == NULL) {
502 list_link_init(&node->list_linkage);
503 list_insert_tail(list, node);
505 node->bootopt = -1;
506 node->bootndx = -1;
507 node->logdev = strrchr(p, '/');
509 if (node->logdev == NULL) {
514 node->logdev++; /* skip '/' */
522 uefi_boot_dev_t *node)
531 node->bootopt = -1;
532 node->new = B_FALSE;
534 if (uefirt_var_boot_get_bootopt(hdl, (char *)node->logdev,
551 node->bootopt = bootopt[i];
555 node->bootopt, &node->bootndx);
571 node->bootopt,
579 node->bootopt, description);
586 if (node->bootopt < 0) {
587 rv = devfs_uefi_create_bootopt(hdl, (char *)node->logdev);
591 node->bootopt = rv;
592 node->new = B_TRUE;
604 uefi_boot_dev_t *node;
628 node = list_head(&bootopt_list);
629 while (node != NULL) {
630 (void) devfs_uefi_get_bootopt_bootopt(hdl, node);
631 node = list_next(&bootopt_list, node);
635 node = list_head(&bootopt_list);
636 while (node != NULL) {
639 node2 = list_next(&bootopt_list, node);
643 if (node->bootopt == node2->bootopt) {
656 node = list_next(&bootopt_list, node);
662 node = list_head(&bootopt_list);
663 while (node != NULL) {
664 if (node->bootopt < 0) {
668 if (node->bootndx > bootndx)
669 bootndx = node->bootndx;
670 node = list_next(&bootopt_list, node);
674 node = list_head(&bootopt_list);
675 while (node != NULL) {
677 if (node->new) {
679 node->bootopt, ++bootndx);
681 node = list_next(&bootopt_list, node);
686 node = list_head(&bootopt_list);
687 while (node != NULL) {
688 if (node->new) {
690 node->bootopt);
692 node = list_next(&bootopt_list, node);
711 uefi_boot_dev_t *node;
763 /* allocate node */
764 node = (uefi_boot_dev_t *)malloc(
766 if (node == NULL) {
771 list_link_init(&node->list_linkage);
772 list_insert_tail(&bootopt_list, node);
773 node->bootopt = boot_ids[i];
774 node->logdev = logdev[l];
789 node = list_head(&bootopt_list);
790 while (node != NULL) {
798 devroot, node->logdev);
806 node = list_next(&bootopt_list, node);
1633 check_logical_dev(const char *node, const struct stat *node_stat, int flags,
1647 if ((link_buf_len = readlink(node, (void *)link_buf, MAXPATHLEN))
1672 if ((dev->name = strdup(node)) == NULL) {
1863 /* strip off any minor node info at the end of the path */
2051 * If there is no alias node, or there are no aliases that correspond
2184 * search the aliases node by definition - compile a list of
2560 * device pathname associated with it in the /aliases node.
2654 * search a prom node for a property name
2690 * return the aliases node.