Subject: Re: CVS commit: src/sys
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Andrew Doran <ad@NetBSD.org>
List: tech-kern
Date: 07/24/2006 13:11:30
On Sat, Jul 22, 2006 at 03:36:08PM +0900, YAMAMOTO Takashi wrote:

> > Log Message:
> > - Use the LWP cached credentials where sane.
> > - Minor cosmetic changes.
> 
> how about using kauth_cred_get()?

Could you provide some context, please?

kauth_cred_get() embeds use of curlwp at a fairly low level. I can't come
up with solid arguments against curlwp other than it could be slower than
passing an lwp into a function as an argument, and it discourages caching
the address locally. Anyone?

Thanks,
Andrew