Re: Passing a memory map

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

 



Jon Masters <jonmasters@xxxxxxxxx> writes:

> On Wed, 29 Dec 2004 03:50:49 +0100, Maurizio Monge
> <maurizio.monge@xxxxxxxxx> wrote:
>
>> It could be useful in the following case: suppose a server running as
>> root opens /dev/mem and would like to allow a client to access a small
>> portion of /dev/mem. It cannot pass to the client the whole file
>> descriptor to /dev/mem!
>
> Why not have the second process told which region to open and go from
> there? It's not actually that common for something to want to do what
> you're describing anyway :-).
>
> If you want to implement this, what do you want to pass across to the
> second process anyway - remember that a random pointer is useless
> outside of the process within which it lives and you already decided
> passing fd's was a bad idea. So what's left now?

System V shared memory might be sufficient.

-- 
  Ed L Cashin <ecashin@xxxxxxxxxx>


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