Subject: Re: socreate()
To: Elad Efrat <elad@NetBSD.org>
From: Jason Thorpe <thorpej@shagadelic.org>
List: tech-kern
Date: 10/25/2006 14:47:39
On Oct 25, 2006, at 2:41 PM, Elad Efrat wrote:
> hi,
>
> can socreate() sleep? (I want to add a kauth(9) call in there to
> implement socket policies in one place)
s = splsoftnet();
so = pool_get(&socket_pool, PR_WAITOK);
>
> I *think* someone mentioned something about that in some thread in the
> past; looking at the code it seems that if_gre.c:gre_kick(), called at
> IPL_NET, can call socreate().
socreate() must never be called from interrupt context.
>
> -e.
>
> --
> Elad Efrat
-- thorpej