Home
last modified time | relevance | path

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

/hardware/interfaces/gnss/common/utils/default/
DDeviceFileReader.cpp35 int gnss_fd, epoll_fd; in getDataFromDeviceFile() local
36 if ((gnss_fd = open(deviceFilePath.c_str(), O_RDWR | O_NONBLOCK)) == -1) { in getDataFromDeviceFile()
39 if (write(gnss_fd, command.c_str(), command.size()) <= 0) { in getDataFromDeviceFile()
40 close(gnss_fd); in getDataFromDeviceFile()
46 close(gnss_fd); in getDataFromDeviceFile()
53 ev.data.fd = gnss_fd; in getDataFromDeviceFile()
55 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, gnss_fd, &ev) == -1) { in getDataFromDeviceFile()
56 close(gnss_fd); in getDataFromDeviceFile()
63 close(gnss_fd); in getDataFromDeviceFile()
73 bytes_read = read(gnss_fd, &inputBuffer, INPUT_BUFFER_SIZE); in getDataFromDeviceFile()
[all …]