Home
last modified time | relevance | path

Searched refs:hostid (Results 1 – 25 of 40) sorted by relevance

12

/titanic_41/usr/src/ucblib/libucb/port/sys/
H A Dgethostid.c56 unsigned long hostid; in gethostid() local
68 hostid = strtoul(name, &end, 10); in gethostid()
69 if (hostid == 0 && end == name) { in gethostid()
72 return ((long) hostid); in gethostid()
/titanic_41/usr/src/cmd/hostid/smf/
H A Dsvc-hostid36 if [ -f /etc/hostid ]; then
39 host=`/usr/bin/hostid`
40 echo "# DO NOT EDIT" > /etc/hostid
42 printf "\"%s\"\n" $r >> /etc/hostid
H A DMakefile28 MANIFEST = hostid.xml
29 METHOD = svc-hostid
/titanic_41/usr/src/lib/libc/port/gen/
H A Dgethostid.c44 unsigned long hostid; in gethostid() local
52 hostid = strtoul(name, &end, 10); in gethostid()
55 return ((long)hostid); in gethostid()
/titanic_41/usr/src/cmd/fm/fmadm/common/
H A Dfaulty.c202 hostid_t hostid; member
284 if (hostp->hostid.platform && in find_hostid_in_list()
285 strcmp(hostp->hostid.platform, platform) == 0 && in find_hostid_in_list()
286 hostp->hostid.server && in find_hostid_in_list()
287 strcmp(hostp->hostid.server, server) == 0 && in find_hostid_in_list()
288 (chassis == NULL || hostp->hostid.chassis == NULL || in find_hostid_in_list()
289 strcmp(chassis, hostp->hostid.chassis) == 0) && in find_hostid_in_list()
290 (product_sn == NULL || hostp->hostid.product_sn == NULL || in find_hostid_in_list()
291 strcmp(product_sn, hostp->hostid.product_sn) == 0) && in find_hostid_in_list()
292 (domain == NULL || hostp->hostid.domain == NULL || in find_hostid_in_list()
[all …]
/titanic_41/usr/src/cmd/avs/ncall/
H A Dncalladm.c78 char hostid[32]; in ncall_cfg_open() local
84 if (snprintf(hostid, sizeof (hostid), "%lx", gethostid()) >= in ncall_cfg_open()
85 sizeof (hostid)) { in ncall_cfg_open()
105 cfg_resource(cfg, hostid); in ncall_cfg_open()
/titanic_41/usr/src/lib/libzfs/common/
H A Dlibzfs_status.c195 uint64_t hostid = 0; in check_status() local
218 (void) nvlist_lookup_uint64(config, ZPOOL_CONFIG_HOSTID, &hostid); in check_status()
219 if (hostid != 0 && (unsigned long)hostid != gethostid() && in check_status()
H A Dlibzfs_import.c454 uint64_t hostid; in get_configs() local
566 hostid = 0; in get_configs()
568 ZPOOL_CONFIG_HOSTID, &hostid) == 0) { in get_configs()
570 ZPOOL_CONFIG_HOSTID, hostid); in get_configs()
811 if (hostid != 0) { in get_configs()
813 hostid) == 0); in get_configs()
/titanic_41/usr/src/uts/common/fs/zfs/
H A Dspa_config.c364 unsigned long hostid = 0; in spa_config_generate() local
400 hostid = zone_get_hostid(NULL); in spa_config_generate()
406 (void) ddi_strtoul(hw_serial, NULL, 10, &hostid); in spa_config_generate()
408 if (hostid != 0) { in spa_config_generate()
410 hostid) == 0); in spa_config_generate()
/titanic_41/usr/src/cmd/sysdef/
H A Dsysdef.c204 char hostid[256], *end; in main() local
241 if (sysinfo(SI_HW_SERIAL, hostid, sizeof (hostid)) == -1) { in main()
245 hostval = strtoul(hostid, &end, 10); in main()
246 if (hostval == 0 && end == hostid) { in main()
248 "sysinfo not numeric: \"%s\"\n", hostid); in main()
/titanic_41/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_config.c112 ulong_t hostid; in ndmpd_config_get_host_info_v2() local
133 hostid = strtoul(hostidstr, 0, 0); in ndmpd_config_get_host_info_v2()
134 (void) snprintf(hostidstr, sizeof (hostidstr), "%lx", hostid); in ndmpd_config_get_host_info_v2()
135 reply.hostid = hostidstr; in ndmpd_config_get_host_info_v2()
295 ulong_t hostid; in ndmpd_config_get_host_info_v3() local
318 hostid = strtoul(hostidstr, 0, 0); in ndmpd_config_get_host_info_v3()
319 (void) snprintf(hostidstr, sizeof (hostidstr), "%lx", hostid); in ndmpd_config_get_host_info_v3()
320 reply.hostid = hostidstr; in ndmpd_config_get_host_info_v3()
H A Dndmp.x372 string hostid<>;
438 string hostid<>;
/titanic_41/usr/src/cmd/boot/filelist/i386/
H A Dfilelist.safe8 etc/hostid
H A Dfilelist.ramdisk19 etc/hostid
/titanic_41/usr/src/cmd/hostid/
H A DMakefile26 PROG= hostid
/titanic_41/usr/src/uts/i86pc/os/
H A Dstartup.c2858 int32_t hostid = (int32_t)HW_INVALID_HOSTID; in set_soft_hostid() local
2882 hostid = (int32_t)atoi(hw_serial); in set_soft_hostid()
2890 if ((hostid == HW_INVALID_HOSTID) && in set_soft_hostid()
2895 hostid = uuid_to_hostid(smsys.smbs_uuid); in set_soft_hostid()
2903 if (hostid == HW_INVALID_HOSTID) { in set_soft_hostid()
2906 hostid = (int32_t)tenmicrodata & 0x0CFFFFF; in set_soft_hostid()
2908 hostid = (int32_t)tsc & 0x0CFFFFF; in set_soft_hostid()
2944 hostid = (int32_t)tmp; in set_soft_hostid()
2958 if (hostid == HW_INVALID_HOSTID) /* didn't find a hostid */ in set_soft_hostid()
2969 return (hostid); in set_soft_hostid()
/titanic_41/usr/src/cmd/zonecfg/
H A Dzonecfg_lex.l299 <TSTATE>hostid { return HOSTID; }
300 <CSTATE>hostid { return HOSTID; }
/titanic_41/usr/src/cmd/make/bin/
H A Dglobals.cc176 long int hostid; variable
/titanic_41/usr/src/ucbcmd/
H A DMakefile110 hostid \
/titanic_41/usr/src/cmd/
H A DMakefile.check112 hostid/smf \
H A DMakefile193 hostid \
/titanic_41/usr/src/uts/common/sys/scsi/adapters/mpt_sas/
H A Dmptsas_var.h1207 #define MPTSAS_SET_HOST_ID(hostid) (hostid | ((1 << hostid) << 16)) argument
/titanic_41/usr/src/pkg/manifests/
H A Dcompatibility-ucb.mf185 link path=usr/ucb/hostid target=../bin/hostid
/titanic_41/usr/src/man/man1/
H A DMakefile160 hostid.1 \
/titanic_41/usr/src/cmd/make/include/mk/
H A Ddefs.h291 extern long int hostid;

12