Home
last modified time | relevance | path

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

/system/memory/lmkd/
Dlmkd.cpp677 static void ctrl_data_close(int dsock_idx) { in ctrl_data_close() argument
681 if (epoll_ctl(epollfd, EPOLL_CTL_DEL, data_sock[dsock_idx].sock, &epev) == -1) { in ctrl_data_close()
687 close(data_sock[dsock_idx].sock); in ctrl_data_close()
688 data_sock[dsock_idx].sock = -1; in ctrl_data_close()
691 remove_claims(data_sock[dsock_idx].pid); in ctrl_data_close()
694 static ssize_t ctrl_data_read(int dsock_idx, char* buf, size_t bufsz, struct ucred* sender_cred) { in ctrl_data_read() argument
701 ret = TEMP_FAILURE_RETRY(recvmsg(data_sock[dsock_idx].sock, &hdr, 0)); in ctrl_data_read()
724 ctrl_data_close(dsock_idx); in ctrl_data_read()
731 data_sock[dsock_idx].pid = cred->pid; in ctrl_data_read()
736 static int ctrl_data_write(int dsock_idx, char* buf, size_t bufsz) { in ctrl_data_write() argument
[all …]