I am creating a kernel module for linux. I was wondering, how can I stop a process from being scheduled? Is there a function in the sched.c that can do this? Is it possible to add a specfic task_struct to a wait queue for a certain defined period of time?