Welcome! Log In Create A New Profile


lock mutex under kernel timer handler

Posted by stephanie 

Is it safe to lock a mutex in a timer hnadler (kernel space)?
I have two kerenl modules wich read /wrtie to the same I2C device:
- first module: launch a timer when loaded. Read I2C register under timer handler
- second module: read/write I2C register

I seen many kerenl crash (CPU 1 is freezed)
--> I suspect that when trying to unlock mutex under timer handler, kerenl freezes
Could you comfirm that ?

Your Email:


Spam prevention:
Please, solve the mathematical question and enter the answer in the input field below. This is for blocking bots that try to post this form automatically.
Question: how much is 15 plus 6?