Searched refs:kmsg_fd (Results 1 – 1 of 1) sorted by relevance
51 static int kmsg_fd = -1; variable109 kmsg_fd = safe_close(kmsg_fd); in log_close_kmsg()114 if (kmsg_fd >= 0) in log_open_kmsg()117 kmsg_fd = open("/dev/kmsg", O_WRONLY|O_NOCTTY|O_CLOEXEC); in log_open_kmsg()118 if (kmsg_fd < 0) in log_open_kmsg()121 kmsg_fd = fd_move_above_stdio(kmsg_fd); in log_open_kmsg()361 console_fd = kmsg_fd = syslog_fd = journal_fd = -1; in log_forget_fds()532 if (kmsg_fd < 0) in write_to_kmsg()549 if (writev(kmsg_fd, iovec, ELEMENTSOF(iovec)) < 0) in write_to_kmsg()1322 return syslog_fd < 0 && kmsg_fd < 0 && journal_fd < 0; in log_on_console()