Home
last modified time | relevance | path

Searched refs:nodename (Results 1 – 25 of 339) sorted by relevance

12345678910>>...14

/illumos-gate/usr/src/uts/sun4u/chicago/io/fpc/
H A Dfpc-impl-4u.c57 char *nodename; member
134 char *nodename = NULL; in fpc_platform_node_init() local
154 nodename = kmem_zalloc(nodename_size, KM_SLEEP); in fpc_platform_node_init()
159 (void) strcpy(nodename, name); in fpc_platform_node_init()
160 (void) strcat(nodename, ":"); in fpc_platform_node_init()
161 (void) strcat(nodename, PCI_MINOR_REG); in fpc_platform_node_init()
162 platform_specific_data->nodename = nodename; in fpc_platform_node_init()
193 if (nodename) in fpc_platform_node_init()
194 kmem_free(nodename, nodename_size); in fpc_platform_node_init()
205 if (plat_arg->nodename) in fpc_platform_node_fini()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dndievents.c46 char nodename[MAXNAMELEN]; in dip_to_pathname() local
55 if (mdb_readstr(nodename, sizeof (nodename), in dip_to_pathname()
60 if (sizeof (nodename) > (buflen - strlen(path))) { in dip_to_pathname()
64 strncpy(path, nodename, sizeof (nodename)); in dip_to_pathname()
79 if (mdb_readstr(nodename, sizeof (nodename), in dip_to_pathname()
97 (void) mdb_snprintf(bp, buflen - strlen(path), "/%s", nodename); in dip_to_pathname()
100 nodename, addr_str); in dip_to_pathname()
/illumos-gate/usr/src/cmd/uname/
H A Duname.c60 char *nodename; in main() local
114 nodename = optarg; in main()
135 int len = strlen(nodename); in main()
143 if (sysinfo(SI_SET_HOSTNAME, nodename, len) < 0) { in main()
165 (void) fprintf(stdout, fs, sizeof (un->nodename), un->nodename); in main()
207 (void) fprintf(stdout, "Node = %.*s\n", sizeof (un->nodename), in main()
208 un->nodename); in main()
/illumos-gate/usr/src/uts/common/xen/io/
H A Dxenbus_client.c130 err = xenbus_scanf(xbt, dev->nodename, "state", "%d", &current_state); in xenbus_switch_state()
141 err = xenbus_printf(xbt, dev->nodename, "state", "%d", state); in xenbus_switch_state()
159 path_buffer = kmem_alloc(strlen("error/") + strlen(dev->nodename) + in error_path()
163 (void) strcpy(path_buffer + strlen("error/"), dev->nodename); in error_path()
190 dev->nodename, printf_buffer); in common_dev_error()
196 dev->nodename, printf_buffer); in common_dev_error()
236 if (xenbus_rm(0, dev->nodename, "error") != 0) in xenbus_dev_ok()
238 dev->nodename); in xenbus_dev_ok()
H A Dxenbus_probe.c68 int err = xenbus_gather(XBT_NULL, xendev->nodename, in read_otherend_details()
73 "reading other end details from %s", xendev->nodename); in read_otherend_details()
79 xendev->nodename); in read_otherend_details()
/illumos-gate/usr/src/cmd/hostname/
H A Dhostname.c66 char *nodename = NULL; in main() local
111 nodename = argv[optind]; in main()
112 if (sethostname(nodename, strlen(nodename)) < 0) { in main()
/illumos-gate/usr/src/uts/common/io/
H A Dgen_drv.c66 char *nodename; member
898 char *nodename; in gen_ioctl() local
907 nodename = dstatep->nodename; in gen_ioctl()
987 nodename, instance)); in gen_ioctl()
1003 nodename, instance)); in gen_ioctl()
1032 nodename, instance); in gen_ioctl()
1037 nodename, instance, state)); in gen_ioctl()
1064 nodename, instance); in gen_ioctl()
1093 nodename, instance, i)); in gen_ioctl()
1156 nodename, instance)); in gen_ioctl()
[all …]
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/
H A Ddr.c287 char *nodename; in construct_cpu_node() local
290 nodename = di_node_name(dn); /* PICL_PROP_NAME */ in construct_cpu_node()
292 err = ptree_create_and_add_node(plath, nodename, PICL_CLASS_CPU, in construct_cpu_node()
347 char *nodename; in find_cpu() local
351 nodename = di_node_name(cnode); in find_cpu()
352 if (nodename == NULL) in find_cpu()
354 if (strcmp(nodename, OBP_CPU) == 0) { in find_cpu()
490 char *nodename; in add_cpus() local
498 nodename = di_node_name(cnode); in add_cpus()
499 if (nodename == NULL) in add_cpus()
[all …]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/enchilada/envd/
H A Dpiclenvsetup.c399 char *pname, *nodename, *devfs_path; in add_sensor_nodes_and_props() local
421 nodename = snodep->sensor_name; in add_sensor_nodes_and_props()
427 nodename, err); in add_sensor_nodes_and_props()
473 nodename); in add_sensor_nodes_and_props()
516 char *pname, *nodename, *devfs_path; in add_disk_nodes_and_props() local
543 nodename = dnodep->disk_name; in add_disk_nodes_and_props()
549 nodename, err); in add_disk_nodes_and_props()
611 nodename); in add_disk_nodes_and_props()
682 nodename = fnodep->fan_name; in add_fan_nodes_and_props()
688 nodename, err); in add_fan_nodes_and_props()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Duname.c139 char nodename[MAXHOSTNAME]; member
169 if (gethostname(ut->nodename, sizeof(ut->nodename) - 1)) in uname()
172 strncpy(ut->nodename, "local", sizeof(ut->nodename) - 1); in uname()
178 ut->sysname = ut->nodename; in uname()
387 if (sizeof(ut.nodename) > 9 || gethostname(s, sizeof(buf))) in b_uname()
389 s = ut.nodename; in b_uname()
475 extra(nodename); in b_uname()
/illumos-gate/usr/src/uts/sparc/os/
H A Dbootdev.c106 char *unit_address, *nodename; in i_devi_to_promname() local
147 nodename = ddi_node_name(idip); in i_devi_to_promname()
155 nodename = ddi_node_name(cdip); in i_devi_to_promname()
163 (void) strcat(prom_path, nodename); in i_devi_to_promname()
219 char *unit_address, *minorname, *nodename; in i_devname_to_promname() local
326 nodename = ddi_node_name(dip); in i_devname_to_promname()
333 nodename = ddi_node_name(cdip); in i_devname_to_promname()
339 (void) strcat(prom_path, nodename); in i_devname_to_promname()
/illumos-gate/usr/src/lib/libdevice/
H A Ddevctl.c91 if (DCP(hdl)->nodename != NULL) in devctl_release()
92 free(DCP(hdl)->nodename); in devctl_release()
231 char *nodename, *unitsep, *minorsep, *chop; in dc_mkhndl() local
298 nodename = chop + 1; in dc_mkhndl()
303 tok = strtok(nodename, "@"); in dc_mkhndl()
386 nodename = chop + 1; in dc_mkhndl()
387 unitsep = strchr(nodename, '@'); in dc_mkhndl()
388 minorsep = strchr(nodename, ':'); in dc_mkhndl()
408 (void) snprintf(dcp->nodename, MAXNAMELEN, "%s", nodename); in dc_mkhndl()
1141 if ((nodename == NULL) || *nodename == '\0') { in devctl_ddef_alloc()
[all …]
/illumos-gate/usr/src/lib/libprtdiag/common/
H A Dpdevinfo_sun4v.c244 char *nodename; in sun4v_get_node_by_name() local
246 nodename = alloca(strlen(name) + 1); in sun4v_get_node_by_name()
247 if (nodename == NULL) in sun4v_get_node_by_name()
255 nodename, (strlen(name) + 1)); in sun4v_get_node_by_name()
262 if (strcmp(nodename, name) == 0) { in sun4v_get_node_by_name()
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/chicago/envd/
H A Dpiclenvsetup.c389 char *pname, *nodename, *devfs_path; in add_sensor_nodes_and_props() local
419 nodename = snodep->sensor_name; in add_sensor_nodes_and_props()
425 nodename, err); in add_sensor_nodes_and_props()
470 nodename); in add_sensor_nodes_and_props()
513 char *pname, *nodename, *devfs_path; in add_disk_nodes_and_props() local
545 nodename = dnodep->disk_name; in add_disk_nodes_and_props()
551 nodename, err); in add_disk_nodes_and_props()
613 nodename); in add_disk_nodes_and_props()
656 char *pname, *nodename, *devfs_path; in add_fan_nodes_and_props() local
688 nodename = fnodep->fan_name; in add_fan_nodes_and_props()
[all …]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/taco/envd/
H A Dpiclenvsetup.c330 char *pname, *nodename, *devfs_path; in add_sensor_nodes_and_props() local
351 nodename = snodep->sensor_name; in add_sensor_nodes_and_props()
352 err = ptree_create_and_add_node(nodeh, nodename, in add_sensor_nodes_and_props()
357 nodename, err); in add_sensor_nodes_and_props()
403 nodename); in add_sensor_nodes_and_props()
449 char *pname, *nodename, *devfs_path; in add_fan_nodes_and_props() local
472 nodename = fnodep->fan_name; in add_fan_nodes_and_props()
473 err = ptree_create_and_add_node(nodeh, nodename, in add_fan_nodes_and_props()
478 nodename, err); in add_fan_nodes_and_props()
529 nodename); in add_fan_nodes_and_props()
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lw8/frutree/
H A Dpiclfrutree.c741 char *nodename = sgfrunode->nodename; in add_fru_node() local
756 if (IS_DIMM_NODE(nodename)) { in add_fru_node()
820 if (IS_ECACHE_NODE(nodename)) { in add_fru_node()
832 if (IS_DIMM_NODE(nodename)) { in add_fru_node()
1440 sizeof (nodename)); in find_child_by_name()
2135 if (strcmp(cp->nodename, nodename) == 0) { in get_fruhdl_from_parent()
2709 sizeof (nodename)); in get_dimm_status()
3089 if (IS_DIMM_NODE(nodename) || IS_PROC_NODE(nodename) || in add_board_status()
3090 IS_SB_NODE(nodename) || IS_IB_NODE(nodename) || in add_board_status()
3091 IS_PSU_NODE(nodename) || IS_FT_NODE(nodename) || in add_board_status()
[all …]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/grover/envd/
H A Dpiclenvsetup.c449 char *pname, *nodename, *refnode, *devfs_path; in add_sensor_nodes_and_props() local
491 nodename = snodep->sensor_name; in add_sensor_nodes_and_props()
492 err = ptree_create_and_add_node(nodeh, nodename, in add_sensor_nodes_and_props()
497 nodename, err); in add_sensor_nodes_and_props()
565 nodename); in add_sensor_nodes_and_props()
623 char *pname, *nodename, *devfs_path; in add_fan_nodes_and_props() local
651 nodename = fnodep->fan_name; in add_fan_nodes_and_props()
652 err = ptree_create_and_add_node(nodeh, nodename, in add_fan_nodes_and_props()
657 nodename, err); in add_fan_nodes_and_props()
707 nodename); in add_fan_nodes_and_props()
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/excalibur/envd/
H A Dpiclenvsetup.c472 char *pname, *nodename, *refnode, *devfs_path; in add_sensor_nodes_and_props() local
514 nodename = snodep->sensor_name; in add_sensor_nodes_and_props()
515 err = ptree_create_and_add_node(nodeh, nodename, in add_sensor_nodes_and_props()
520 nodename, err); in add_sensor_nodes_and_props()
603 nodename); in add_sensor_nodes_and_props()
661 char *pname, *nodename, *devfs_path; in add_fan_nodes_and_props() local
689 nodename = fnodep->fan_name; in add_fan_nodes_and_props()
690 err = ptree_create_and_add_node(nodeh, nodename, in add_fan_nodes_and_props()
695 nodename, err); in add_fan_nodes_and_props()
745 nodename); in add_fan_nodes_and_props()
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_lun.c385 char *nodename = NULL; in iscsi_lun_virt_create() local
398 inq->inq_dtype, NULL, &nodename, &compatible, &ncompatible); in iscsi_lun_virt_create()
401 if (nodename == NULL) { in iscsi_lun_virt_create()
412 mdi_rtn = mdi_pi_alloc_compatible(ihp->hba_dip, nodename, in iscsi_lun_virt_create()
478 scsi_hba_nodename_compatible_free(nodename, compatible); in iscsi_lun_virt_create()
495 char *nodename = NULL; in iscsi_lun_phys_create() local
516 inq->inq_dtype, NULL, &nodename, &compatible, &ncompatible); in iscsi_lun_phys_create()
521 if (nodename == NULL) { in iscsi_lun_phys_create()
529 ndi_rtn = ndi_devi_alloc(ihp->hba_dip, nodename, in iscsi_lun_phys_create()
597 scsi_hba_nodename_compatible_free(nodename, compatible); in iscsi_lun_phys_create()
/illumos-gate/usr/src/cmd/picl/plugins/common/devtree/
H A Dpicldevtree.c1419 char *nodename; in construct_picl_platform() local
1425 if (nodename == NULL) in construct_picl_platform()
1464 char *nodename; in construct_obp_node() local
1469 if (nodename == NULL) in construct_obp_node()
1479 err = ptree_create_and_add_node(parh, nodename, nodename, &anodeh); in construct_obp_node()
1558 char *nodename; in construct_devinfo_tree() local
1565 if (nodename == NULL) in construct_devinfo_tree()
1609 char *nodename; in update_subtree() local
1627 if (nodename == NULL) { in update_subtree()
3685 char *nodename; in picldevtree_evhandler() local
[all …]
/illumos-gate/usr/src/uts/intel/promif/
H A Dprom_emul.c87 char *nodename; in promif_create_node() local
99 nodename = ddi_node_name(dip); in promif_create_node()
100 promif_create_prop(pnp, "name", nodename, strlen(nodename) + 1, in promif_create_node()
/illumos-gate/usr/src/uts/sun4/io/efcode/
H A Dfc_ops.c477 char nodename[OBP_MAXPROPNAME]; in fco_new_device() local
548 bzero(nodename, OBP_MAXPROPNAME); in fco_new_device()
549 if (copyinstr(s, nodename, OBP_MAXPROPNAME - 1, NULL)) in fco_new_device()
584 if (ndi_devi_alloc(pdev, nodename, DEVI_SID_NODEID, &cdev)) { in fco_new_device()
605 } else if (strcmp(ddi_node_name(cdev), nodename) != 0) { in fco_new_device()
607 ddi_node_name(cdev), nodename); in fco_new_device()
608 if (ndi_devi_set_nodename(cdev, nodename, 0)) { in fco_new_device()
615 (uchar_t *)nodename, strlen(nodename) + 1)) { in fco_new_device()
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Dutil.c777 char nodename[MAXNAMELEN]; in dhcp_add_hostname_opt() local
796 dhcp_get_nodename(nodename, sizeof (nodename))) { in dhcp_add_hostname_opt()
797 reqhost = nodename; in dhcp_add_hostname_opt()
1018 char nodename[MAXNAMELEN], *reqhost; in dhcp_assemble_fqdn() local
1033 dhcp_get_nodename(nodename, sizeof (nodename))) { in dhcp_assemble_fqdn()
1034 reqhost = nodename; in dhcp_assemble_fqdn()
/illumos-gate/usr/src/cmd/logadm/
H A Dtester595 $nodename = `/bin/uname -n`; chomp $nodename;
632 nodename $nodename
667 $nodename = `/bin/uname -n`; chomp $nodename;
703 nodename $nodename
/illumos-gate/usr/src/uts/common/rpc/sec/
H A Dauth_kern.c126 char *nodename = uts_nodename(); in authkern_marshal() local
138 namelen = (uint32_t)strlen(nodename); in authkern_marshal()
184 bcopy(nodename, ptr, namelen); in authkern_marshal()

12345678910>>...14