[H-GEN] kernel info

Martin Pool mbp at pharos.com.au
Sat Sep 6 04:57:51 EDT 1997


On Sat, 6 Sep 1997, Byron Ellacott wrote:

> As the kernel is still active after a shutdown (ie you can ping, switch
> VCs, etc) I would assume I can add a timer?  Failing that, a busy loop
> would content me, as horrible as that may be :)  but I still don't know
> how to delay for x ms in the kernel..

The Linux kernel has a queue -- I forget the correct name -- of things it
wants to do at some time in the future.  You add an element to the queue
containing the time at which you want it to run and a function pointer to
the code you want to run, and you're set.

> Does anyone have any suggestions?

Yes, but I think you might be offended ;-)

Martin Pool
PGP e-mail preferred

----------------------- HUMBUG General List --------------------------------
echo "unsubscribe general" | mail majordomo at humbug.org.au # To Unsubscribe



More information about the General mailing list