Hi...
I actually followed your direction and made the pointer static. But that did not
solve the problem which I think is expected if I am not wrong. Because even though
the klife pointer passed in klife_open is local, we save the pointer in
filp-private_data for any future access to that
Hi
I actually followed your direction and made the pointer static. But that did
not solve the problem which I think is expected if I am not wrong. Because even
though the klife pointer passed in klife_open is local, we save the pointer in
filp-private_data for any future access to that memory
Hi..
I made all my register functions inline and also replaced xchg with spin_lock and spin_unlock. But that did not help. I am having the same result.
Thank you for considering my suggestions. At least we are one step
closer to the solution. So it's not about being inlined or not nor
Hi
I made all my register functions inline and also replaced xchg with spin_lock
and spin_unlock. But that did not help. I am having the same result.
To clarify the confusion, I actually run a userspace program that calls the
module's open routine which registers the hook. So registration is
Hello...
Why is registering an empty function and calling it from inside do_timer
freezing the system after a short period of good run?
There are several suspects:
1. your code (call_timer_hook) is called while xtime_lock is held. it
could lead to lock contention.
2. you're running out of
Hi
Thanks for your reply. Regarding your suspects -
1. I am actually calling the register_timer_interrupt routine to register the
hook only once by running the userspace program once that registers the hook.
So there should not be any lock contention I think unless the lock is global in
the