LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   communication between user space and kernel module (https://www.linuxquestions.org/questions/linux-newbie-8/communication-between-user-space-and-kernel-module-4175543699/)

kernel_baba 05-27-2015 01:46 AM

communication between user space and kernel module
 
hi
I have two code of user.c and kernel.c , i have compiled new kernel in my system , but i don't know how to compile these code.
may i use any IDE or GCC.

veerain 05-27-2015 04:05 AM

Communication between userspace and kernel is via syscalls and ioctls.

If you want to compile kernel module then read kernel-module programming howto from TLDP.

Also read LDD (Linux device driver programming) book. Latest you have to pay. But old (a version before) version is available for free from web.

kernel_baba 05-30-2015 04:46 PM

Quote:

Originally Posted by veerain (Post 5368042)
Communication between userspace and kernel is via syscalls and ioctls.

If you want to compile kernel module then read kernel-module programming howto from TLDP.

Also read LDD (Linux device driver programming) book. Latest you have to pay. But old (a version before) version is available for free from web.

but i want to establish connection via netlink socket between user space and kernel space then i want to compile , but i don't know how will i compile my codes.. ?

veerain 05-30-2015 10:35 PM

Read this page on netlink.


All times are GMT -5. The time now is 07:02 AM.