Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Sep 2009 08:37:26 -0700 (PDT)
From:      Barney Cordoba <barney_cordoba@yahoo.com>
To:        pluknet <pluknet@gmail.com>, gary.jennejohn@freenet.de
Cc:        current@freebsd.org
Subject:   Re: where is device_get_parent function defined
Message-ID:  <917077.59537.qm@web63902.mail.re1.yahoo.com>
In-Reply-To: <20090922171629.418a089b@ernst.jennejohn.org>

next in thread | previous in thread | raw e-mail | index | archive | help
=0A=0A--- On Tue, 9/22/09, Gary Jennejohn <gary.jennejohn@freenet.de> wrote=
:=0A=0A> From: Gary Jennejohn <gary.jennejohn@freenet.de>=0A> Subject: Re: =
where is device_get_parent function defined=0A> To: "pluknet" <pluknet@gmai=
l.com>=0A> Cc: "Barney Cordoba" <barney_cordoba@yahoo.com>, current@freebsd=
..org=0A> Date: Tuesday, September 22, 2009, 11:16 AM=0A> On Tue, 22 Sep 200=
9 17:37:00 +0400=0A> pluknet <pluknet@gmail.com>=0A> wrote:=0A> =0A> > 2009=
/9/22 Barney Cordoba <barney_cordoba@yahoo.com>:=0A> > >=0A> > >=0A> > > --=
- On Tue, 9/22/09, Gary Jennejohn <gary.jennejohn@freenet.de>=0A> wrote:=0A=
> > >=0A> > >> From: Gary Jennejohn <gary.jennejohn@freenet.de>=0A> > >> Su=
bject: Re: where is device_get_parent=0A> function defined=0A> > >> To: "Ba=
rney Cordoba" <barney_cordoba@yahoo.com>=0A> > >> Cc: current@freebsd.org=
=0A> > >> Date: Tuesday, September 22, 2009, 5:32 AM=0A> > >> On Mon, 21 Se=
p 2009 15:27:42 -0700=0A> > >> (PDT)=0A> > >> Barney Cordoba <barney_cordob=
a@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 posting. The=0A> "problem" wi=
th grep is=0A> > > that you get about a billion lines, particularly=0A> on =
systems with 4 or=0A> > > 5 different kernel sources installed.=0A> > >=0A>=
 > =0A> > Following style(9):=0A> > ###=0A> >=A0 =A0 =A0 The function type =
should 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, 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> Which, of course, is exactly=
 why I used it.=A0 This=0A> style(9) rule is one=0A> big advantage which Fr=
eeBSD has over Linux.=A0 It's=0A> practically impossible to=0A> find a func=
tion in Linux because the type is always on the=0A> same line as the=0A> fu=
nction declaration.=A0 Drives my crazy.=0A> =0A> ---=0A> Gary Jennejohn=0A=
=0ASo all they need now is an open to turn off the recursive directory=0Awa=
rnings....=0A=0AOf course a section in the man page telling you the source =
module would=0Amake way too much sense to be adopted by any of the free sof=
tware groups...=0A=0ABC=0A=0A=0A      




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