memory allocation in spinlock context

Andriy Gapon avg at FreeBSD.org
Fri Mar 1 15:48:44 UTC 2013


on 01/03/2013 16:22 Matthew Jacob said the following:
> 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?

I am just pondering what would it take to develop such a general mechanism.

-- 
Andriy Gapon


More information about the freebsd-hackers mailing list