Home
last modified time | relevance | path

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

/system/core/lmkd/libpsi/
Dpsi.c78 int register_psi_monitor(int epollfd, int fd, void* data) { in register_psi_monitor() argument
84 res = epoll_ctl(epollfd, EPOLL_CTL_ADD, fd, &epev); in register_psi_monitor()
91 int unregister_psi_monitor(int epollfd, int fd) { in unregister_psi_monitor() argument
92 return epoll_ctl(epollfd, EPOLL_CTL_DEL, fd, NULL); in unregister_psi_monitor()
/system/core/lmkd/libpsi/include/psi/
Dpsi.h48 int register_psi_monitor(int epollfd, int fd, void* data);
54 int unregister_psi_monitor(int epollfd, int fd);
/system/core/lmkd/
Dlmkd.c194 static int epollfd; variable
830 if (epoll_ctl(epollfd, EPOLL_CTL_DEL, data_sock[dsock_idx].sock, &epev) == -1) { in ctrl_data_close()
978 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, data_sock[free_dscock_idx].sock, &epev) == -1) { in ctrl_connect_handler()
1762 if (register_psi_monitor(epollfd, fd, &vmpressure_hinfo[level]) < 0) { in init_mp_psi()
1775 if (unregister_psi_monitor(epollfd, fd) < 0) { in destroy_mp_psi()
1846 ret = epoll_ctl(epollfd, EPOLL_CTL_ADD, evfd, &epev); in init_mp_common()
1876 epollfd = epoll_create(MAX_EPOLL_EVENTS); in init()
1877 if (epollfd == -1) { in init()
1902 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, ctrl_sock.sock, &epev) == -1) { in init()
1963 nevents = epoll_wait(epollfd, events, maxevents, delay); in mainloop()
[all …]
/system/core/healthd/
Dhealthd_mode_charger.cpp678 int epollfd; in healthd_mode_charger_init() local
686 epollfd = ev_get_epollfd(); in healthd_mode_charger_init()
687 healthd_register_event(epollfd, charger_event_handler, EVENT_WAKEUP_FD); in healthd_mode_charger_init()