Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Rainer Weikusat Newsgroups: comp.os.linux.development.system Subject: Re: where is the source code for interrupt handler for linux kernel? Date: Wed, 09 Apr 2014 14:56:08 +0100 Lines: 19 Message-ID: <877g6ysj2f.fsf@sable.mobileactivedefense.com> References: <8a2153e4-7c4d-4386-af67-8d4ddc3b9bdd@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: individual.net M7HoI63K+Dhq5yRWHbGDAgj/5c5WdaKOLqB9jup4onsn/ZXHU= Cancel-Lock: sha1:HchiXXeR2Q64mupXDhfXNXJy7LU= sha1:RaaZSs2eAcltRLM9W4j9NsFM6XU= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Xref: csiph.com comp.os.linux.development.system:617 Hemanth Venkatappa 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.