From owner-freebsd-net@FreeBSD.ORG Wed Sep 7 14:06:42 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D304B106564A for ; Wed, 7 Sep 2011 14:06:42 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from noop.in-addr.com (mail.in-addr.com [IPv6:2001:470:8:162::1]) by mx1.freebsd.org (Postfix) with ESMTP id A7A6B8FC17 for ; Wed, 7 Sep 2011 14:06:42 +0000 (UTC) Received: from gjp by noop.in-addr.com with local (Exim 4.76 (FreeBSD)) (envelope-from ) id 1R1Im1-000LxO-Kk; Wed, 07 Sep 2011 10:06:41 -0400 Date: Wed, 7 Sep 2011 10:06:41 -0400 From: Gary Palmer To: Vladimir Budnev Message-ID: <20110907140641.GA42938@in-addr.com> References: <4E6768E4.4080600@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E6768E4.4080600@gmail.com> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: gpalmer@freebsd.org X-SA-Exim-Scanned: No (on noop.in-addr.com); SAEximRunCond expanded to false Cc: FreeBSD Net Subject: Re: Which module contains functins(arptimer)? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 14:06:42 -0000 On Wed, Sep 07, 2011 at 04:51:48PM +0400, Vladimir Budnev wrote: > Hello. > > How to determine which module contains specific functinos?. For example > we have arptimer in netinet/if_ether.c. > But how to find in which ko it compiles? > Iv tried > ls /boot/kernel/ | grep ko.symbols | xargs strings | grep -i arptimer > but that didnt work :( > > Thanks in advance. arptimer is declared static so I doubt it will show up in linker symbol tables or via "strings". Also AFAIK we don't support loading TCP/IP as a module so its probably only compiled into the kernel itself and not available as a module. Gary