From owner-freebsd-bugs@FreeBSD.ORG Thu Sep 27 05:34:07 2007 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5EEF416A419 for ; Thu, 27 Sep 2007 05:34:07 +0000 (UTC) (envelope-from Pradeep.Nallimelli@caviumnetworks.com) Received: from smtp1.caviumnetworks.com (smtp1.caviumnetworks.com [209.113.159.133]) by mx1.freebsd.org (Postfix) with ESMTP id 1337013C465 for ; Thu, 27 Sep 2007 05:34:06 +0000 (UTC) (envelope-from Pradeep.Nallimelli@caviumnetworks.com) Received: from exch4.caveonetworks.com (Not Verified[192.168.16.23]) by smtp1.caviumnetworks.com with MailMarshal (v6, 1, 8, 2172) id ; Thu, 27 Sep 2007 01:19:45 -0400 Received: from exch4.caveonetworks.com ([192.168.16.23]) by exch4.caveonetworks.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 26 Sep 2007 22:19:02 -0700 Received: from [192.168.190.31] ([64.169.86.204]) by exch4.caveonetworks.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Wed, 26 Sep 2007 22:19:01 -0700 Message-ID: <46FB8A9C.8080704@caviumnetworks.com> Date: Thu, 27 Sep 2007 10:49:00 +0000 From: pradeep User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Fedora/1.7.8-2 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-bugs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 27 Sep 2007 05:19:02.0122 (UTC) FILETIME=[EA66C4A0:01C800C5] Subject: SYSCTL Functions X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Sep 2007 05:34:07 -0000 HI, this is pradeep and i am naive user of FreeBSD. I am using FreeBSD 6.2 , writing a device driver module in which i want to access variables in run time as a debugging information resembling /proc file system in linux. I thought of using sysctl functions but when i load the module i m getting the following error link_elf_obj: sysctl__cvmx_children symbol undefined kldload: unsupported file system. The code i wrote looks like this: SYSCTL_DECL(_cvmx); int dev_id; STSCTL_INT(_CVMX, 2, dev_id,CTLFLAG_RW,&dev_id,0,"device number"); Can anybody help me regarding sorry for my language. Thanks in advance, pradeep