From owner-freebsd-current@FreeBSD.ORG Tue Sep 22 20:44:27 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5125E106566C for ; Tue, 22 Sep 2009 20:44:27 +0000 (UTC) (envelope-from shoesoft@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 900128FC17 for ; Tue, 22 Sep 2009 20:44:26 +0000 (UTC) Received: (qmail invoked by alias); 22 Sep 2009 20:44:25 -0000 Received: from 85-127-91-100.dynamic.xdsl-line.inode.at (EHLO taxman.pepperland) [85.127.91.100] by mail.gmx.net (mp005) with SMTP; 22 Sep 2009 22:44:25 +0200 X-Authenticated: #16703784 X-Provags-ID: V01U2FsdGVkX19/0xsm3EN/72/WSdjSfXZkutTeYhcyq687nvaBxk gZg/PgTHCZecvs From: Stefan Ehmann To: freebsd-current@freebsd.org Date: Tue, 22 Sep 2009 22:44:23 +0200 User-Agent: KMail/1.12.1 (FreeBSD/8.0-BETA4; KDE/4.3.1; i386; ; ) References: <654636.94077.qm@web63908.mail.re1.yahoo.com> In-Reply-To: <654636.94077.qm@web63908.mail.re1.yahoo.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200909222244.23901.shoesoft@gmx.net> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.64 Cc: Barney Cordoba , pluknet Subject: Re: where is device_get_parent function defined X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Sep 2009 20:44:27 -0000 On Tuesday 22 September 2009 16:21:54 Barney Cordoba wrote: > --- On Tue, 9/22/09, pluknet wrote: ... > > Following style(9): > > ### > > The function type should be on a > > line by itself preceding the function. > > > > static char * > > function(int a1, int a2, float fl, > > int a4) > > ### > > > > So you can safely use the caret sign in regex: grep > > ^keyword path > > Except for the 50K recursive warnings from the module build directories > you're correct. In that case, I normally use: find /usr/src/ -type f | xargs grep ^device_get_parent Additionally specifying -name '*.c' should even be faster. -- Stefan