Home
last modified time | relevance | path

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

/system/core/fs_mgr/tools/
Ddmuserd.cpp138 int control_fd = open(control_path.c_str(), O_RDWR); in simple_daemon() local
139 if (control_fd < 0) { in simple_daemon()
157 if (read_all(control_fd, &msg, sizeof(msg)) < 0) { in simple_daemon()
226 if (not_splice(control_fd, backing_fd, msg.len) < 0) { in simple_daemon()
253 if (write_all(control_fd, &msg, sizeof(msg)) < 0) { in simple_daemon()
266 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.cpp414 int control_fd[2]; in CreateSimpleperfProcess() local
416 if (pipe(control_fd) != 0 || pipe(reply_fd) != 0) { in CreateSimpleperfProcess()
445 close(control_fd[1]); in CreateSimpleperfProcess()
446 dup2(control_fd[0], 0); // simpleperf read control cmd from fd 0. in CreateSimpleperfProcess()
447 close(control_fd[0]); in CreateSimpleperfProcess()
456 close(control_fd[0]); in CreateSimpleperfProcess()
457 control_fd_ = control_fd[1]; in CreateSimpleperfProcess()