Re: Accessing a user space variable from a kernel module

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

 



--- Jeremy Andrus <jeremy@jeremya.com> wrote:
> 
<snip>

>   Here is my dilemma: I can discover the host computer's IP address
> in 
> the user-space function, but I want to send that data out to the
> PCI 
> card. In order to do this, it needs the kernel-mapped, base IO
> address 
> of the card. This is stored in the kernel module. How can I either
> send 
> (make available?) the IP address to the kernel module, or send
> (make 
> available?) the base IO address of the PCI card to the user space 
> library function?
> 
> Thanks,
> 
> 	-Jeremy
> 

use copy_to_user().

See http://www.xml.com/ldd/chapter/book/ch03.html#t8

Harmony,

--Christine


__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
--
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