From owner-freebsd-hackers Fri Jun 29 1: 1:47 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from avocet.mail.pas.earthlink.net (avocet.mail.pas.earthlink.net [207.217.121.50]) by hub.freebsd.org (Postfix) with ESMTP id B5DCC37B40B for ; Fri, 29 Jun 2001 01:01:44 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (dialup-209.245.136.253.Dial1.SanJose1.Level3.net [209.245.136.253]) by avocet.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id BAA22028; Fri, 29 Jun 2001 01:01:42 -0700 (PDT) Message-ID: <3B3C3608.FF89B31D@mindspring.com> Date: Fri, 29 Jun 2001 01:02:16 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: vinu pattery Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: interrupt on to Kernel References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG vinu pattery wrote: > > Could some body let me know, how to hack the FReeBSD kernel > to learn the exact sequence of steps which happen when the > device driver interrupts the FreeBSD Kernel for resources. > Is there a trace debugger available, with which i can find > out the steps. It's not clear what you mean by "interrupt the Kernel for resources"... the only resources you can grab at interrupt are things that you pre-allocated, things you get from a zalloci() from a previously established interrupt safe zone in the zone allocator (e.g. mbufs), and CPU time. As far as your tracing question: "man ddb"; you can set breakpoints in the kernel, and step through them. You probably _don't_ want to do this in an interrupt routine, but you could. You may want to look at the FreeBSD Handbook, and at the device driver and bus articles on: http://www.daemonnews.org/ There is also a (fairly old) "Device Driver Writer's Guide": http://freebsd.dei.uc.pt/tutorials/ddwg/ddwg.html -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message