hi On Tue, 03 Aug 2004 amith wrote : >Mauricio Lin wrote: > >>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. >> > as somebody already mentioned write a new system call , >and the other way would be to use a device file to read and write >something from the kernel. for every read your device_read can read >the task_struct of whichever pid you want the task_struct of , and >your user program could pass the pid or prog name of the process. Can you please explain this device file read/write method in more detail >this is a simple and easier way of reading/writing to the kernel. >Read a little about module programming and you can implement it >without much trouble. > >hope that helped. >cheers, >Amith > TIA sanjayk