Hi There, I am using a pandaboard , and I have ubuntu chrooted from android. i have a framebuffer that i want to overlay on the android side , which is being produced on the ubuntu side. to share memory , I know i can use "ashmem" or "ion_alloc" , but i dont want to use them as it would involve a buffer copy, before passing it to the to the Display Subsystem for overlay, What I want to do is, use "IMG_native_handle_t" in "hal_public.h" at : http://androidxref.com/source/xref/hardware/ti/omap4xxx/hwc/hal_public.h the comment above "fd" field says that: /* The `fd' field is used to "export" a meminfo to another process. 67 * Therefore, it is allocated by alloc_device_t, and consumed by 68 * gralloc_module_t. The framebuffer_device_t does not need a handle, 69 * and the special value IMG_FRAMEBUFFER_FD is used instead. 70 */ 71 int fd[MAX_SUB_ALLOCS]; but i couldn't get much info or sample code on how to "export" fd to another process? can anyone help? Regards, Nimesh
On May 1, 7:09 pm, Yingyun <cuiying...@gmail.com> wrote: > Hi Bala: > > My understanding form lwn.net site and linaro article, ION has more unified > interface to manipulate memory buffer whatever it allocate from physical > contiguous or virtual contiguous since it's has different memory heap > allocator. You can choose it according to your requirement or customized it. > > Links from Linaro.https://wiki.linaro.org/BenjaminGaignard/ion > > 在 2012年4月25日星期三UTC+8下午6时26分45秒,Bala Abiraman写道: > > > > > > > > > > > Dear, > > > what will be the advantage over ion comparing with pmem? > > > BR > > > On Mar 6, 5:14 pm, jagan <402ja...@gmail.com> wrote: > > > Hi All, > > > > Google has approached a new mem allocation phenomena as a replacement > > > for PMEM in Androidv4. > > > > The new allocator talks about > > > "It's a unified approach to buffer management and sharing between > > > display, GPU, camera, codecs, etc." > > > > Links: > >http://lwn.net/Articles/480055/http://source-android.frandroid.com/ex...... > > > > Regards, > > > Jagan. -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel