From owner-freebsd-hackers Wed Aug 14 20:53:14 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B17E937B407 for ; Wed, 14 Aug 2002 20:53:07 -0700 (PDT) Received: from hotmail.com (oe42.pav0.hotmail.com [64.4.32.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id A78A843E84 for ; Wed, 14 Aug 2002 20:52:21 -0700 (PDT) (envelope-from oykai@msn.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 14 Aug 2002 20:52:07 -0700 X-Originating-IP: [210.12.61.105] From: "ouyang kai" To: Subject: Hi, the kernel how control timeout and interrupt method? Date: Thu, 15 Aug 2002 11:51:58 +0800 MIME-Version: 1.0 X-Mailer: MSN Explorer 6.10.0016.1624 Content-Type: multipart/mixed; boundary="----=_NextPart_001_0000_01C24452.2929FDA0" Message-ID: X-OriginalArrivalTime: 15 Aug 2002 03:52:07.0802 (UTC) FILETIME=[205DEDA0:01C2440F] 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 ------=_NextPart_001_0000_01C24452.2929FDA0 Content-Type: multipart/alternative; boundary="----=_NextPart_002_0001_01C24452.2929FDA0" ------=_NextPart_002_0001_01C24452.2929FDA0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Hi guys, I have two questions, please help. 1. in one book, there are both pfslowtimo(void *arg) and pffasttimo(void = *arg) in =20 uipc_domain.c, which will be called by timeout, one is called every 500ms= , the other is called every 200ms. I want to know how FreeBSD control the t= imeout? I want to the kernel how to know it is time to call pfslowtimo or pffastt= imo? 2. I have a data-line, which connet the COM2 with a special backplane(my = box's IDE disk attach by the backplane). I can scan the COM2's state to find whether the= IDE disk exist or not. I use the polling method to scan in user space. =20 I access '/dev/io' device and get the COM state from the interface addre= ss.I think this method is unefficient. I think when the COM status change, it should spring an interrupt, the k= erenl will ignore the interrupt default, right? I can write an interrupt program, or embed = my process in the kernel. But I have no idea how to start. how can I start my task? =20 Thank you! Best Regards Ouyang KaiGet more from the Web. FREE MSN Explorer download : http://exp= lorer.msn.com ------=_NextPart_002_0001_01C24452.2929FDA0 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable
Hi guys,
&n= bsp;I have two questions, please help.
1. in one book, there are both = pfslowtimo(void *arg) and pffasttimo(void *arg) in
uipc_domain.c, whi= ch will be called by timeout, one is called every 500ms,
the other is = called every 200ms. I want to know how FreeBSD control the timeout?
I = want to the kernel how to know it is time to call pfslowtimo or pffasttim= o?
2. I have a data-line, which connet the COM2 with a special= backplane(my box's IDE disk
attach by the backplane). I can scan the = COM2's state to find whether the IDE disk exist
or not. I use the poll= ing method to scan in user space.
 I access '/dev/io' device and= get the COM state from the interface address.I think this
method is u= nefficient.
 I think when the COM status change, it should spring= an interrupt, the kerenl will ignore
the interrupt default, right? I = can write an interrupt program, or embed my process in the
kernel. But= I have no idea how to start. how can I start my task?
 
 = ;Thank you!
Best Regards
Ouyang Kai
 
&n= bsp;


Get more from the Web. FREE = MSN Explorer download : http://explor= er.msn.com

------=_NextPart_002_0001_01C24452.2929FDA0-- ------=_NextPart_001_0000_01C24452.2929FDA0 Content-Type: text/plain; name="interrupt.txt" Content-Disposition: attachment; filename="interrupt.txt" Content-Transfer-Encoding: quoted-printable Hi guys, I have two questions, please help. 1. in one book, there are both pfslowtimo(void *arg) and pffasttimo(void = *arg) in =20 uipc_domain.c, which will be called by timeout, one is called every 500ms= , the other is called every 200ms. I want to know how FreeBSD control the t= imeout? I want to the kernel how to know it is time to call pfslowtimo or pffastt= imo? 2. I have a data-line, which connet the COM2 with a special backplane(my = box's IDE disk attach by the backplane). I can scan the COM2's state to find whether the= IDE disk exist or not. I use the polling method to scan in user space. =20 I access '/dev/io' device and get the COM state from the interface addre= ss.I think this method is unefficient. I think when the COM status change, it should spring an interrupt, the k= erenl will ignore the interrupt default, right? I can write an interrupt program, or embed = my process in the kernel. But I have no idea how to start. how can I start my task? =20 Thank you! Best Regards Ouyang Kai ------=_NextPart_001_0000_01C24452.2929FDA0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message