Home
last modified time | relevance | path

Searched refs:hostName (Results 1 - 21 of 21) sorted by relevance

/drivers/hdf_core/adapter/uhdf2/host/
H A Ddevhost.c147 static void SetHostProperties(int argc, char **argv, const char *hostName) in SetHostProperties() argument
149 SetProcTitle(argv, hostName); in SetHostProperties()
150 StartMemoryHook(hostName); in SetHostProperties()
172 const char *hostName = argv[DEVHOST_HOST_NAME_POS]; in main() local
173 HDF_LOGI("hdf device host %{public}s %{public}d start", hostName, hostId); in main()
174 SetHostProperties(argc, argv, hostName); in main()
175 struct IDevHostService *instance = DevHostServiceNewInstance(hostId, hostName); in main()
180 HDF_LOGD("create IDevHostService of %{public}s success", hostName); in main()
182 HDF_LOGD("%{public}s start device service begin", hostName); in main()
194 HDF_LOGI("%{public}s start loop", hostName); in main()
[all...]
/drivers/hdf_core/adapter/uhdf2/security/src/
H A Dhdf_security.c36 #define HDF_SEC_HOST_NAME "hostName"
220 const char *hostName = NULL; in HdfRegisterAllDevSecId() local
221 HcsGetString(hostRoot, HDF_SEC_HOST_NAME, &hostName, NULL); in HdfRegisterAllDevSecId()
222 ret = HdfRegisterSecurityId(hostName, perms); in HdfRegisterAllDevSecId()
231 int32_t HdfSetCurrentHostSecurity(const char *hostName, int32_t procId) in HdfSetCurrentHostSecurity() argument
233 return HdfUpdateSecurityId(hostName, (uint64_t)procId, HDF_SECURE_SET_CUR_ID); in HdfSetCurrentHostSecurity()
236 void HdfDelSecurity(const char *hostName) in HdfDelSecurity() argument
238 if (hostName == NULL) { in HdfDelSecurity()
241 int32_t ret = HdfUpdateSecurityId(hostName, 0, HDF_SECURE_DEL_CUR_ID); in HdfDelSecurity()
243 HDF_LOGE("%{public}s delete %{public}s security failed", __func__, hostName); in HdfDelSecurity()
[all...]
/drivers/hdf_core/adapter/uhdf2/security/include/
H A Dhdf_security.h28 int32_t HdfSetCurrentHostSecurity(const char *hostName, int32_t procId);
29 void HdfDelSecurity(const char *hostName);
/drivers/hdf_core/framework/core/manager/include/
H A Ddevhost_service_clnt.h29 const char *hostName; member
34 struct DevHostServiceClnt *DevHostServiceClntNewInstance(uint16_t hostId, const char *hostName);
H A Dhdf_host_info.h18 const char *hostName; member
/drivers/hdf_core/framework/core/host/include/
H A Ddevhost_service.h24 const char *hostName; member
34 struct IDevHostService *DevHostServiceNewInstance(uint16_t hostId, const char *hostName);
/drivers/hdf_core/framework/core/common/src/
H A Dhdf_attribute.c19 #define ATTR_HOST_NAME "hostName"
51 if ((HcsGetString(hostNode, ATTR_HOST_NAME, &hostInfo->hostName, NULL) != HDF_SUCCESS) || in GetHostInfo()
52 (strcmp(hostInfo->hostName, "") == 0)) { in GetHostInfo()
117 const char *hostName = NULL; in GetHostNode() local
127 if (HcsGetString(hostNode, ATTR_HOST_NAME, &hostName, NULL) != HDF_SUCCESS) { in GetHostNode()
131 if (strcmp(hostName, inHostName) == 0) { in GetHostNode()
227 hostNode = GetHostNode(hostClnt->hostName); in HdfAttributeManagerGetDeviceList()
H A Dhdf_attribute_macro.c34 hostInfo->hostName = hostNode->devHostName; in GetHostInfoMacro()
36 if (strcmp(hostInfo->hostName, "") == 0) { in GetHostInfoMacro()
221 HCS_FOREACH_CHILD_VARGS(HDF_DEVICE_INFO, HDF_FIND_HOST, hostClnt->hostName, host, HDF_FAILURE); in HdfAttributeManagerGetDeviceList()
/drivers/hdf_core/framework/core/manager/src/
H A Ddevmgr_service.c65 hostClnt->hostPid = installer->StartDeviceHost(hostClnt->hostId, hostClnt->hostName, dynamic); in DevmgrServiceStartHostProcess()
67 HDF_LOGW("failed to start device host(%{public}s, %{public}u)", hostClnt->hostName, hostClnt->hostId); in DevmgrServiceStartHostProcess()
81 HDF_LOGE("wait host(%{public}s, %{public}d) attach timeout", hostClnt->hostName, hostClnt->hostId); in DevmgrServiceStartHostProcess()
116 HDF_LOGW("failed to start device host(%{public}s, %{public}u)", hostClnt->hostName, hostClnt->hostId); in DevmgrServiceLoadDevice()
142 installer->StopDeviceHost(hostClnt->hostId, hostClnt->hostName); in DevmgrServiceStopHost()
178 HDF_LOGD("%{public}s host %{public}s devices is not empty", __func__, hostClnt->hostName); in DevmgrServiceUnloadDevice()
184 hostClnt->hostName); in DevmgrServiceUnloadDevice()
313 struct DevHostServiceClnt *hostClnt = DevHostServiceClntNewInstance(hostAttr->hostId, hostAttr->hostName); in DevmgrServiceStartDeviceHost()
320 HDF_LOGW("failed to get device list for host %{public}s", hostClnt->hostName); in DevmgrServiceStartDeviceHost()
358 __func__, hostAttr->hostId, hostAttr->hostName); in DevmgrServiceStartDeviceHosts()
[all...]
H A Ddevhost_service_clnt.c83 struct DevHostServiceClnt *DevHostServiceClntNewInstance(uint16_t hostId, const char *hostName) in DevHostServiceClntNewInstance() argument
90 hostClnt->hostName = hostName; in DevHostServiceClntNewInstance()
/drivers/hdf_core/adapter/uhdf2/host/src/
H A Ddevhost_service_stub.c27 static void DevHostSetCurrentSecurec(const char *hostName) in DevHostSetCurrentSecurec() argument
29 (void)hostName; in DevHostSetCurrentSecurec()
89 DevHostSetCurrentSecurec(serviceStub->super.super.hostName); in DevHostServiceStubDispatch()
/drivers/hdf_core/framework/core/shared/include/
H A Dhdf_attribute_macro.h77 if (strcmp(HCS_PROP(node, hostName), name) == 0) { \
78 (host)->devHostName = HCS_PROP(node, hostName); \
92 host->devHostName = HCS_PROP(node, hostName); \
/drivers/hdf_core/adapter/uhdf2/manager/src/
H A Ddevmgr_dump.c37 " -host hostName parameter1 parameter2 ... :dump for host, maximum number of parameters is 20\n"
43 static int32_t DevMgrDumpHostFindHost(const char *hostName, struct HdfSBuf *data, struct HdfSBuf *reply) in DevMgrDumpHostFindHost() argument
55 HDF_LOGI("%{public}s hostName:%{public}s %{public}s", __func__, hostClnt->hostName, hostName); in DevMgrDumpHostFindHost()
56 if (strcmp(hostClnt->hostName, hostName) != 0) { in DevMgrDumpHostFindHost()
77 const char *hostName = HdfSbufReadString(data); in DevMgrDumpHost() local
78 if (hostName == NULL) { in DevMgrDumpHost()
79 HDF_LOGE("%{public}s hostName i in DevMgrDumpHost()
[all...]
H A Ddevmgr_query_device.c46 HDF_LOGD("%{public}s, host:%{public}s %{public}d", __func__, hostClnt->hostName, hostClnt->hostId); in DevFillQueryDeviceInfo()
H A Ddevmgr_service_full.c76 HDF_LOGE("%{public}s: failed to respawn host %{public}s", __func__, hostClnt->hostName); in DevmgrServiceFullOnDeviceHostDied()
/drivers/hdf_core/framework/core/host/src/
H A Ddevhost_service.c209 HDF_LOGD("host(%{public}s) set power state=%{public}u", hostService->hostName, state); in DevHostServicePmNotify()
273 struct IDevHostService *DevHostServiceNewInstance(uint16_t hostId, const char *hostName) in DevHostServiceNewInstance() argument
277 if (hostService != NULL && hostName != NULL) { in DevHostServiceNewInstance()
279 hostService->hostName = hostName; in DevHostServiceNewInstance()
/drivers/hdf_core/interfaces/inner_api/hdi/
H A Didevmgr_hdi.h63 std::string hostName; member
/drivers/hdf_core/adapter/uhdf2/hdi/test/smq_test/
H A Dsmq_test.cpp87 static bool QueryPidOfHostName(const std::string &hostName, int &hostPid) in QueryPidOfHostName() argument
89 if (hostName.empty()) { in QueryPidOfHostName()
93 // ps -ef | grep hostName | grep -v "grep" | sed 's/ */ /g' | cut -d ' ' -f 2 in QueryPidOfHostName()
95 cmdStr << "ps -ef | grep '" << hostName << "' | grep -v 'grep' | "; in QueryPidOfHostName() local
150 static bool QueryOpenedFdsByHostName(const std::string &hostName, std::set<int> &fds) in QueryOpenedFdsByHostName() argument
153 if (!QueryPidOfHostName(hostName, hostPid)) { in QueryOpenedFdsByHostName()
/drivers/hdf_core/framework/tools/hdf_dbg/
H A Dhdf_dbg.cpp171 std::string titleHostName = "hostName"; in PrintALLDeviceInfoUser()
186 SetPadAlign(info.hostName, ' ', ALIGN_SIZE); in PrintALLDeviceInfoUser()
187 cout << info.hostName << ":0x" << std::hex << info.hostId << endl; in PrintALLDeviceInfoUser()
202 const char *hostName = HdfSbufReadString(data); in PrintOneHostInfoKernel() local
203 if (hostName == nullptr) { in PrintOneHostInfoKernel()
213 std::string hostNameStr = hostName; in PrintOneHostInfoKernel()
248 std::string titleHostName = "hostName"; in PrintAllDeviceInfoKernel()
/drivers/hdf_core/adapter/uhdf2/hdi/src/
H A Didevmgr_client.cpp123 hostInfo.hostName = name; in HdfDevMgrDbgFillDeviceInfo()
/drivers/hdf_core/adapter/uhdf2/host/test/unittest/
H A Ddevhost_test.cpp157 devHost->hostName = "test_host"; in HWTEST_F()

Completed in 9 milliseconds