Skip to contentSkip to conversation

How to understand flow of kernel code

DISCUSSION krishna 2 participants 2 messages Dec 3, 2004

lore
Share & tools
lore

krishna

author
#0 lore raw

Hi Elladan,

Thank you very much.
Can u tell me how can I start from an interrupt.

Regards,
Krishna Chaitanya

Elladan wrote:

It's written in C, so it should be quite simple.

Most everything starts from a syscall, or an interrupt.

-J

On Thu, Dec 02, 2004 at 10:16:54AM +0530, krishna wrote:

Hi,

Can Anyone tell me the tips/tricks/techniques/practices followed in understanding flow of Linux kernel code?

Regards,
Krishna Chaitanya

#1 lore raw
Quoted 4 lines · krishna

Hi Elladan,

Thank you very much.
Can u tell me how can I start from an interrupt.

Look for the do_IRQ function. Figure out how it's called, then figure out what it does, and then figure out how the system is restored. And it's a bit more than just C code, so you'll need some understanding of assembly for whichever architecture you're interested in.

Good luck.

josh