* G.B.Naidu <[EMAIL PROTECTED]> [000529 01:13] wrote:
>
> Hi,
>
> I would like to know how to get time of the day in side kernel. When I
> used gettimeofday() in side kernel, it was giving panic on 3.3 FreeBSD
> release. It didnt panic on 3.1-RELEASE. So what is the problem?
>
> Can I use gettimeofday() inside kernel? if so why 3.3 is panicking? Ifnot
> why 3.1 is not panicking?
>
> Next question is how can I achieve the equal functionality of
> gettimeofday() call in kernel? Is there anyway?
>
> One more question: Is it wrong to call system call from kernel files?
It depends on how you call it, look at the sendfile implementation and
see how it has to call writev(), userland_writev() != kernel_writev(),
you need to munge with the arguements.
--
-Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]]
"I have the heart of a child; I keep it in a jar on my desk."
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message