Home
last modified time | relevance | path

Searched refs:g_libHandle (Results 1 - 2 of 2) sorted by relevance

/drivers/peripheral/usb/ddk_service/src/
H A Dusb_ddk_permission.cpp32 static void *g_libHandle = nullptr; member
43 g_libHandle = dlopen("libusb_ddk_dynamic_library_wrapper.z.so", RTLD_LAZY); in InitVerifyAccessToken()
44 if (g_libHandle == nullptr) { in InitVerifyAccessToken()
49 void *funcPtr = dlsym(g_libHandle, "VerifyAccessToken"); in InitVerifyAccessToken()
52 dlclose(g_libHandle); in InitVerifyAccessToken()
53 g_libHandle = nullptr; in InitVerifyAccessToken()
64 if (g_libHandle != nullptr) { in Reset()
65 dlclose(g_libHandle); in Reset()
66 g_libHandle = nullptr; in Reset()
/drivers/peripheral/usb/hdi_service/src/
H A Dusbd_function.cpp57 static void *g_libHandle = nullptr; member
66 g_libHandle = dlopen("libusbfn_mtp_interface_service_1.0.z.so", RTLD_LAZY); in InitGetMtpImpl()
67 if (g_libHandle == nullptr) { in InitGetMtpImpl()
72 void *funcPtr = dlsym(g_libHandle, "UsbfnMtpInterfaceImplGetInstance"); in InitGetMtpImpl()
75 dlclose(g_libHandle); in InitGetMtpImpl()
76 g_libHandle = nullptr; in InitGetMtpImpl()
86 if (g_libHandle != nullptr) { in ReleaseGetMtpImpl()
87 dlclose(g_libHandle); in ReleaseGetMtpImpl()
88 g_libHandle = nullptr; in ReleaseGetMtpImpl()

Completed in 2 milliseconds