Home | History | Annotate | Download | only in mount_sysctlfs

Lines Matching defs:po

157 sysctlfs_pathfree(struct puffs_usermount *pu, struct puffs_pathobj *po)
160 free(po->po_path);
164 getnode(struct puffs_usermount *pu, struct puffs_pathobj *po, int nodetype)
178 if (po->po_len == 0)
181 pn = puffs_pn_nodewalk(pu, puffs_path_walkcmp, po);
193 sname = po->po_path;
194 memcpy(myname, po->po_path, po->po_len * sizeof(myname[0]));
198 myname[po->po_len-1] = CTL_QUERY;
201 if (sysctl(myname, po->po_len, sn, &sl,
206 if (sn[i].sysctl_num == (*sname)[po->po_len-1]) {
363 struct puffs_pathobj po;
370 po.po_len = sfid->len;
371 po.po_path = &sfid->path;
373 pn = getnode(pu, &po, 0);
402 getnodedata(struct sfsnode *sfs, struct puffs_pathobj *po,
416 if (sysctl(po->po_path, po->po_len, &b, &sz, NULL, 0) == -1) {
430 if (sysctl(po->po_path, po->po_len, &i, &sz, NULL, 0) == -1) {
444 if (sysctl(po->po_path, po->po_len, &q, &sz, NULL, 0) == -1) {
460 if (sysctl(po->po_path, po->po_len, snode, &sz, NULL, 0) == -1){
477 if (sysctl(po->po_path, po->po_len, buf, &sz, NULL, 0) == -1) {
501 getlinks(struct sfsnode *sfs, struct puffs_pathobj *po)
514 sname = po->po_path;
515 (*sname)[po->po_len] = CTL_QUERY;
517 if (sysctl(*sname, po->po_len + 1, sn, &sl,
525 getsize(struct sfsnode *sfs, struct puffs_pathobj *po)
531 return getlinks(sfs, po) * 16; /* totally arbitrary */
533 getnodedata(sfs, po, buf, &sz);
647 struct puffs_pathobj po;
674 po.po_path = sname;
675 po.po_len = PNPLEN(pn_dir)+1;
688 pn_res = puffs_pn_nodewalk(pu, puffs_path_walkcmp, &po);