Ashmem sharing using sockets

42 views
Skip to first unread message

nimeshc...@gmail.com

unread,
May 24, 2012, 4:26:46 AM5/24/12
to android-porting
i'm trying to share memory between android and chrooted ubuntu, I know I can mount bind /dev/ashmem to the ubuntu side , and i have tried out sockets between android and ubuntu and it works . Now the question is how do i pass the fd from android to ubuntu side?
will simply passing the the fd and then mmaping work? ( i think not, but haven't tried it )
or will i need to extend something in ashmem driver ( user / kernel side) to do that? If someone has already done / knows something abt this can you give me a starting point?


Sent from BlackBerry® on Airtel

NimeshChanchani

unread,
May 24, 2012, 1:00:24 PM5/24/12
to android-porting
I tried sharing fd's using sendmsg() and recvmsg(). the socket ,
refering:
http://infohost.nmt.edu/~eweiss/222_book/222_book/0201433079/ch17lev1...
the source builds fine...but no luck!
get a weirdly large number as fd , indicating junk?
Reply all
Reply to author
Forward
0 new messages