Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Aug 2002 11:51:58 +0800
From:      "ouyang kai" <oykai@msn.com>
To:        <freebsd-hackers@FreeBSD.ORG>
Subject:   Hi, the kernel how control timeout and interrupt method?
Message-ID:  <OE42jF7HWWcWBT2Ko0900014134@hotmail.com>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]


[-- Attachment #2 --]
Hi guys,
 I have two questions, please help.
1. in one book, there are both pfslowtimo(void *arg) and pffasttimo(void *arg) in  
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 timeout?
I want to the kernel how to know it is time to call pfslowtimo or pffasttimo?

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.  
 I access '/dev/io' device and get the COM state from the interface address.I think this
method is unefficient.
 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


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?OE42jF7HWWcWBT2Ko0900014134>