2015-09-16 17:38 GMT+08:00 Paolo Bonzini <pbonz...@redhat.com>: > > Actually it's even simpler. shm_open is basically just > > char *s; > int fd; > > asprintf(&s, "/dev/shm/%s", name); > fd = open(s, name | O_CLOEXEC, mode); > free(s); > return fd; > > plus some error checking. Do Android systems have /dev/shm? > > Paolo
It's simple, thanks. The android have no /dev/shm. Though we can mknod it but need root prividlege to do it. -- Best regards, Houcheng Lin