Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.os.linux.development.system > #617

Re: where is the source code for interrupt handler for linux kernel?

From Rainer Weikusat <rweikusat@mobileactivedefense.com>
Newsgroups comp.os.linux.development.system
Subject Re: where is the source code for interrupt handler for linux kernel?
Date 2014-04-09 14:56 +0100
Message-ID <877g6ysj2f.fsf@sable.mobileactivedefense.com> (permalink)
References <8a2153e4-7c4d-4386-af67-8d4ddc3b9bdd@googlegroups.com>

Show all headers | View raw


Hemanth Venkatappa <hemanthvenkatappa@gmail.com> writes:
> A network device driver can notify the kernel about packet reception
> using interrupts. This can be done after every received packets or
> after receiving a specified number of packets. I am looking for source
> code of interrupt service routine in the linux kernel. I want to
> modify interrupt service routine as - I should calculate the timestamp
> when the interrupt occurs. later Received packets by the network
> driver are enqued by the kernel queue handler and I want to store the
> timestamp in sk_buff data structure is used to store information about
> the packets enqueued.
>
> So please someone help where is the location for the interrupt handler
> code of linux kernel??

According to a moderately cursory look at the 3.2.54 sources, there is
(as I expected) no such thing as a generic 'NIC interrupt
handler'. You'll either need to invent and implement your own
infrastructure for that or modify each interesting device driver
separately.

Back to comp.os.linux.development.system | Previous | NextPrevious in thread | Find similar


Thread

where is the source code for interrupt handler for linux kernel? Hemanth Venkatappa <hemanthvenkatappa@gmail.com> - 2014-04-09 04:34 -0700
  Re: where is the source code for interrupt handler for linux kernel? Rainer Weikusat <rweikusat@mobileactivedefense.com> - 2014-04-09 14:56 +0100

csiph-web