Android-Framework:Binder全解析(三,2021大厂Android面试经历
open_driver
//frameworks/native/libs/binder/ProcessState.cpp static int open_driver(const char *driver) { int fd = open(driver, O_RDWR | O_CLOEXEC);//1 if (fd >= 0) { … size_t maxThreads = DEFAULT_MAX_BINDER_THREADS; result = ioctl(fd, BINDER_SET_MAX_THREADS, &maxThreads);//2 if (result == -1) { ALOGE(“Binder ioctl to set max threads failed: %s”, strerror(errno)); } } else { ALOGW(“Opening ‘%s’ failed: %s/n”
Android-Framework:Binder全解析(三,2021大厂Android面试经历最先出现在Python成神之路。
共有 0 条评论