Date: Tue, 22 Sep 2009 07:21:54 -0700 (PDT) From: Barney Cordoba <barney_cordoba@yahoo.com> To: pluknet <pluknet@gmail.com> Cc: current@freebsd.org Subject: Re: where is device_get_parent function defined Message-ID: <654636.94077.qm@web63908.mail.re1.yahoo.com> In-Reply-To: <a31046fc0909220637u76a46b24tdf90306836356f78@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
=0A=0A--- On Tue, 9/22/09, pluknet <pluknet@gmail.com> wrote:=0A=0A> From: = pluknet <pluknet@gmail.com>=0A> Subject: Re: where is device_get_parent fun= ction defined=0A> To: "Barney Cordoba" <barney_cordoba@yahoo.com>=0A> Cc: c= urrent@freebsd.org=0A> Date: Tuesday, September 22, 2009, 9:37 AM=0A> 2009/= 9/22 Barney Cordoba <barney_cordoba@yahoo.com>:=0A> >=0A> >=0A> > --- On Tu= e, 9/22/09, Gary Jennejohn <gary.jennejohn@freenet.de>=0A> wrote:=0A> >=0A>= >> From: Gary Jennejohn <gary.jennejohn@freenet.de>=0A> >> Subject: Re: wh= ere is device_get_parent function=0A> defined=0A> >> To: "Barney Cordoba" <= barney_cordoba@yahoo.com>=0A> >> Cc: current@freebsd.org=0A> >> Date: Tuesd= ay, September 22, 2009, 5:32 AM=0A> >> On Mon, 21 Sep 2009 15:27:42 -0700= =0A> >> (PDT)=0A> >> Barney Cordoba <barney_cordoba@yahoo.com>=0A> >> wrote= :=0A> >>=0A> >> > I can't seem to find where=0A> device_get_parent() is=0A>= >> defined.=0A> >> >=0A> >>=0A> >> /sys/kern/subr_bus,c=0A> >>=0A> >> grep= -r ^device_get_parent /sys/=0A> >=0A> > Thanks, I found it shortly after p= osting. The=0A> "problem" with grep is=0A> > that you get about a billion l= ines, particularly on=0A> systems with 4 or=0A> > 5 different kernel source= s installed.=0A> >=0A> =0A> Following style(9):=0A> ###=0A> =A0 =A0=A0=A0Th= e function type should be on a=0A> line by itself preceding the function.= =0A> =0A> =A0 =A0=A0=A0static char *=0A> =A0 =A0=A0=A0function(int a1, int = a2, float fl,=0A> int a4)=0A> ###=0A> =0A> So you can safely use the caret = sign in regex: grep=0A> ^keyword path=0A> =0A> -- =0A> wbr,=0A> pluknet=0A= =0AExcept for the 50K recursive warnings from the module build directories= =0Ayou're correct.=0A=0AI'd think there would be an automated way to add th= e source modules into=0Athe man pages. It certainly would be useful.=0A=0AB= C=0A=0A=0A
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?654636.94077.qm>