Make prison_find() globally accessible.

This commit is contained in:
Pawel Jakub Dawidek 2007-04-05 21:34:54 +00:00
parent 4e9f341722
commit 54b369c1ae
2 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,6 @@ int prisoncount = 0;
static void init_prison(void *);
static void prison_complete(void *context, int pending);
static struct prison *prison_find(int);
static int sysctl_jail_list(SYSCTL_HANDLER_ARGS);
static void
@ -256,7 +255,7 @@ jail_attach(struct thread *td, struct jail_attach_args *uap)
/*
* Returns a locked prison instance, or NULL on failure.
*/
static struct prison *
struct prison *
prison_find(int prid)
{
struct prison *pr;

View File

@ -105,6 +105,7 @@ int prison_check(struct ucred *cred1, struct ucred *cred2);
int prison_canseemount(struct ucred *cred, struct mount *mp);
void prison_enforce_statfs(struct ucred *cred, struct mount *mp,
struct statfs *sp);
struct prison *prison_find(int prid);
void prison_free(struct prison *pr);
u_int32_t prison_getip(struct ucred *cred);
void prison_hold(struct prison *pr);