[help] How to test kernel code that I wrote?

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Thu Aug 25 09:35:28 EDT 2016


On Wed, 24 Aug 2016 18:18:18 +0800, Louie Lu said:

> in this doc have mention, there have hardirq, softirq.
> How can I test it from these irq method?
>

First, figure out if the code in question should even be called
from those contexts, or if it's a bug if that happens.
Hard and soft IRQ contexts are basically interrupt handlers. If your
code is a "hello world" module, or if it's filesystem code, or
pretty much any part of the kernel that's not a device driver, it
probably should not be called from IRQ context.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160825/b2191fc8/attachment.bin 


More information about the Kernelnewbies mailing list