memory in kernel and user land

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

 



I am looking for some simple method of exchanging data between the kernel
and a user process.  basically i cant use the proc filesystem.  so im
looking for something along these lines:

------- in kernel module
char my_array[80];

strcpy(my_array,"Hello");
//export the variable somehow into user space


---------- in user process
//import the variable from kernel space
printf("Kernel says: %s", my_array);



Ive tried to find example/documentation but i havent been successful.
thank you very very much for all your help!

Dan


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/



[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