Lines Matching +full:auto +full:- +full:poll
9 #include <phosphor-logging/elog-errors.hpp>
10 #include <phosphor-logging/elog.hpp>
11 #include <phosphor-logging/lg2.hpp>
12 #include <phosphor-logging/log.hpp>
47 auto r = sd_event_add_io(event.get(), &sourcePtr, fd, EPOLLPRI | EPOLLERR, in registerCallBack()
54 strerror(-r)); in registerCallBack()
60 void Error::addWatch(bool poll) in addWatch() argument
67 if (poll) in addWatch()
102 auto error = static_cast<Error*>(userData); in processEvents()
104 error->analyzeEvent(); in processEvents()
113 int len = -1; in analyzeEvent()
114 auto r = ioctl(fd, FIONREAD, &len); in analyzeEvent()
124 // A non-zero data indicates an error condition in analyzeEvent()
126 auto data = readFile(len); in analyzeEvent()
139 auto data = std::make_unique<char[]>(len + 1); in readFile()
140 auto retries = 3; in readFile()
141 auto delay = std::chrono::milliseconds{100}; in readFile()
149 // bytes -or- value '0', then it just means we are fine in readFile()
150 auto r = read(fd, data.get(), len); in readFile()
153 retries--; in readFile()
168 // Need to seek to START, else the poll returns immediately telling in readFile()
170 auto r = lseek(fd, 0, SEEK_SET); in readFile()