Date: Wed, 23 Sep 2009 07:36:21 -0700 (PDT) From: Barney Cordoba <barney_cordoba@yahoo.com> To: Stefan Ehmann <shoesoft@gmx.net>, Andriy Gapon <avg@icyb.net.ua> Cc: freebsd-current@freebsd.org, pluknet <pluknet@gmail.com> Subject: Re: where is device_get_parent function defined Message-ID: <961251.9294.qm@web63906.mail.re1.yahoo.com> In-Reply-To: <4ABA0DC5.6070502@icyb.net.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
=0A=0A--- On Wed, 9/23/09, Andriy Gapon <avg@icyb.net.ua> wrote:=0A=0A> Fro= m: Andriy Gapon <avg@icyb.net.ua>=0A> Subject: Re: where is device_get_pare= nt function defined=0A> To: "Stefan Ehmann" <shoesoft@gmx.net>=0A> Cc: free= bsd-current@freebsd.org, "Barney Cordoba" <barney_cordoba@yahoo.com>, "pluk= net" <pluknet@gmail.com>=0A> Date: Wednesday, September 23, 2009, 8:00 AM= =0A> on 22/09/2009 23:44 Stefan Ehmann=0A> said the following:=0A> > On Tue= sday 22 September 2009 16:21:54 Barney Cordoba=0A> wrote:=0A> >> --- On Tue= , 9/22/09, pluknet <pluknet@gmail.com>=0A> wrote:=0A> > ...=0A> >>> Followi= ng style(9):=0A> >>> ###=0A> >>>=A0 =A0 =A0 The function type should=0A> be= on a=0A> >>> line by itself preceding the function.=0A> >>>=0A> >>>=A0 =A0= =A0 static char *=0A> >>>=A0 =A0 =A0 function(int a1, int a2,=0A> float fl= ,=0A> >>> int a4)=0A> >>> ###=0A> >>>=0A> >>> So you can safely use the car= et sign in regex:=0A> grep=0A> >>> ^keyword path=0A> >> Except for the 50K = recursive warnings from the=0A> module build directories=0A> >> you're corr= ect.=0A> > =0A> > In that case, I normally use:=0A> > find /usr/src/ -type = f | xargs grep=0A> ^device_get_parent=0A> > =0A> > Additionally specifying = -name '*.c' should even be=0A> faster.=0A> > =0A> =0A> I am surprised with = this whole 'recursive' issue because in=0A> a clean source tree=0A> there a= re no recursive symlinks. They only come to be if a=0A> developer forgets t= o=0A> run 'make obj' before doing 'make' in modules directories.=0A> I thin= k that it is a good practice to never pollute the=0A> source tree with buil= d=0A> objects, they should belong to /usr/obj or equivalent.=0A=0AIf you ma= ke modules from the module directory (rather than a full=0Amake in the kern= el build directory) then you are not using the exact =0Asame switches, as I= understand it. I had the problem with a witness =0Akernel and it was quite= a disaster.=0A=0Abarney=0A=0A=0A
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?961251.9294.qm>