From owner-freebsd-current@FreeBSD.ORG Tue Sep 22 15:39:43 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26B961065676 for ; Tue, 22 Sep 2009 15:39:43 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: from n7b.bullet.mail.ac4.yahoo.com (n7b.bullet.mail.ac4.yahoo.com [76.13.13.77]) by mx1.freebsd.org (Postfix) with SMTP id D1E408FC19 for ; Tue, 22 Sep 2009 15:39:42 +0000 (UTC) Received: from [76.13.13.25] by n7.bullet.mail.ac4.yahoo.com with NNFMP; 22 Sep 2009 15:39:42 -0000 Received: from [76.13.10.184] by t4.bullet.mail.ac4.yahoo.com with NNFMP; 22 Sep 2009 15:39:42 -0000 Received: from [127.0.0.1] by omp125.mail.ac4.yahoo.com with NNFMP; 22 Sep 2009 15:39:42 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 114808.33704.bm@omp125.mail.ac4.yahoo.com Received: (qmail 62829 invoked by uid 60001); 22 Sep 2009 15:37:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1253633846; bh=YMryTHcWTMJgAXz4bAQRwaFOl2nGWh1oOi1aJflvFkM=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=vMf515rLTmGNj+PzS0X0IeQfH+jlcSzsXDqytUGM+SkNu3fAfv0D8Kw63iEzNgTgdZ+P2uX8IcQbNyvj5Y1NKqI8BMHRplOnD7yBhDgkMpPxZ+EWxclNSux006X5kBoSKQJTx0VEBlmBsS4cP2qygasW98+TRvRoyvIcU8ezD2k= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=WbBmtcQNjuEeWgc5GZKXtaZwM8smuBcwJvBvEM4cc8W51EDBAkPyKnV/OHjq24WwgMbJBB1S1mSHGjnsIxzL/LCosjHNFSZ1ajs2mqZl/INthBNu8XWRiWcUQT6Apk58dlJ0kbzeZpbHyG+Dc61TI9L+MsnUPQpLN4+IwfHMPE0=; Message-ID: <917077.59537.qm@web63902.mail.re1.yahoo.com> X-YMail-OSG: 5dvTRQsVM1mSl5Ru6qIBZxt30Q63_DPNTYmec1JMcXSyokQ_Z44XhevPSjFYWjToQGPbx5N5iJ29AZYsSYmauplUSMw8B07KBMeIW2oLx2N5pnFNvlnpVzZt.R5ESf4_hKM2EPv2.ii8De1ChfA94FJn6.v45eSJrt7JNQcoVnYlIL97vEILx6PgwxDn35MGPZc3jZVCzQPhyW4.aR5SdT.P6JWwD2dU.Wn6jCZ5RPn5HNGvBrVcUO62sRU95JFc6nX7YYeB8ix0VUlpesmNEHgcVsyo9IXEAPXwb2FQ6zTw Received: from [98.203.21.152] by web63902.mail.re1.yahoo.com via HTTP; Tue, 22 Sep 2009 08:37:26 PDT X-Mailer: YahooMailClassic/7.0.14 YahooMailWebService/0.7.347.2 Date: Tue, 22 Sep 2009 08:37:26 -0700 (PDT) From: Barney Cordoba To: pluknet , gary.jennejohn@freenet.de In-Reply-To: <20090922171629.418a089b@ernst.jennejohn.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: current@freebsd.org 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 15:39:43 -0000 =0A=0A--- On Tue, 9/22/09, Gary Jennejohn wrote= :=0A=0A> From: Gary Jennejohn =0A> Subject: Re: = where is device_get_parent function defined=0A> To: "pluknet" =0A> Cc: "Barney Cordoba" , 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 =0A> wrote:=0A> =0A> > 2009= /9/22 Barney Cordoba :=0A> > >=0A> > >=0A> > > --= - On Tue, 9/22/09, Gary Jennejohn =0A> wrote:=0A= > > >=0A> > >> From: Gary Jennejohn =0A> > >> Su= bject: Re: where is device_get_parent=0A> function defined=0A> > >> To: "Ba= rney Cordoba" =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 =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