From owner-freebsd-hackers Fri Sep 29 15:19:21 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 8FB2737B66C for ; Fri, 29 Sep 2000 15:19:18 -0700 (PDT) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e8TMJGf18738; Fri, 29 Sep 2000 15:19:16 -0700 (PDT) Date: Fri, 29 Sep 2000 15:19:16 -0700 From: Alfred Perlstein To: Marc Tardif Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: finding source to functions Message-ID: <20000929151915.O27736@fw.wintelcom.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: ; from intmktg@CAM.ORG on Fri, Sep 29, 2000 at 04:39:59PM -0400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Marc Tardif [000929 13:37] wrote: > How can I find the source to specific functions in /usr/src/sys? I tried > running ctags (find /usr/src/sys/ -type f -print | xargs ctags -w), but it > dumps core because it can't accept so many args. I then tried creating a > tags file for each subdirectory like so: > for i in /usr/src/sys/ > do > if test -d $i > then > cd $i > find ./ -type f -print | xargs ctags -w > cd .. > fi > done > > But that didn't work either. Any suggestions to make browsing the source > code easier? Sorta lame but: cd /usr/src/sys grep ^function */* works for me. of course there's a bunch of stuff in ports/textproc and devel that may also help. cscope and glimpse are nice. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message