From owner-freebsd-current@FreeBSD.ORG Tue Sep 22 13:37:02 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 09791106566C for ; Tue, 22 Sep 2009 13:37:02 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-fx0-f222.google.com (mail-fx0-f222.google.com [209.85.220.222]) by mx1.freebsd.org (Postfix) with ESMTP id 9184B8FC18 for ; Tue, 22 Sep 2009 13:37:01 +0000 (UTC) Received: by fxm22 with SMTP id 22so2273864fxm.36 for ; Tue, 22 Sep 2009 06:37:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=PMDUCHmumT3afAzKB0A9DpBHsOv32yPOoT8LnVgbitE=; b=uVAjBTp1UwDY/6+vyYOXeK0FqlwvbPwFAWsOW/NxG4X/R+KRX3N5npZ6YfKr0J7v31 w8IamABPrCWkwQ6/QKMN91wlvvEFQBHpsq4wiA2UBRfQHDJhcAI5L6csN0UU92ubLaRd U5b2/MPWx69HE+zOj88ZFuOH2ktWobTBANJcI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=x18ejm3GR1nigdYxSKFJqiqbY0pPvaIRgdKJDbt+vofs3TZn2o7d0jUf31Z+Ndsemc PkMAJ9aWpufi3p3Rf+RTsiZ9HGr3w0Sui+iYpP9jnLVGAXv1odEJpDw/zT9H1CT5o6DP W4jxpo7z0uY3RAbM9vlw6wdbnZsMD2HlSI4lc= MIME-Version: 1.0 Received: by 10.204.20.138 with SMTP id f10mr821123bkb.212.1253626620435; Tue, 22 Sep 2009 06:37:00 -0700 (PDT) In-Reply-To: <295750.94482.qm@web63906.mail.re1.yahoo.com> References: <20090922113239.02f3653f@ernst.jennejohn.org> <295750.94482.qm@web63906.mail.re1.yahoo.com> Date: Tue, 22 Sep 2009 17:37:00 +0400 Message-ID: From: pluknet To: Barney Cordoba Content-Type: text/plain; charset=ISO-8859-1 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 13:37:02 -0000 2009/9/22 Barney Cordoba : > > > --- On Tue, 9/22/09, Gary Jennejohn wrote: > >> From: Gary Jennejohn >> Subject: Re: where is device_get_parent function defined >> To: "Barney Cordoba" >> Cc: current@freebsd.org >> Date: Tuesday, September 22, 2009, 5:32 AM >> On Mon, 21 Sep 2009 15:27:42 -0700 >> (PDT) >> Barney Cordoba >> wrote: >> >> > I can't seem to find where device_get_parent() is >> defined. >> > >> >> /sys/kern/subr_bus,c >> >> grep -r ^device_get_parent /sys/ > > Thanks, I found it shortly after posting. The "problem" with grep is > that you get about a billion lines, particularly on systems with 4 or > 5 different kernel sources installed. > Following style(9): ### The function type should be on a line by itself preceding the function. static char * function(int a1, int a2, float fl, int a4) ### So you can safely use the caret sign in regex: grep ^keyword path -- wbr, pluknet