You are not logged in.

#1 2012-03-15 19:38:19

kdar
Member
From: Sweet home Alabama!
Registered: 2009-06-27
Posts: 356

Best way to wake up a kernel module very X seconds?

What is best way to wake up a kernel module very X seconds to perform some tasks?

Would it better to use timer, sleep functions, or schedule_timeout()? What is usually the easiest to implement?

Last edited by kdar (2012-03-16 21:08:31)

Offline

#2 2012-03-16 19:12:50

prasinoulhs
Member
From: Greece
Registered: 2011-10-30
Posts: 53

Re: Best way to wake up a kernel module very X seconds?

What, exactly, do you mean by "module".

A sleep function would be the easiest way to go, although it doesn't promises that it will return exactly after x seconds, but when the process is selected for execution.

Offline

#3 2012-03-16 21:07:54

kdar
Member
From: Sweet home Alabama!
Registered: 2009-06-27
Posts: 356

Re: Best way to wake up a kernel module very X seconds?

Sorry, I meant kernel module

Last edited by kdar (2012-03-16 21:08:41)

Offline

#4 2012-03-16 21:12:40

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Best way to wake up a kernel module very X seconds?

What puts the module to sleep in the first place?

An overview of what you're actually trying to do might be helpful.

Offline

Board footer

Powered by FluxBB