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 <>


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


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