Re: Allocate userspace memory

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

 



On Sat, May 05, 2007 at 09:32:25AM +0200, Jirka Pirko wrote:
> 
> 
>  Greg KH napsal(a):
> > On Fri, May 04, 2007 at 09:16:22AM +0200, Jirka Pirko wrote:
> >   
> >>  Hi
> >>
> >>  I'm writing pseudo chardev and i need to pass some structure to 
> >> userspace.  It includes strings and pointers to other structures. I need 
> >> to allocate  userspace memory chunks and pass pointers to in into 
> >> userspace process where  it can be used. Is there any chance to do it?
> >>     
> >
> > No, have userspace allocate the memory, pass it to the kernel, fill it
> > up, and then pass it back.  Much easier that way.
> >   
>  ok - but it will cause more syscalls which i wanted to prevent :/

syscalls on Linux a fast, very fast, in fact, the fastest of any OS
right now.  So don't worry about speed issues here.

thanks,

greg k-h

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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