write_pipe
ret = usb_bulk_msg(gusb->udev, gusb->write_pipe, tbuf, count, NULL,
gusb->write_pipe = usb_sndbulkpipe(udev, usb_endpoint_num(out));
unsigned int write_pipe;
return usb_bulk_msg(ch341->udev, ch341->write_pipe, ch341->tx_buf, 3,
return usb_bulk_msg(ch341->udev, ch341->write_pipe, ch341->tx_buf, 4,
ch341->write_pipe = usb_sndbulkpipe(udev, usb_endpoint_num(out));
unsigned int write_pipe;
err = usb_bulk_msg(ch341->udev, ch341->write_pipe, ch341->tx_buf,
ret = usb_bulk_msg(ch341->udev, ch341->write_pipe, ch341->tx_buf, len,
ret = write_pipe(td);
static int consume_stack(unsigned int stack_size, union pipe write_pipe)
return consume_stack(stack_size, write_pipe);
FAIL_IF(notify_parent(write_pipe));
static int child(unsigned int stack_size, union pipe write_pipe)
FAIL_IF(consume_stack(stack_size, write_pipe));
union pipe read_pipe, write_pipe;
FAIL_IF(pipe(write_pipe.fds) == -1);
close(write_pipe.write_fd);
close(write_pipe.read_fd);
FAIL_IF(sync_with_child(read_pipe, write_pipe));
close(write_pipe.write_fd);
union pipe read_pipe, write_pipe;
FAIL_IF(pipe(write_pipe.fds) == -1);
exit(ebb_child(write_pipe, read_pipe));
if (sync_with_child(read_pipe, write_pipe))
FAIL_IF(sync_with_child(read_pipe, write_pipe));
union pipe read_pipe, write_pipe;
FAIL_IF(pipe(write_pipe.fds) == -1);
exit(ebb_child(write_pipe, read_pipe));
if (sync_with_child(read_pipe, write_pipe))
FAIL_IF(sync_with_child(read_pipe, write_pipe));
int ebb_child(union pipe read_pipe, union pipe write_pipe)
notify_parent_of_error(write_pipe);
FAIL_IF(notify_parent(write_pipe));
FAIL_IF(notify_parent(write_pipe));
int ebb_child(union pipe read_pipe, union pipe write_pipe);
static int victim_child(union pipe read_pipe, union pipe write_pipe)
FAIL_IF(notify_parent(write_pipe));
FAIL_IF(notify_parent(write_pipe));
union pipe read_pipe, write_pipe;
FAIL_IF(pipe(write_pipe.fds) == -1);
exit(victim_child(write_pipe, read_pipe));
FAIL_IF(sync_with_child(read_pipe, write_pipe));
FAIL_IF(sync_with_child(read_pipe, write_pipe));
static int victim_child(union pipe read_pipe, union pipe write_pipe)
FAIL_IF(notify_parent(write_pipe));
union pipe read_pipe, write_pipe;
FAIL_IF(pipe(write_pipe.fds) == -1);
exit(victim_child(write_pipe, read_pipe));
FAIL_IF(sync_with_child(read_pipe, write_pipe));
union pipe read_pipe, write_pipe;
FAIL_IF(pipe(write_pipe.fds) == -1);
exit(ebb_child(write_pipe, read_pipe));
FAIL_IF(sync_with_child(read_pipe, write_pipe));
FAIL_IF(sync_with_child(read_pipe, write_pipe));
union pipe read_pipe, write_pipe;
FAIL_IF(pipe(write_pipe.fds) == -1);
exit(ebb_child(write_pipe, read_pipe));
if (sync_with_child(read_pipe, write_pipe))
FAIL_IF(sync_with_child(read_pipe, write_pipe));
union pipe read_pipe, write_pipe;
FAIL_IF(pipe(write_pipe.fds) == -1);
exit(ebb_child(write_pipe, read_pipe));
if (sync_with_child(read_pipe, write_pipe))
FAIL_IF(sync_with_child(read_pipe, write_pipe));
union pipe read_pipe, write_pipe;
if (pipe(write_pipe.fds) == -1)
exit(eat_cpu_child(write_pipe, read_pipe));
if (sync_with_child(read_pipe, write_pipe)) {
int sync_with_child(union pipe read_pipe, union pipe write_pipe)
FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1);
int notify_parent(union pipe write_pipe)
FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1);
int notify_parent_of_error(union pipe write_pipe)
FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1);
static int eat_cpu_child(union pipe read_pipe, union pipe write_pipe)
notify_parent(write_pipe);
extern int sync_with_child(union pipe read_pipe, union pipe write_pipe);
extern int notify_parent(union pipe write_pipe);
extern int notify_parent_of_error(union pipe write_pipe);
ret = splice(ts->write_pipe, NULL, ts->out_fd, NULL,
rw_ti->write_pipe = -1;
rw_ti->write_pipe = data_pipe[0];
close(s->rw_ti[i]->write_pipe);
int write_pipe;