I put the code in a function, and called it.
It seems that when the code is in user_init() it does not work.
Once i put it in a function, and called it (from the same place as it was before in user_init) the code works.
I didn't change the code.
struct __declspec(align(4)) plug_saved_param {
the same structure. same size.
do you mean that the struct in the memory did not start in an aligned 4 bit address ?