Home
last modified time | relevance | path

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

/system/update_engine/common/
Dtest_utils.cc120 int control_fd = in BindToUnusedLoopDevice() local
122 TEST_AND_RETURN_FALSE_ERRNO(control_fd >= 0); in BindToUnusedLoopDevice()
123 int loop_number = ioctl(control_fd, LOOP_CTL_GET_FREE); in BindToUnusedLoopDevice()
124 IGNORE_EINTR(close(control_fd)); in BindToUnusedLoopDevice()
/system/extras/simpleperf/app_api/cpp/
Dsimpleperf.cpp346 int control_fd[2]; in CreateSimpleperfProcess() local
348 if (pipe(control_fd) != 0 || pipe(reply_fd) != 0) { in CreateSimpleperfProcess()
375 close(control_fd[1]); in CreateSimpleperfProcess()
376 dup2(control_fd[0], 0); // simpleperf read control cmd from fd 0. in CreateSimpleperfProcess()
377 close(control_fd[0]); in CreateSimpleperfProcess()
386 close(control_fd[0]); in CreateSimpleperfProcess()
387 control_fd_ = control_fd[1]; in CreateSimpleperfProcess()