[Lguest] virtqueue_* functions callable in interrupt context?

Rusty Russell rusty at rustcorp.com.au
Mon Jul 1 09:25:50 EST 2013


Earlence Fernandes <earlenceferns at gmail.com> writes:

> 1. In a kernel module, when we register the callback for a virtqueue, that
> is executed
> in interrupt context right?

Yes.

> 2. Can I call virtqueue_add_buf in interrupt context?

You can, as long as you use GFP_ATOMIC.

Cheers,
Rusty.


More information about the Lguest mailing list