Date: Fri, 29 Sep 2000 13:02:51 -0700 From: Mike Smith <msmith@freebsd.org> To: King Fai Wong <kfw02@uow.edu.au> Cc: freebsd-realtime@freebsd.org Subject: Re: How to use gettimeofday() in the kernel? Message-ID: <200009292002.e8TK2pA06174@mass.osd.bsdi.com> In-Reply-To: Your message of "Sat, 30 Sep 2000 05:59:02 %2B1100." <200009291859.FAA15474@wumpus.its.uow.edu.au>
next in thread | previous in thread | raw e-mail | index | archive | help
> Hello, please help me to solve my problem > > I have a question on how to use the gettimeofday function inside > the kernel of FreeBSD. You don't. The variable time_second contains the current time, UTC. > Also, can you tell me that how to open a file inside the kernel or use > the open function inside a program that run in kernel? If you are trying to read/write files inside the kernel, you are probably trying to do the wrong thing. If you insist on doing this, look at the kernel linker (sys/kern/kern_linker.c) for examples. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-realtime" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009292002.e8TK2pA06174>