lkml.org 
[lkml]   [1998]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateTue, 6 Oct 1998 20:01:48 +0200 (CEST)
FromRik van Riel <>
SubjectRe: slab allocator
On 5 Oct 1998, Jason McMullan wrote:

> Is the slab allocator/deallocator safe to call from
> interrupt handlers (for stuffing a queue to be dealt with
> by the back handler)?
>
> If not, what about vmalloc/kalloc?

AFAIK, you should do as little as possible from the
interrupt handler.

> Even if it is _technically_ safe, why shouldn't I use
> it? ;^)

Latency, you need to do as little as possible from the
interrupt handler. A nicer solution is to have a small
buffer ready that you can use from the interrupt handler.

Rik.
+-------------------------------------------------------------------+
| Linux memory management tour guide. H.H.vanRiel@phys.uu.nl |
| Scouting Vries cubscout leader. http://www.phys.uu.nl/~riel/ |
+-------------------------------------------------------------------+

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:44    [from the cache]
©2003-2010