2015-09-16 17:38 GMT+08:00 Paolo Bonzini <pbonzini@xxxxxxxxxx>: > > 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 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html