Searched refs:p9p (Results 1 – 6 of 6) sorted by relevance
/netbsd/usr.sbin/puffs/mount_9p/ |
H A D | fs.c | 66 struct puffs9p *p9p = puffs_getspecific(pu); in p9p_handshake() local 84 p9pbuf_put_4(pb, p9p->maxreq); in p9p_handshake() 103 p9p->maxreq = maxreq; in p9p_handshake() 114 tagid = NEXTTAG(p9p); in p9p_handshake() 121 if (p9p->protover == P9PROTO_VERSION_U) in p9p_handshake() 152 tagid = NEXTTAG(p9p); in p9p_handshake() 153 curfid = NEXTFID(p9p); in p9p_handshake() 191 tagid = NEXTTAG(p9p); in p9p_handshake() 204 tagid = NEXTTAG(p9p); in p9p_handshake() 226 if (ioctl(p9p->servsock, FIONBIO, &x) == -1) in p9p_handshake() [all …]
|
H A D | ninepuffs.h | 58 #define NEXTTAG(p9p) \ argument 59 ((++(p9p->nexttag)) == P9PROTO_NOTAG ? p9p->nexttag = 0 : p9p->nexttag) 61 #define NEXTFID(p9p) \ argument 62 ((++(p9p->nextfid)) == P9P_INVALFID ? p9p->nextfid = 2 : p9p->nextfid) 66 struct puffs9p *p9p = puffs_getspecific(pu); \ 77 if (puffs_framev_enqueue_cc(pcc, p9p->servsock, pb, 0) == -1) { \ 85 if (puffs_framev_enqueue_justsend(pu,p9p->servsock,pb,1,0)==-1){\ 93 if (puffs_framev_enqueue_cb(pu, p9p->servsock,pb,f,a,0) == -1) {\
|
H A D | ninepuffs.c | 139 struct puffs9p p9p; in main() local 251 memset(&p9p, 0, sizeof(p9p)); in main() 252 p9p.maxreq = P9P_DEFREQLEN; in main() 253 p9p.nextfid = 1; in main() 254 p9p.protover = protover; in main() 255 p9p.server = server; in main() 300 if (p9p.server == P9P_SERVER_TCP) { in main() 304 p9p.servsock = open_cdev(argv[0]); in main() 308 close(p9p.servsock); in main() 315 if (puffs_framev_addfd(pu, p9p.servsock, in main() [all …]
|
H A D | node.c | 60 tag = NEXTTAG(p9p); in do_getattr() 101 tag = NEXTTAG(p9p); in puffs9p_node_lookup() 124 tag = NEXTTAG(p9p); in puffs9p_node_lookup() 182 tag = NEXTTAG(p9p); in puffs9p_node_readdir() 242 tag = NEXTTAG(p9p); in puffs9p_node_setattr() 340 tag = NEXTTAG(p9p); in puffs9p_node_read() 388 tag = NEXTTAG(p9p); in puffs9p_node_write() 440 tag = NEXTTAG(p9p); in nodecreate() 464 tag = NEXTTAG(p9p); in nodecreate() 523 tag = NEXTTAG(p9p); in noderemove() [all …]
|
H A D | nineproto.c | 123 struct puffs9p *p9p = puffs_getspecific(pu); in proto_getstat() local 176 if (p9p->protover == P9PROTO_VERSION_U) { in proto_getstat() 191 struct puffs9p *p9p = puffs_getspecific(pu); in proto_rerror() local 205 if (p9p->protover == P9PROTO_VERSION_U) { in proto_rerror() 234 struct puffs9p *p9p = puffs_getspecific(pu); in proto_cc_dupfid() local 241 tag = NEXTTAG(p9p); in proto_cc_dupfid() 262 struct puffs9p *p9p = puffs_getspecific(pu); in proto_cc_clunkfid() local 268 tag = NEXTTAG(p9p); in proto_cc_clunkfid() 297 struct puffs9p *p9p = puffs_getspecific(pu); in proto_cc_open() local 307 tag = NEXTTAG(p9p); in proto_cc_open() [all …]
|
H A D | subr.c | 106 struct puffs9p *p9p = puffs_getspecific(pu); in getdfwithoffset() local 120 dfp->fid = NEXTFID(p9p); in getdfwithoffset() 131 p9ptag_t tag = NEXTTAG(p9p); in getdfwithoffset()
|