Messages in this thread | | | Date | Sun, 05 Dec 2004 18:57:57 +0100 | From | Manfred Spraul <> | Subject | Re: [PATCH] Document kfree and vfree NULL usage (resend) |
| |
Kernel Stuff wrote:
>The attached patch changes the vfree() documentation to correct "May not be >called in interrupt context" to "Must not be called in interrupt context". >Latter is compliant to RFC2119 and matches the absolute requirement for >vfree. > >Is not the same requirement true for vmalloc() - or is it ok to call vmalloc() >in interrupt? > > > No, it's not ok. But that's not something worth mentioning: only a few functions are permitted from interrupt context. The special thing about vfree is the asymmetry: kfree from irq context is ok, vfree is forbidden. That's why it's documented.
-- Manfred - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |