Lines Matching refs:interface
46 pid_t ClatdController::getClatdPid(char* interface) { in getClatdPid() argument
47 auto it = mClatdPids.find(interface); in getClatdPid()
51 int ClatdController::startClatd(char* interface) { in startClatd() argument
52 pid_t pid = getClatdPid(interface); in startClatd()
55 ALOGE("clatd pid=%d already started on %s", pid, interface); in startClatd()
61 unsigned netId = mNetCtrl->getNetworkForInterface(interface); in startClatd()
63 ALOGE("interface %s not assigned to any netId", interface); in startClatd()
80 ALOGD("starting clatd on %s", interface); in startClatd()
83 progname += interface; in startClatd()
94 interface, in startClatd()
109 mClatdPids[interface] = pid; in startClatd()
110 ALOGD("clatd started on %s", interface); in startClatd()
116 int ClatdController::stopClatd(char* interface) { in stopClatd() argument
117 pid_t pid = getClatdPid(interface); in stopClatd()
124 ALOGD("Stopping clatd pid=%d on %s", pid, interface); in stopClatd()
128 mClatdPids.erase(interface); in stopClatd()
130 ALOGD("clatd on %s stopped", interface); in stopClatd()
135 bool ClatdController::isClatdStarted(char* interface) { in isClatdStarted() argument
137 pid_t pid = getClatdPid(interface); in isClatdStarted()
143 mClatdPids.erase(interface); // child exited, don't call waitpid on it again in isClatdStarted()