/freebsd/sys/contrib/openzfs/lib/libspl/os/linux/ |
H A D | gethostid.c | 36 unsigned long hostid; in get_spl_hostid() local 50 if (fscanf(f, "%lx", &hostid) != 1) in get_spl_hostid() 51 hostid = 0; in get_spl_hostid() 55 return (hostid); in get_spl_hostid() 61 unsigned long hostid = get_spl_hostid(); in get_system_hostid() local 70 if (hostid == 0) { in get_system_hostid() 75 hostid = 0; in get_system_hostid() 77 hostid = system_hostid; in get_system_hostid() 82 return (hostid & HOSTID_MASK); in get_system_hostid()
|
/freebsd/lib/libc/compat-43/ |
H A D | sethostid.c | 38 sethostid(long hostid) in sethostid() argument 44 sysctl(mib, 2, NULL, NULL, &hostid, sizeof hostid); in sethostid()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/mmp/ |
H A D | mmp.kshlib | 73 typeset hostid=$1 77 [ $(hostid) = "$hostid" ] 114 log_note "Starting ztest in the background as hostid $HOSTID1" 142 function mmp_pool_set_hostid # pool hostid 145 typeset hostid=$2 148 log_must mmp_set_hostid $hostid
|
H A D | mmp_hostid.ksh | 65 log_must mv $HOSTID_FILE $mntpnt_etc/hostid 75 log_must ln -s $mntpnt_etc/hostid $HOSTID_FILE
|
/freebsd/sys/contrib/openzfs/contrib/dracut/90zfs/ |
H A D | module-setup.sh.in | 30 hostid \ 70 if ! inst_simple -H @sysconfdir@/hostid; then 73 mark_hostonly @sysconfdir@/hostid
|
/freebsd/contrib/bsnmp/snmpd/ |
H A D | action.c | 93 char *hostid; in init_actvals() local 106 if ((hostid = act_getkernint(KERN_HOSTID)) == NULL) in init_actvals() 110 len += strlen(hostid) + 1; in init_actvals() 115 free(hostid); in init_actvals() 118 sprintf(systemg.descr, "%s %s %s %s", uts.nodename, hostid, uts.sysname, in init_actvals() 140 free(hostid); in init_actvals() 151 char *hostid; in init_snmpd_engine() local 164 if ((hostid = act_getkernint(KERN_HOSTID)) == NULL) in init_snmpd_engine() 167 if (strlen(hostid) > SNMP_ENGINE_ID_SIZ - snmpd_engine.engine_len) { in init_snmpd_engine() 169 hostid, SNMP_ENGINE_ID_SIZ - snmpd_engine.engine_len); in init_snmpd_engine() [all …]
|
/freebsd/sbin/hastd/ |
H A D | parse.y | 732 unsigned long hostid; variable 769 bufsize = sizeof(hostid); 770 if (sysctlbyname("kern.hostid", &hostid, &bufsize, NULL, 0) < 0) { 774 (void)snprintf(buf, sizeof(buf), "hostid%lu", hostid); 802 unsigned long hostid; in node_names() local 833 bufsize = sizeof(hostid); in node_names() 834 if (sysctlbyname("kern.hostid", &hostid, &bufsize, NULL, 0) < 0) { in node_names() 838 (void)snprintf(buf, sizeof(buf), "hostid%lu", hostid); in node_names()
|
/freebsd/sys/contrib/openzfs/cmd/ |
H A D | zgenhostid.c | 132 uint32_t hostid = input_i; in main() local 133 int written = fwrite(&hostid, 1, 4, fp); in main()
|
/freebsd/sys/contrib/openzfs/lib/libzfs/ |
H A D | libzfs_status.c | 227 uint64_t hostid = 0; in check_status() local 314 (void) nvlist_lookup_uint64(config, ZPOOL_CONFIG_HOSTID, &hostid); in check_status() 315 if (hostid != 0 && (unsigned long)hostid != system_hostid && in check_status()
|
/freebsd/lib/libnvmf/ |
H A D | libnvmf.h | 218 void nvmf_controller_serial(char *buf, size_t len, u_long hostid); 264 const uint8_t hostid[16], uint16_t cntlid, const char *subnqn, 302 int nvmf_hostid_from_hostuuid(uint8_t hostid[16]);
|
H A D | nvmf_host.c | 42 const uint8_t hostid[16], uint16_t cntlid, const char *subnqn, in nvmf_connect() 109 memcpy(data.hostid, hostid, sizeof(data.hostid)); in nvmf_connect() 447 nvmf_hostid_from_hostuuid(uint8_t hostid[16]) in nvmf_hostid_from_hostuuid() 468 uuid_enc_le(hostid, &hostuuid); in nvmf_hostid_from_hostuuid()
|
H A D | nvmf_controller.c | 141 static const char hostid_zero[sizeof(data->hostid)]; in nvmf_accept() 259 if (memcmp(data->hostid, hostid_zero, sizeof(hostid_zero)) == 0) { in nvmf_accept() 262 offsetof(struct nvmf_fabric_connect_data, hostid)); in nvmf_accept()
|
/freebsd/sys/net/ |
H A D | if_epair.c | 570 uint64_t hostid; in epair_generate_mac() local 589 getcredhostid(curthread->td_ucred, (unsigned long *)&hostid); in epair_generate_mac() 590 if (hostid == 0) in epair_generate_mac() 591 arc4rand(&hostid, sizeof(hostid), 0); in epair_generate_mac() 602 key[1] = (uint32_t)(hostid & 0xffffffff); in epair_generate_mac() 603 key[2] = (uint32_t)((hostid >> 32) & 0xfffffffff); in epair_generate_mac()
|
/freebsd/sbin/nvmecontrol/ |
H A D | fabrics.c | 26 static uint8_t hostid[16]; variable 37 error = nvmf_hostid_from_hostuuid(hostid); in init_hostid() 256 qp = nvmf_connect(na, &qparams, 0, NVME_MIN_ADMIN_ENTRIES, hostid, in connect_discovery_adminq() 319 qp = nvmf_connect(na, params, 0, NVMF_MIN_ADMIN_MAX_SQ_SIZE, hostid, in connect_nvm_adminq() 529 io[i] = nvmf_connect(na, &qparams, i + 1, queue_size, hostid, in connect_nvm_queues()
|
H A D | resv.c | 421 e->ctrlr[i].hostid[0], e->ctrlr[i].hostid[1]); in resvreport() 431 s->ctrlr[i].hostid); in resvreport()
|
/freebsd/sys/contrib/openzfs/module/os/linux/spl/ |
H A D | spl-generic.c | 681 hostid_read(uint32_t *hostid) in hostid_read() argument 719 *hostid = (value & HW_HOSTID_MASK); in hostid_read() 732 uint32_t hostid; in zone_get_hostid() local 739 if (hostid_read(&hostid) == 0) in zone_get_hostid() 740 return (hostid); in zone_get_hostid()
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | spa_config.c | 419 unsigned long hostid = 0; in spa_config_generate() local 470 hostid = spa_get_hostid(spa); in spa_config_generate() 471 if (hostid != 0) in spa_config_generate() 472 fnvlist_add_uint64(config, ZPOOL_CONFIG_HOSTID, hostid); in spa_config_generate()
|
/freebsd/sbin/pfctl/tests/files/ |
H A D | pf0022.in | 8 set hostid 1
|
H A D | pf0022.ok | 10 set hostid 0x00000001
|
H A D | pf0055.in | 11 set hostid 1
|
H A D | pf0055.ok | 22 set hostid 0x00000001
|
/freebsd/sys/dev/nvmf/controller/ |
H A D | nvmft_controller.c | 69 memcpy(ctrlr->hostid, data->hostid, sizeof(ctrlr->hostid)); in nvmft_controller_alloc() 214 if (memcmp(ctrlr->hostid, data->hostid, sizeof(ctrlr->hostid)) != 0) { in nvmft_handoff_io_queue() 220 offsetof(struct nvmf_fabric_connect_data, hostid)); in nvmft_handoff_io_queue()
|
/freebsd/libexec/rc/ |
H A D | netstart | 36 /etc/rc.d/hostid ${_start}
|
/freebsd/libexec/rc/rc.d/ |
H A D | hostid | 55 ${SYSCTL} kern.hostid=${id} >/dev/null
|
/freebsd/sys/kern/ |
H A D | kern_xxx.c | 96 return (kernel_sysctl(td, name, 2, NULL, NULL, &uap->hostid, in osethostid() 97 sizeof(uap->hostid), NULL, 0)); in osethostid()
|