Looking at the code of init_workspace() (in system\core\init
\property_service.c),system_properties memory region is created by
init process and I understand that's how those system property
functions (\bionic\libc\bionic \system_properties.c) work since all
processes are child of init. But how about other cases like the frame
buffer heap created by opencore for video rendering? They are not in
same process so how does it work?
Hope anybody can guide me on this. Thanks.
--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.
It looks MemoryDealer is something on the top of what I'm really
interested.
I'm thinking about using pmem for other projects as a common physical
memory allocator. There is general need to allocate physical
contiguous memory if the hardware graphic engine does not support
scatter gathering and understand any virtual address from user space.
Pmem is one of the drivers raised my interest.
I have been looking at PPM and CME. PPM (http://lwn.net/Articles/
355462/) can convert an allocated memory to Sys V shared memory so
other process can use it in a standard way. CMEM (from TI's LinuxTool
kit) can return physical address to user land and another process just
mmap again in it's own process space to share it. And I don't
understand how Android handle the same problem.
My guess is internally inside the binder, it uses sockets to transfer
FD opened in one process and make a copy in another process, like
mentioned here:
http://www.myelin.co.nz/post/2003/12/2/
On Jan 26, 9:52 am, Dianne Hackborn <hack...@android.com> wrote:
> MemoryDealer and associated classes are an example of a way to implement
> shared memory:
>
> http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;...
>
>
>
>
>
> On Mon, Jan 25, 2010 at 6:12 PM, timyao <tim...@gmail.com> wrote:
> > Hi,
> > I have a question about the file descriptor created by pmem or ashmem.
> > It's said the file descriptor can be transfered to other processes by
> > IPC/binder so the memory can be shared. But I wonder how the file
> > descriptor can be used by another process if it's not the case when a
> > child process inherits fd sets from its parent.
>
> > Looking at the code of init_workspace() (in system\core\init
> > \property_service.c),system_properties memory region is created by
> > init process and I understand that's how those system property
> > functions (\bionic\libc\bionic \system_properties.c) work since all
> > processes are child of init. But how about other cases like the frame
> > buffer heap created by opencore for video rendering? They are not in
> > same process so how does it work?
>
> > Hope anybody can guide me on this. Thanks.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "android-platform" group.
> > To post to this group, send email to android-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > android-platfo...@googlegroups.com<android-platform%2Bunsubscrib e...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/android-platform?hl=en.
>
> --
> Dianne Hackborn
> Android framework engineer
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails. All such
> questions should be posted on public forums, where I and others can see and
> answer them.
On Jan 26, 9:52 am, Dianne Hackborn <hack...@android.com> wrote:
> MemoryDealer and associated classes are an example of a way to implement
> shared memory:
>
> http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;...
>
>
>
>
>
> On Mon, Jan 25, 2010 at 6:12 PM, timyao <tim...@gmail.com> wrote:
> > Hi,
> > I have a question about the file descriptor created by pmem or ashmem.
> > It's said the file descriptor can be transfered to other processes by
> > IPC/binder so the memory can be shared. But I wonder how the file
> > descriptor can be used by another process if it's not the case when a
> > child process inherits fd sets from its parent.
>
> > Looking at the code of init_workspace() (in system\core\init
> > \property_service.c),system_properties memory region is created by
> > init process and I understand that's how those system property
> > functions (\bionic\libc\bionic \system_properties.c) work since all
> > processes are child of init. But how about other cases like the frame
> > buffer heap created by opencore for video rendering? They are not in
> > same process so how does it work?
>
> > Hope anybody can guide me on this. Thanks.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "android-platform" group.
> > To post to this group, send email to android-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > android-platfo...@googlegroups.com<android-platform%2Bunsubscrib e...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/android-platform?hl=en.
>
> --
> Dianne Hackborn
> Android framework engineer
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
-Tim
> > > > android-platfo...@googlegroups.com<android-platform%2Bunsubscrib e...@googlegroups.com><android-platform%2Bunsubscrib
> > > > android-platfo...@googlegroups.com<android-platform%2Bunsubscrib e...@googlegroups.com><android-platform%2Bunsubscrib
> > e...@googlegroups.com>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-platform?hl=en.
>
> > > --
> > > Dianne Hackborn
> > > Android framework engineer
> > > hack...@android.com
>
> > > Note: please don't send private questions to me, as I don't have time to
> > > provide private support, and so won't reply to such e-mails. All such
> > > questions should be posted on public forums, where I and others can see
> > and
> > > answer them.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "android-platform" group.
> > To post to this group, send email to android-...@googlegroups.com.
> > To unsubscribe from this group, send email to
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
On Jan 27, 12:19 pm, Colin Burgess <colin.burg...@gmail.com> wrote:
> It's in the kernel
>
> http://android.git.kernel.org/?p=kernel/common.git;a=blob;f=drivers/m...
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.