Re: Mechnism for sharing data between kernel and user space

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

 



On Mon, 22 May 2017 10:13:08 +0530, jitendra kumar khasdev said:

> I am exploring the mechanism for sharing data between kernel and user
> space. There are following mechanism I have found
>
>    1. copy_to_user/copy_from_user
>    2. Netlink sock
>    3. /proc, /debugfs etc.
>
> Other than this, Is there any efficient way of which I could read/write
> linked-list that I have created from my kernel module.

There's always ioctl. And mmap.  And read/write on /dev/mem. And a number of
even worse bad ideas.

The good ideas will depend on what sort of data you're trying to move around.
Binary versus printable, structured or not, how much data, how often, and
how fast.  The best way to move a single %d string representing an I/O count
once every 5 seconds is different from trying to run tcpdump on a bond of
2 40gigabit interfaces running NFS traffic full blast....

Attachment: pgpoSx3vzHtii.pgp
Description: PGP signature

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[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