> Firstly, Does preempt_disable() disable the preemption on all the > processors or on just the local processor? Only on the local cpu. This is for disabling preemption and protecting your critical section for per-cpu kernel space process context data. > Lastly, is it allowable to schedule / sleep immediately after a call > to preempt_disable()? IMO: schedule() internally disables preemption before doing a context switch, so may be ok to schedule between preempt disable and enable. -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ