Lines Matching refs:hn
445 const char *hn; in context_update_kernel_hostname() local
453 hn = c->data[PROP_STATIC_HOSTNAME]; in context_update_kernel_hostname()
458 hn = transient_hn; in context_update_kernel_hostname()
463 hn = _hn_free = get_default_hostname(); in context_update_kernel_hostname()
464 if (!hn) in context_update_kernel_hostname()
470 r = sethostname_idempotent(hn); in context_update_kernel_hostname()
482 log_debug("Hostname was already set to <%s>.", hn); in context_update_kernel_hostname()
484 log_info("Hostname set to <%s> (%s)", hn, hostname_source_to_string(hns)); in context_update_kernel_hostname()
486 hostname_update_source_hint(hn, hns); in context_update_kernel_hostname()
641 _cleanup_free_ char *hn = NULL; in property_get_hostname() local
644 r = gethostname_strict(&hn); in property_get_hostname()
649 hn = get_default_hostname(); in property_get_hostname()
650 if (!hn) in property_get_hostname()
654 return sd_bus_message_append(reply, "s", hn); in property_get_hostname()
683 _cleanup_free_ char *hn = NULL; in property_get_default_hostname() local
685 hn = get_default_hostname(); in property_get_default_hostname()
686 if (!hn) in property_get_default_hostname()
689 return sd_bus_message_append(reply, "s", hn); in property_get_default_hostname()
1158 _cleanup_free_ char *hn = NULL, *dhn = NULL, *in = NULL, *text = NULL, in method_describe() local
1192 r = gethostname_strict(&hn); in method_describe()
1197 hn = get_default_hostname(); in method_describe()
1198 if (!hn) in method_describe()
1226 JSON_BUILD_PAIR("Hostname", JSON_BUILD_STRING(hn)), in method_describe()