Home
last modified time | relevance | path

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

/system/vold/
DNetlinkManager.cpp61 if ((mSock = socket(PF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC, in start()
67 if (setsockopt(mSock, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0) { in start()
72 if (setsockopt(mSock, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)) < 0) { in start()
77 if (bind(mSock, (struct sockaddr *) &nladdr, sizeof(nladdr)) < 0) { in start()
82 mHandler = new NetlinkHandler(mSock); in start()
91 close(mSock); in start()
105 close(mSock); in stop()
106 mSock = -1; in stop()
DNetlinkManager.h32 int mSock; variable
/system/core/libsysutils/src/
DSocketListener.cpp50 mSock = socketFd; in init()
57 if (mSocketName && mSock > -1) in ~SocketListener()
58 close(mSock); in ~SocketListener()
78 if (!mSocketName && mSock == -1) { in startListener()
83 if ((mSock = android_get_control_socket(mSocketName)) < 0) { in startListener()
88 SLOGV("got mSock = %d for %s", mSock, mSocketName); in startListener()
89 fcntl(mSock, F_SETFD, FD_CLOEXEC); in startListener()
92 if (mListen && listen(mSock, backlog) < 0) { in startListener()
96 mClients->push_back(new SocketClient(mSock, false, mUseCmdNum)); in startListener()
131 if (mSocketName && mSock > -1) { in stopListener()
[all …]
/system/netd/server/
DSockDiag.h50 SockDiag() : mSock(-1), mWriteSock(-1), mSocketsDestroyed(0) {} in SockDiag()
72 int mSock; variable
78 bool hasSocks() { return mSock != -1 && mWriteSock != -1; } in hasSocks()
79 void closeSocks() { close(mSock); close(mWriteSock); mSock = mWriteSock = -1; } in closeSocks()
DSockDiag.cpp76 mSock = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_INET_DIAG); in open()
84 if ((connect(mSock, reinterpret_cast<sockaddr *>(&nl), sizeof(nl)) == -1) || in open()
118 if (writev(mSock, iov, iovcnt) != (ssize_t) len) { in sendDumpRequest()
122 return checkError(mSock); in sendDumpRequest()
208 bytesread = read(mSock, buf, sizeof(buf)); in readDiagMsg()
/system/core/include/sysutils/
DSocketListener.h27 int mSock; variable