From owner-freebsd-hackers Sat Jun 15 06:23:40 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA24456 for hackers-outgoing; Sat, 15 Jun 1996 06:23:40 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id GAA24447 for ; Sat, 15 Jun 1996 06:23:30 -0700 (PDT) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id PAA05884; Sat, 15 Jun 1996 15:22:09 +0200 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id PAA10378; Sat, 15 Jun 1996 15:22:01 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.5/8.6.9) id PAA02635; Sat, 15 Jun 1996 15:12:31 +0200 (MET DST) From: J Wunsch Message-Id: <199606151312.PAA02635@uriah.heep.sax.de> Subject: Re: Need Information To: freebsd-hackers@freebsd.org (FreeBSD hackers) Date: Sat, 15 Jun 1996 15:12:31 +0200 (MET DST) Cc: rishim@teil.soft.net (Rishi Gautam) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <9606142253.AA01353@teil.soft.net> from Rishi Gautam at "Jun 14, 96 02:53:08 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Rishi Gautam wrote: > How do i create a new kernel global variables? int new_variable; somewhere in a kernel source file. > How do set those variables from user prcocess? You don't. They are kernel variables. (Actually, you can hack through the kernel via /dev/mem, but it's not recommendable.) The regular access to the kernel from a user program is via a system call, so the kernel can maintain control. You might consider the sysctl library function as well. > How do I enable the kernel debugger in the FreeBSD? Do I need to options DDB in the kernel config file. > install some packeage or do I have to recompile the kernel with setting > some kernel configuration variable? You should read the section about kernel debugging in the handbook. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)