Home
last modified time | relevance | path

Searched refs:pmsg_fd (Results 1 – 2 of 2) sorted by relevance

/system/logging/liblog/
Dpmsg_writer.cpp32 static atomic_int pmsg_fd; variable
37 if (pmsg_fd != 0) { in GetPmsgFd()
56 if (!pmsg_fd.compare_exchange_strong(uninitialized_value, new_fd)) { in GetPmsgFd()
64 if (pmsg_fd > 0) { in PmsgClose()
65 close(pmsg_fd); in PmsgClose()
67 pmsg_fd = 0; in PmsgClose()
96 if (pmsg_fd <= 0) { in PmsgWrite()
150 ret = TEMP_FAILURE_RETRY(writev(pmsg_fd, newVec, i)); in PmsgWrite()
/system/logging/logd/
DLogTags.cpp505 static int pmsg_fd = -1; in WritePmsgEventLogTags() local
506 if (pmsg_fd < 0) { in WritePmsgEventLogTags()
507 pmsg_fd = TEMP_FAILURE_RETRY(open("/dev/pmsg0", O_WRONLY | O_CLOEXEC)); in WritePmsgEventLogTags()
509 if (pmsg_fd < 0) return; in WritePmsgEventLogTags()
582 TEMP_FAILURE_RETRY(writev(pmsg_fd, Vec, arraysize(Vec))); in WritePmsgEventLogTags()
585 TEMP_FAILURE_RETRY(writev(pmsg_fd, Vec, arraysize(Vec))); in WritePmsgEventLogTags()
589 TEMP_FAILURE_RETRY(writev(pmsg_fd, Vec, arraysize(Vec))); in WritePmsgEventLogTags()