Attached below an example code demonstration:
---
#include
#include
#include
#include
struct task_struct *kthread;
int thread(void *args)
{
while (!kthread_should_stop()) {
mdelay(5000);
printk(KERN_INFO "Hello!\n");
schedule(); /* To avoid han
I've checked the wrong source version, mdelay() is implemented as:
n = (loops_per_jiffy * HZ * usecs) / MILLION;
for(i=0;i Hi all,
>
> Recently, I decided to use UML to develope my modules. My module calls
> mdelay() macro that is implemented in UML as:
>
> n = (loops_per_jiffy * HZ * usecs) / MI