Home | History | Annotate | Download | only in mount_psshfs

Lines Matching defs:pu

143 	struct puffs_usermount *pu;
274 pu = puffs_init(pops, argv[0], "psshfs", &pctx, pflags);
275 if (pu == NULL)
315 pn_root = puffs_pn_new(pu, root);
318 puffs_setroot(pu, pn_root);
320 puffs_framev_init(pu, psbuf_read, psbuf_write, psbuf_cmp, NULL, notfn);
323 puffs_ml_setloopfn(pu, psshfs_loopfn);
324 if (pssh_connect(pu, PSSHFD_META) == -1)
326 if (puffs_framev_addfd(pu, pctx.sshfd,
330 if (pssh_connect(pu, PSSHFD_DATA) == -1)
332 if (puffs_framev_addfd(pu, pctx.sshfd_data,
340 puffs_setfhsize(pu, sizeof(struct psshfs_fid),
356 if (puffs_daemon(pu, 1, 1) == -1)
359 if (puffs_mount(pu, argv[1], mntflags, puffs_getroot(pu)) == -1)
361 if (puffs_setblockingmode(pu, PUFFSDEV_NONBLOCK) == -1)
364 if (puffs_mainloop(pu) == -1)
366 puffs_exit(pu, 1);
374 psshfs_notify(struct puffs_usermount *pu, int fd, int what)
376 struct psshfs_ctx *pctx = puffs_getspecific(pu);
386 if (puffs_getstate(pu) != PUFFS_STATE_RUNNING)
390 puffs_framev_removefd(pu, fd, ECONNRESET);
400 if ((newfd = pssh_connect(pu, which)) == -1)
403 if (puffs_framev_addfd(pu, newfd,
423 pssh_connect(struct puffs_usermount *pu, int which)
425 struct psshfs_ctx *pctx = puffs_getspecific(pu);
472 if (psshfs_handshake(pu, *sshfd) != 0)
482 invalone(struct puffs_usermount *pu, struct puffs_node *pn, void *arg)
494 psshfs_loopfn(struct puffs_usermount *pu)
498 puffs_pn_nodewalk(pu, invalone, NULL);