Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Sep 2009 22:44:23 +0200
From:      Stefan Ehmann <shoesoft@gmx.net>
To:        freebsd-current@freebsd.org
Cc:        Barney Cordoba <barney_cordoba@yahoo.com>, pluknet <pluknet@gmail.com>
Subject:   Re: where is device_get_parent function defined
Message-ID:  <200909222244.23901.shoesoft@gmx.net>
In-Reply-To: <654636.94077.qm@web63908.mail.re1.yahoo.com>
References:  <654636.94077.qm@web63908.mail.re1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 22 September 2009 16:21:54 Barney Cordoba wrote:
> --- On Tue, 9/22/09, pluknet <pluknet@gmail.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909222244.23901.shoesoft>