0

I'm writing a Linux kernel(android Linux kernel) module. I have a general question . is it possible to force kernel run a part of code in non-preemptive mode?

fjahan
  • 113
  • 4
  • 10

1 Answers1

0

Yes, you can wrap the code in preempt_disable(); / preempt_enable();. Note that this does not block interrupts.

caf
  • 233,326
  • 40
  • 323
  • 462