Home
last modified time | relevance | path

Searched refs:fdDmesg (Results 1 – 3 of 3) sorted by relevance

/system/core/logd/
Dmain.cpp181 static int fdDmesg = -1; variable
183 if (fdDmesg < 0) { in prdebug()
204 write(fdDmesg, buffer, strlen(buffer)); in prdebug()
269 if (fdDmesg >= 0) { in reinit_thread_start()
291 write(fdDmesg, reinit_message, sizeof(reinit_message)); in reinit_thread_start()
424 fdDmesg = android_get_control_file(dev_kmsg); in main()
425 if (fdDmesg < 0) { in main()
426 fdDmesg = TEMP_FAILURE_RETRY(open(dev_kmsg, O_WRONLY | O_CLOEXEC)); in main()
525 ? fdDmesg in main()
531 kl = new LogKlog(logBuf, reader, fdDmesg, fdPmesg, al != nullptr); in main()
DLogAudit.h31 int fdDmesg; // fdDmesg >= 0 is functionally bool dmesg variable
37 LogAudit(LogBuffer* buf, LogReader* reader, int fdDmesg);
DLogAudit.cpp48 LogAudit::LogAudit(LogBuffer* buf, LogReader* reader, int fdDmesg) in LogAudit() argument
52 fdDmesg(fdDmesg), in LogAudit()
78 write(fdDmesg, auditd_message, sizeof(auditd_message)); in LogAudit()
226 if ((fdDmesg >= 0) && initialized) { in logPrint()
272 writev(fdDmesg, iov, arraysize(iov)); in logPrint()
294 writev(fdDmesg, iov, arraysize(iov)); in logPrint()
330 if (((fdDmesg < 0) || !initialized) && !hasMetadata(str, str_len)) in logPrint()