Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261574AbVDZRjV (ORCPT ); Tue, 26 Apr 2005 13:39:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261743AbVDZRgu (ORCPT ); Tue, 26 Apr 2005 13:36:50 -0400 Received: from mail.dif.dk ([193.138.115.101]:46525 "EHLO saerimmer.dif.dk") by vger.kernel.org with ESMTP id S261712AbVDZRfK (ORCPT ); Tue, 26 Apr 2005 13:35:10 -0400 Date: Tue, 26 Apr 2005 19:38:26 +0200 (CEST) From: Jesper Juhl To: Lee Revell Cc: David Addison , linux-kernel@vger.kernel.org, Andrew Morton , Andrea Arcangeli , David Addison Subject: Re: [PATCH][RFC] Linux VM hooks for advanced RDMA NICs In-Reply-To: <1114536511.5410.14.camel@mindpipe> Message-ID: References: <426E62ED.5090803@quadrics.com> <1114535584.5410.2.camel@mindpipe> <1114536511.5410.14.camel@mindpipe> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1292 Lines: 29 On Tue, 26 Apr 2005, Lee Revell wrote: > On Tue, 2005-04-26 at 19:20 +0200, Jesper Juhl wrote: > > I don't know what you do, but when I'm grep'ing the tree for some function > > I'm often looking for its return type, having that on the same line as the > > function name lets me grep for the function name and the grep output will > > contain the return type and function name nicely on the same line. > > > > I do a lot of looking at large hunks of code I'm not familiar with and > trying to figure out how it works. It's quite handy to grep for > foo_func to see all usages, then ^foo_func to see the function. Have you ever looked at what "make tags" gives you? Run make tags in the kernel source dir, then open up a source file in vim, place the cursor over some struct name or function name and press CTRL+] and you'll be taken to the definition, you can drill down several levels like that, and if you want to go back up one level to where you were you simply press CTRL+t very useful when navigating the source. -- Jesper - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/