Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.arcetri.astro.it/irlab/doc/library/linux/khg/HyperNews/get/khg/35.html
Дата изменения: Thu Mar 23 12:38:04 2000
Дата индексирования: Wed Sep 15 00:47:19 2010
Кодировка:

Поисковые слова: mdi
Need quicker timer than 100 ms in kernel-module The HyperNews Linux KHG Discussion Pages

Question: Need quicker timer than 100 ms in kernel-module

Forum: The Linux Kernel Hackers' Guide
Date: Fri, 06 Dec 1996 19:14:31 GMT
From: Erik Thiele <erik@unterland.de>

hello

i am just writing a kernel module (2.0.27kernel), that shall turn engines.. :) you know, those electronic engines that have 4 statuses, and by selecting 1 2 3 4 1 2 3 4 etc. they turn. i just don't know the english word... :)

i use a little external hardware that needs to be triggered in order to let the engine perform a step. the module uses an add_timer(...) to be called 100 times per second. this means 50 pulses per second. this means 50 steps of the engine per second. this is not enough. :-( so. as i read above there are many real-time approaches to linux, but they aren't yet really implemented ??? :) well somebody told me about /dev/rtc i could use this one. but i still want to use a kernel module for my purpose, so:

Is it possible to use open() write() read() close() ioctl() in a kernel-module or aren't those libc functions overloaded? (i want to use /dev/rtc IN my kernel module)

byebye&thanks :) Erik


Messages

1. News: 10 ms timer patch by Reinhold J. Gerharz
-> None: Please send me the patch by Jin Hwang