From owner-freebsd-current@FreeBSD.ORG Tue Sep 22 14:35:30 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 DCD3E106572A for ; Tue, 22 Sep 2009 14:35:29 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: from n72.bullet.mail.sp1.yahoo.com (n72.bullet.mail.sp1.yahoo.com [98.136.44.34]) by mx1.freebsd.org (Postfix) with SMTP id B72438FC1A for ; Tue, 22 Sep 2009 14:35:29 +0000 (UTC) Received: from [69.147.84.144] by n72.bullet.mail.sp1.yahoo.com with NNFMP; 22 Sep 2009 14:21:55 -0000 Received: from [68.142.200.225] by t6.bullet.mail.sp1.yahoo.com with NNFMP; 22 Sep 2009 14:21:55 -0000 Received: from [76.13.13.25] by t6.bullet.mud.yahoo.com with NNFMP; 22 Sep 2009 14:21:54 -0000 Received: from [76.13.10.179] by t4.bullet.mail.ac4.yahoo.com with NNFMP; 22 Sep 2009 14:21:54 -0000 Received: from [127.0.0.1] by omp120.mail.ac4.yahoo.com with NNFMP; 22 Sep 2009 14:21:54 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 839162.78692.bm@omp120.mail.ac4.yahoo.com Received: (qmail 94541 invoked by uid 60001); 22 Sep 2009 14:21:54 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1253629314; bh=f49mzKbqZaVq6urUQMjdK35nGwoWa3u+KHrRyaPJB1k=; 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=TDEDPQUge1pbXNaRdBnjysdcg1KYODta4yrWYDiwTOlZ9S9XJN6ANEH5La6qUVntdzz2xFtIdZRI7WG4DXaz+PkRbhbE8YTko2fbeT5onDaNGobZoLdEBGSK0uPAqUz7rpr+30kMgZDwNc8fvK8gparNHqAVc1/H0lVMgWS+L4c= 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=Au2fBMoyCbDmkQAUo9qkisHkIqooPPFD/efxN+q8OnHSmbe70UbX7LsyFDD90M36TEuUgKr1KiIdkkqblIWzdaJVVHFJxcr2BCNeV8vL2LtoiXMzt2d0RZ/wB+6CpQHy/zvFNE6RnpZFfHJjKUPsqxtttACXswsoFxAdB4e88Dg=; Message-ID: <654636.94077.qm@web63908.mail.re1.yahoo.com> X-YMail-OSG: p_Y7qz0VM1nbz9mr3B1J3bIf_0QIhmKjLDODcZyXoQXJ4HJU57gqSxfXWpH61c9rUeQCO1y.5Hna1lHDmY9LJK60e1NpJSz5hERES_CcX74XHRrTBxrDoo4.vGTS_WsBXaIJGPG1GAkx_bk7Q9yO_35WCTlhVeCmDeouaLsZ0tzF_DfSD0bMPKGv1QcWCEy6xga8QwiOs_IyRgOnn52XYkbpM6e5n3qgRwen4jSEW.3ejBop0Lqd4oP6kNBcoYxuv1jYswKSlkMkSjS4HRt48tI- Received: from [98.203.21.152] by web63908.mail.re1.yahoo.com via HTTP; Tue, 22 Sep 2009 07:21:54 PDT X-Mailer: YahooMailClassic/7.0.14 YahooMailWebService/0.7.347.2 Date: Tue, 22 Sep 2009 07:21:54 -0700 (PDT) From: Barney Cordoba To: pluknet In-Reply-To: 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 14:35:30 -0000 =0A=0A--- On Tue, 9/22/09, pluknet wrote:=0A=0A> From: = pluknet =0A> Subject: Re: where is device_get_parent fun= ction defined=0A> To: "Barney Cordoba" =0A> Cc: c= urrent@freebsd.org=0A> Date: Tuesday, September 22, 2009, 9:37 AM=0A> 2009/= 9/22 Barney Cordoba :=0A> >=0A> >=0A> > --- On Tu= e, 9/22/09, Gary Jennejohn =0A> wrote:=0A> >=0A>= >> From: Gary Jennejohn =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 =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