[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <45ED30E5.9040105@stud.feec.vutbr.cz>
Date: Tue, 06 Mar 2007 10:14:13 +0100
From: Schmidt Michal <xschmi00@...d.feec.vutbr.cz>
To: Mockern@...dex.ru
CC: linux-kernel@...r.kernel.org
Subject: Re: Question: schedule()
Mockern wrote:
> Hi,
>
> What does schedule() function do? I want to make my kthread preemptive.
It makes a scheduling decision, i.e. it assigns the CPU time to a
suitable runnable task. If called with the current task's state set to
TASK_(UN)INTERRUPTIBLE, it puts the task to sleep.
Kernel threads are preemptible if the kernel is configured with
CONFIG_PREEMPT.
What exactly are you trying to do?
If you're new to Linux kernel programming, I suggest you read Robert
Love's book "Linux Kernel Development".
"Linux Device Drivers" by J.Corbet, A.Rubini and G.Kroah-Hartman will be
very helpful too and it is available online: http://lwn.net/Kernel/LDD3/
Michal
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists