From owner-freebsd-hackers Fri Jun 8 5:54:34 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id 9C19337B403 for ; Fri, 8 Jun 2001 05:54:29 -0700 (PDT) (envelope-from roam@orbitel.bg) Received: (qmail 7847 invoked by uid 1000); 8 Jun 2001 12:53:14 -0000 Date: Fri, 8 Jun 2001 15:53:13 +0300 From: Peter Pentchev To: Rasputin Cc: freebsd-hackers@freebsd.org Subject: Re: problem with systm.h trying to call resettodr() Message-ID: <20010608155313.C7671@ringworld.oblivion.bg> Mail-Followup-To: Rasputin , freebsd-hackers@freebsd.org References: <20010608124731.A70666@dogma.freebsd-uk.eu.org> <20010608153225.I19938@ringworld.oblivion.bg> <20010608134912.A71963@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010608134912.A71963@dogma.freebsd-uk.eu.org>; from rara.rasputin@virgin.net on Fri, Jun 08, 2001 at 01:49:12PM +0100 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jun 08, 2001 at 01:49:12PM +0100, Rasputin wrote: > * Peter Pentchev [010608 13:35]: > > On Fri, Jun 08, 2001 at 12:47:31PM +0100, Rasputin wrote: > > > I'm playing with resettodr(9), to set the BIOS clock from the system time.. > > > As others pointed out, resettodr(9) is a kernel-space function. > > Section 9 of the manual is for those - see the intro(9) manual page > > with man 9 intro (just man intro would probably show you intro(1)). > > Thanks, I'd already read intro(9), but it doesn't explain how to *use* > kernel-space functions. You can only use kernel-space functions in kernel code, that is, writing a kernel module, or writing a piece of code that is to be compiled along with the rest in src/sys. If you're doing that, look at some kernel source files to see which header files need to be included. If you're not doing that, you cannot use the functions documented in section 9. G'luck, Peter -- This sentence claims to be an Epimenides paradox, but it is lying. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message