Lines Matching refs:pri
16 struct slirp_data *pri = data; in slirp_user_init() local
18 pri->dev = dev; in slirp_user_init()
51 struct slirp_data *pri = data; in slirp_open() local
58 err = slirp_tramp(pri->argw.argv, fds[1]); in slirp_open()
65 pri->slave = fds[1]; in slirp_open()
66 pri->slip.pos = 0; in slirp_open()
67 pri->slip.esc = 0; in slirp_open()
68 pri->pid = err; in slirp_open()
79 struct slirp_data *pri = data; in slirp_close() local
83 close(pri->slave); in slirp_close()
85 pri->slave = -1; in slirp_close()
87 if (pri->pid<1) { in slirp_close()
94 if (kill(pri->pid, SIGHUP)<0) { in slirp_close()
96 "(%d)\n", pri->pid, errno); in slirp_close()
99 err = helper_wait(pri->pid); in slirp_close()
103 pri->pid = -1; in slirp_close()
106 int slirp_user_read(int fd, void *buf, int len, struct slirp_data *pri) in slirp_user_read() argument
108 return slip_proto_read(fd, buf, len, &pri->slip); in slirp_user_read()
111 int slirp_user_write(int fd, void *buf, int len, struct slirp_data *pri) in slirp_user_write() argument
113 return slip_proto_write(fd, buf, len, &pri->slip); in slirp_user_write()