Home
last modified time | relevance | path

Searched refs:control_fd (Results 1 – 2 of 2) sorted by relevance

/system/update_engine/common/
Dtest_utils.cc141 int control_fd = in BindToUnusedLoopDeviceLegacy() local
143 TEST_AND_RETURN_FALSE_ERRNO(control_fd >= 0); in BindToUnusedLoopDeviceLegacy()
144 int loop_number = ioctl(control_fd, LOOP_CTL_GET_FREE); in BindToUnusedLoopDeviceLegacy()
145 IGNORE_EINTR(close(control_fd)); in BindToUnusedLoopDeviceLegacy()
/system/extras/simpleperf/app_api/cpp/
Dsimpleperf.cpp399 int control_fd[2]; in CreateSimpleperfProcess() local
401 if (pipe(control_fd) != 0 || pipe(reply_fd) != 0) { in CreateSimpleperfProcess()
430 close(control_fd[1]); in CreateSimpleperfProcess()
431 dup2(control_fd[0], 0); // simpleperf read control cmd from fd 0. in CreateSimpleperfProcess()
432 close(control_fd[0]); in CreateSimpleperfProcess()
441 close(control_fd[0]); in CreateSimpleperfProcess()
442 control_fd_ = control_fd[1]; in CreateSimpleperfProcess()