Home
last modified time | relevance | path

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

/system/core/fs_mgr/tools/
Ddmuserd.cpp137 int control_fd = open(control_path, O_RDWR); in simple_daemon() local
138 if (control_fd < 0) { in simple_daemon()
156 if (read_all(control_fd, &msg, sizeof(msg)) < 0) { in simple_daemon()
225 if (not_splice(control_fd, backing_fd, msg.len) < 0) { in simple_daemon()
252 if (write_all(control_fd, &msg, sizeof(msg)) < 0) { in simple_daemon()
265 if (not_splice(backing_fd, control_fd, msg.len) < 0) { in simple_daemon()
/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()