RE: Exchange Date Userspace<->Kernel

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

 



Hi ,

AFAIK,Generally ppl use ioctl()'s to communicate b/w user space and  driver.
There are few calls like copy_from_user and copy_to_user
which copy data b/w user space and kernel space.
I m not sure how fast they are!

Rgds,
Anand



> -----Original Message-----
> From: kernelnewbies-bounce@nl.linux.org
> [mailto:kernelnewbies-bounce@nl.
> linux.org]On Behalf Of Danilo Reinhardt
> Sent: Monday, April 05, 2004 3:08 PM
> To: kernelnewbies@nl.linux.org
> Subject: Exchange Date Userspace<->Kernel
>
>
> Hi,
>
> I want to develop a driver that exchanges/modifies data between 2
> devices. Now I try to find out whats the best way to do this.
>
> I think there are 2 ways to do it, the first by doing all work inside
> the driver, and the secondy by passing the data from the driver to an
> userspace programm which handles and forwards the data to the second
> device.
>
> Whats the fastest way to exchange data between the kernel and a
> userspace process and how fast is it?
>
> And on the other side, whats the best way to exchange data inside the
> kernel between 2 devices (which are handled by the same driver!).
>
> Thanks for all replies!
>
> Bye Dan
>
>
>
> --
> 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/


[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