RE: Re: Communication between kernel and user application

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 

For knowing about read and write methods of device, read the Rubini’s book on “Linux Device Drivers”. Read third chapter of this book.

Link: http://www.xml.com/ldd/chapter/book/ch03.html#t8

 

Gaurav

 


From: kernelnewbies-bounce@xxxxxxxxxxxx [mailto:kernelnewbies-bounce@xxxxxxxxxxxx] On Behalf Of sanjay kumar
Sent: Thursday, August 05, 2004 10:28 AM
To: amith
Cc: KERNEL
Subject: Re: Re: Communication between kernel and user application

 

 
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




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux