memory allocation in spinlock context

Matthew Jacob mjacob at freebsd.org
Fri Mar 1 14:22:20 UTC 2013


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?


More information about the freebsd-hackers mailing list