Home
last modified time | relevance | path

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

/system/memory/lmkd/
Dlmkd.cpp1860 int free_dscock_idx = get_free_dsock(); in ctrl_connect_handler() local
1862 if (free_dscock_idx < 0) { in ctrl_connect_handler()
1873 free_dscock_idx = 0; in ctrl_connect_handler()
1876 data_sock[free_dscock_idx].sock = accept(ctrl_sock.sock, NULL, NULL); in ctrl_connect_handler()
1877 if (data_sock[free_dscock_idx].sock < 0) { in ctrl_connect_handler()
1884 data_sock[free_dscock_idx].handler_info.data = free_dscock_idx; in ctrl_connect_handler()
1885 data_sock[free_dscock_idx].handler_info.handler = ctrl_data_handler; in ctrl_connect_handler()
1886 data_sock[free_dscock_idx].async_event_mask = 0; in ctrl_connect_handler()
1888 epev.data.ptr = (void *)&(data_sock[free_dscock_idx].handler_info); in ctrl_connect_handler()
1889 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, data_sock[free_dscock_idx].sock, &epev) == -1) { in ctrl_connect_handler()
[all …]