Re: Accessing a user space variable from a kernel module

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

 



On Thu, 24 Mar 2005 02:40:59 -0800 (PST), cranium2003
<cranium2003@xxxxxxxxx> wrote:
> Hi all,
>        I read thread on kernelnewbies that string can
> be accessed in kernel from user space. So i try to do
> it. I write simple user space program that receives
> input string from user.  I wan to know how then i can
> write a kernel module that will receive that string
> given by user.

Some methods of passing data from user to kernel is through 
- your own character or block devices, 
- proc entries
- your own system calls.

Which one to use depends on what you want to do.

If you just want to print a string create a char or block device and
pass it on write operation or whatever...
Proc is also easy to implement....

regards
Manish Regmi

--
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