Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Mar 2013 06:22:08 -0800
From:      Matthew Jacob <mjacob@freebsd.org>
To:        freebsd-hackers@freebsd.org
Subject:   Re: memory allocation in spinlock context
Message-ID:  <5130B990.2010001@freebsd.org>
In-Reply-To: <5130B224.8000600@FreeBSD.org>
References:  <5130B224.8000600@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 3/1/2013 5:50 AM, Andriy Gapon wrote:
> I am trying to understand if it is possible to allow memory allocations (M_NOWAIT,
> of course) in a spinlock context.
>
There are mechanisms to do just this- essentially by creating private 
pools that are organized in a way to allow for spinlock (and thus 
possible interrupt level) safe allocations (and failure if the pool is 
empty). Are you trying to make a general mechanism for this?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5130B990.2010001>