Lines Matching defs:pnp
123 prinitrootnode(prnode_t *pnp, vfs_t *vfsp)
127 bzero((caddr_t)pnp, sizeof (*pnp));
128 pnp->pr_vnode = vp = vn_alloc(KM_SLEEP);
130 mutex_init(&pnp->pr_mutex, NULL, MUTEX_DEFAULT, NULL);
134 vp->v_data = (caddr_t)pnp;
135 pnp->pr_type = PR_PROCDIR;
136 pnp->pr_mode = 0555; /* read-search by everyone */
194 prnode_t *pnp;
216 pnp = kmem_alloc(sizeof (*pnp), KM_SLEEP);
224 kmem_free(pnp, sizeof (*pnp));
229 prinitrootnode(pnp, vfsp);
231 vfsp->vfs_data = (caddr_t)pnp;
252 prnode_t *pnp = (prnode_t *)vfsp->vfs_data;
253 vnode_t *vp = PTOV(pnp);
284 kmem_free(pnp, sizeof (*pnp));