<div dir="ltr"><div>Well, there's not really anything that allows process A to arbitrarily modify process B's memory. The only thing that's close is memory-mapped files, and that's already what we use to share image data between the client and the compositor.<br>
<br></div><div>There's also memfd, which is "more secure" than a memory-mapped tmpfile, simply because it allows sealing the fd, so you can be sure it will never change as you try to read from it. But memfd isn't a public API yet.<br>
</div><div><br></div>What exactly are you trying to do here?<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Feb 8, 2014 at 3:19 AM, Wang, Quanxian <span dir="ltr"><<a href="mailto:quanxian.wang@intel.com" target="_blank">quanxian.wang@intel.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div>
<font face="Calibri"><span style="font-size:10.5pt">
<div style="text-align:justify" align="left">Hi, All</div>
<div style="text-align:justify" align="left"> </div>
<div style="text-align:justify" align="left">I want to allocate some space in client, and let compositor set some data in this space and then return back to client. </div>
<div style="text-align:justify" align="left"><font face="Times New Roman"> </font></div>
<div style="text-align:justify" align="left">It seems like user data mechanism.</div>
<div style="text-align:justify" align="left"><font face="Times New Roman"> </font></div>
<div style="text-align:justify" align="left">Any way to implement that?</div>
<div style="text-align:justify" align="left"><font face="Times New Roman"> </font></div>
<div style="text-align:justify" align="left">Thanks</div>
<div style="text-align:justify" align="left"> </div>
<div style="text-align:justify" align="left">Regards</div><span class="HOEnZb"><font color="#888888">
<div style="text-align:justify" align="left"> </div>
<div style="text-align:justify" align="left">Quanxian Wang</div>
<div style="text-align:justify" align="left"><font face="Times New Roman"> </font></div>
</font></span></span></font>
</div>

<br>_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>  Jasper<br>
</div>