FreeBSD/sys/compat/linux/linux_mib.c
/*
 * Jail OSD methods for Linux prison data.
 */
Jail OSD methods for Linux prison data.
Jail OSD methods for Linux prison data .
static int
linux_prison_create(void *obj, void *data)
{
	struct prison *pr = obj;
	struct vfsoptlist *opts = data;
	int jsys;
	if (vfs_copyopt(opts, "linux", &jsys, sizeof(jsys)) == 0 &&
	    jsys == JAIL_SYS_INHERIT)
		return (0);
	linux_alloc_prison(pr, NULL);
	return (0);
}
static int linux_prison_create ( void * obj , void * data ) { struct prison * pr = obj ; struct vfsoptlist * opts = data ; int jsys ; if ( vfs_copyopt ( opts , " " , & jsys , sizeof ( jsys ) ) == 0 && jsys == JAIL_SYS_INHERIT ) return ( 0 ) ; linux_alloc_prison ( pr , NULL ) ; return ( 0 ) ; }
Jail OSD methods for Linux prison data.
Jail OSD methods for Linux prison data .
/*
	 * Inherit a prison's initial values from its parent
	 * (different from JAIL_SYS_INHERIT which also inherits changes).
	 */