Home | History | Annotate | Download | only in mount_portal

Lines Matching defs:portn

325 provide(struct puffs_usermount *pu, struct portal_node *portn,
351 error = activate_argv(portc, portn->path, v, &fd);
387 portn->fd = fd;
489 struct portal_node *portn;
491 portn = emalloc(sizeof(struct portal_node));
492 portn->path = estrdup(path);
493 portn->fd = -1;
495 return portn;
520 struct portal_node *portn;
528 portn = makenode(pcn->pcn_name);
529 puffs_newinfo_setcookie(pni, portn);
574 struct portal_node *portn = opc;
576 char **v = conf_match(&q, portn->path);
580 if (portn->fd == -1) {
582 error = provide(pu, portn, &portc, v);
589 if (fstat(portn->fd, &st) == -1)
614 puffs_framev_removefd(pu, portn->fd, 0);
615 close(portn->fd);
616 portn->fd = -1;
636 struct portal_node *portn = opc;
646 v = conf_match(&q, portn->path);
651 return provide(pu, portn, &portc, v);
660 struct portal_node *portn = opc;
671 rv = puffs_framev_enablefd(pu, portn->fd, PUFFS_FBIO_READ);
682 rv = readdata(pufbuf, portn->fd, &dummy);
689 portn->fd, pufbuf, 0);
719 puffs_framev_disablefd(pu, portn->fd, PUFFS_FBIO_READ);
734 struct portal_node *portn = opc;
746 portn->fd, &dummy);
752 rv = puffs_framev_enqueue_directsend(pcc, portn->fd, pufbuf, 0);
775 struct portal_node *portn = opc;
777 if (opc == PORTAL_ROOT || portn->fd == -1)
780 if (lseek(portn->fd, newoff, SEEK_SET) == -1)
789 struct portal_node *portn = opc;
800 if (puffs_framev_enqueue_waitevent(pcc, portn->fd, &what) == -1) {
830 struct portal_node *portn = opc;
832 if (portn->fd != -1) {
833 puffs_framev_removefd(pu, portn->fd, 0);
834 close(portn->fd);
836 free(portn->path);
837 free(portn);