Lines Matching defs:resource
1170 char *resource = NULL, *mountpt = NULL;
1329 * same for the resource string, since it would turn
1341 resource = kmem_alloc(pn.pn_pathlen + 1,
1343 (void) strcpy(resource, pn.pn_path);
1413 (resource != NULL &&
1415 strlen(resource)) > MAXPATHLEN)) {
1678 vfs_setresource(vfsp, resource, 0);
1856 if (resource != NULL)
1857 kmem_free(resource, strlen(resource) + 1);
1930 * in the zone's rootpath with the "newpath" (resource
1971 * Record a mounted resource name in a vfs structure.
1975 vfs_setresource(struct vfs *vfsp, const char *resource, uint32_t flag)
1977 if (resource == NULL || resource[0] == '\0')
1978 resource = VFS_NORESOURCE;
1979 vfs_setpath(vfsp, &vfsp->vfs_resource, resource, flag);
1999 refstr_t *resource;
2002 resource = vfsp->vfs_resource;
2003 refstr_hold(resource);
2006 return (resource);