Lines Matching defs:hostid
58 MODULE_PARM_DESC(spl_hostid, "The system hostid.");
642 * Read the unique system identifier from the /etc/hostid file.
644 * The behavior of /usr/bin/hostid on Linux systems with the
647 * 1. Generate the value if the /etc/hostid file does not exist
648 * or if the /etc/hostid file is less than four bytes in size.
650 * 2. If the /etc/hostid file is at least 4 bytes, then return
661 * coreutils: src/hostid.c
665 * The /etc/hostid file on Solaris is a text file that often reads:
671 * hostid of 4f442023 because the default comment constitutes
678 MODULE_PARM_DESC(spl_hostid_path, "The system hostid file (/etc/hostid)");
681 hostid_read(uint32_t *hostid)
719 *hostid = (value & HW_HOSTID_MASK);
726 * Return the system hostid. Preferentially use the spl_hostid module option
727 * when set, otherwise use the value in the /etc/hostid file.
732 uint32_t hostid;
739 if (hostid_read(&hostid) == 0)
740 return (hostid);