Re: [RFC PATCH] os-android: Add support to android platform, built by ndk-r10

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux