When you are in kenerl mode, you can use the copy_to_user() function to put some kernel data in a user buffer.Hi all,
Does anyone know how can i develop a program that communicates with kernel?
I would like to develop an application that can read some kernel data structures like task struct?
BR,
Mauricio Lin.
So you will have to write a system call (to enter in kernel mode) and to copy the the needed kernel data in a user buffer. But check all the system calls before. Maybe there is one which fits your needs.
=====
************************************************
Conhecimento vem do seu instrutor; Sabedoria vem do seu interior. (Bruce Lee) ************************************************
_______________________________________________________ Yahoo! Mail agora com 100MB, anti-spam e antivírus grátis! http://br.info.mail.yahoo.com/
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/