Subject: Re: kauth sleepability (Re: CVS commit: src/share/man/man9)
To: None <elad@NetBSD.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: tech-kern
Date: 07/21/2006 08:19:43
> >>> document it and put an assertion in kauth_authorize_action.
> >> assertion for what..?
> > 
> > an assertion to make sure we can sleep.
> 
> oops forgot to hit 'reply-all'; how do you assert for that condition?

void
assert_sleepable(struct simplelock *interlock, const char *msg)
{

	simple_lock_only_held(interlock, msg);
	spinlock_switchcheck();
}

YAMAMOTO Takashi