Home
last modified time | relevance | path

Searched refs:to_parent (Results 1 – 6 of 6) sorted by relevance

/linux/tools/testing/selftests/filesystems/umount_propagation/
H A Dumount_propagation_test.c151 static int slave_child(const char *base, const char *victim, int to_parent, in slave_child() argument
172 if (send_msg(to_parent, MSG_READY) || recv_msg(from_parent) != MSG_CHECK) in slave_child()
174 if (send_msg(to_parent, mount_attached(stx.stx_mnt_id) ? in slave_child()
181 if (send_msg(to_parent, MSG_CLOSED) || recv_msg(from_parent) != MSG_EXIT) in slave_child()
188 int to_child[2], to_parent[2]; in TEST_F() local
193 ASSERT_EQ(pipe(to_parent), 0); in TEST_F()
199 close(to_parent[0]); in TEST_F()
200 _exit(slave_child(self->base, self->victim, to_parent[1], in TEST_F()
204 close(to_parent[1]); in TEST_F()
206 ASSERT_EQ(recv_msg(to_parent[0]), MSG_READY); in TEST_F()
[all …]
/linux/tools/testing/selftests/filesystems/mount_cycle/
H A Dnsfs_rbind_loop_test.c125 static int newer_ns_child(const char *dir, int fd, int to_parent, int from_parent) in newer_ns_child() argument
131 if (send_msg(to_parent, 'r') || recv_msg(from_parent) != 'g') in newer_ns_child()
154 int to_child[2], to_parent[2], fd, status; in TEST_F() local
167 ASSERT_EQ(pipe(to_parent), 0); in TEST_F()
172 close(to_parent[0]); in TEST_F()
173 _exit(newer_ns_child(self->dir, fd, to_parent[1], to_child[0])); in TEST_F()
176 close(to_parent[1]); in TEST_F()
177 ASSERT_EQ(recv_msg(to_parent[0]), 'r'); in TEST_F()
H A Dloop_cycle_test.c483 static int crossed_child(int to_parent, int from_parent) in crossed_child() argument
499 if (write(to_parent, &r, sizeof(r)) != sizeof(r)) in crossed_child()
513 static int loop_child(int to_parent, int from_parent) in loop_child() argument
526 if (write(to_parent, &r, sizeof(r)) != sizeof(r)) in loop_child()
610 int to_parent[2], to_child[2]; in TEST_F() local
615 ASSERT_EQ(pipe(to_parent), 0); in TEST_F()
621 close(to_parent[0]); in TEST_F()
623 _exit(loop_child(to_parent[1], to_child[0])); in TEST_F()
625 close(to_parent[1]); in TEST_F()
628 if (read(to_parent[0], &r, sizeof(r)) != sizeof(r)) in TEST_F()
[all …]
H A Dunmounted_tree_test.c282 int to_parent[2], to_child[2], status; in run_child() local
286 if (pipe(to_parent) || pipe(to_child)) in run_child()
292 close(to_parent[0]); in run_child()
294 _exit(fn(a, to_parent[1], to_child[0])); in run_child()
296 close(to_parent[1]); in run_child()
298 if (read(to_parent[0], &c, 1) == 1) { in run_child()
303 close(to_parent[0]); in run_child()
316 static int vacant_child(const struct child_args *a, int to_parent, int from_parent) in vacant_child() argument
330 if (write(to_parent, "", 1) != 1 || read(from_parent, &c, 1) != 1) in vacant_child()
387 static int ordinary_copy(const struct child_args *a, int to_parent, int from_parent) in ordinary_copy() argument
[all …]
H A Dmount_cover_test.c120 static int cover_child(const char *base, int to_parent, int from_parent) in cover_child() argument
160 if (write(to_parent, fds, sizeof(fds)) != sizeof(fds)) in cover_child()
170 if (write(to_parent, &ret, sizeof(ret)) != sizeof(ret)) in cover_child()
175 if (write(to_parent, &ret, sizeof(ret)) != sizeof(ret)) in cover_child()
246 int to_parent[2], to_child[2], fds[4], pidfd, status; in FIXTURE_SETUP() local
273 ASSERT_EQ(pipe(to_parent), 0) in FIXTURE_SETUP()
281 close(to_parent[0]); in FIXTURE_SETUP()
283 _exit(cover_child(self->base, to_parent[1], to_child[0])); in FIXTURE_SETUP()
285 close(to_parent[1]); in FIXTURE_SETUP()
288 self->from_child = to_parent[0]; in FIXTURE_SETUP()
/linux/drivers/android/
H A Dbinder.c3175 thread->transaction_stack = in_reply_to->to_parent; in binder_transaction()
5160 t->to_parent = thread->transaction_stack; in binder_thread_read()
5404 t = t->to_parent; in binder_thread_release()
6528 t = t->to_parent; in print_binder_thread_ilocked()