How is the data passed between user space and kernel
I am trying to pass some parameters from user space to kernel when reading a proc file. Firstly, I clear the buffer in user space and put some special tokens inside, but it seems that all the tokens are gone when I print the buffer in kernel. Does this mean when the proc read function in kernel is called, kernel will allocate memory without initializing it and when the read function exits, the memory will be copied into the user space buffer?
Is there any good method to pass parameter when calling proc read function?
|