From owner-freebsd-net Mon May 29 0:37:49 2000 Delivered-To: freebsd-net@freebsd.org Received: from sasi.com (sasi.com [164.164.56.2]) by hub.freebsd.org (Postfix) with ESMTP id 7AEA037BBDC; Mon, 29 May 2000 00:37:42 -0700 (PDT) (envelope-from gbnaidu@sasi.com) Received: from samar (sasi.com [164.164.56.2]) by sasi.com (8.9.3/8.9.3) with SMTP id NAA03010; Mon, 29 May 2000 13:05:41 +0530 (IST) Received: from pcd75.sasi.com ([10.0.16.75]) by sasi.com; Mon, 29 May 2000 13:05:41 +0000 (IST) Received: from localhost (gbnaidu@localhost) by pcd75.sasi.com (8.9.3/8.9.3) with ESMTP id NAA07137; Mon, 29 May 2000 13:04:46 +0530 Date: Mon, 29 May 2000 13:04:45 +0530 (IST) From: "G.B.Naidu" To: freebsd-net@FreeBSD.org Cc: freebsd-hackers@FreeBSD.org Subject: How do I time in kernel... Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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? Any help is appreciated. thanks --gb -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message