<div dir="ltr">What is the "output data"? Is there any reason it needs to be allocated directly in the client's space, rather than streamed across as part of the protocol?<br></div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Sun, Feb 9, 2014 at 8:58 PM, 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 link="blue" vlink="purple" lang="ZH-CN">
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> <a href="mailto:magcius@gmail.com" target="_blank">magcius@gmail.com</a> [mailto:<a href="mailto:magcius@gmail.com" target="_blank">magcius@gmail.com</a>]
<b>On Behalf Of </b>Jasper St. Pierre<br>
<b>Sent:</b> Sunday, February 09, 2014 12:23 AM</span></p><div class=""><br>
<b>To:</b> Wang, Quanxian<br>
<b>Cc:</b> <a href="mailto:wayland-devel@lists.freedesktop.org" target="_blank">wayland-devel@lists.freedesktop.org</a><br>
</div><b>Subject:</b> Re: Is there any way to let compositor set the data in client space and then return back to client?<u></u><u></u><p></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div><div class="">
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">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.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">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.<u></u><u></u></span></p>

</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US">What exactly are you trying to do here?<u></u><u></u></span></p>
</div><p class="MsoNormal"><b><i><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">[Wang, Quanxian] I want to create a protocol to get the output data from compositor, I don’t know where to put it for client.  So shared
 memory should be a good way to do that. Anyway,  I need to check it how to make it happen. Thanks for your idea.<u></u><u></u></span></i></b></p>
</div><div class="">
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">On Sat, Feb 8, 2014 at 3:19 AM, Wang, Quanxian <<a href="mailto:quanxian.wang@intel.com" target="_blank">quanxian.wang@intel.com</a>> wrote:<u></u><u></u></span></p>
<div>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif"" lang="EN-US">Hi, All<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif"" lang="EN-US"> <u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif"" lang="EN-US">I want to allocate some space in client, and let compositor set some data in this space and then return
 back to client. <u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><span style="font-size:10.5pt" lang="EN-US"> </span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif"" lang="EN-US"><u></u><u></u></span></p>

<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif"" lang="EN-US">It seems like user data mechanism.<u></u><u></u></span></p>

<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><span style="font-size:10.5pt" lang="EN-US"> </span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif"" lang="EN-US"><u></u><u></u></span></p>

<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif"" lang="EN-US">Any way to implement that?<u></u><u></u></span></p>

<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><span style="font-size:10.5pt" lang="EN-US"> </span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif"" lang="EN-US"><u></u><u></u></span></p>

<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif"" lang="EN-US">Thanks<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif"" lang="EN-US"> <u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif"" lang="EN-US">Regards<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#888888" lang="EN-US"> <u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#888888" lang="EN-US">Quanxian Wang<u></u><u></u></span></p>

<p class="MsoNormal" style="text-align:justify;text-justify:inter-ideograph"><span style="font-size:10.5pt;color:#888888" lang="EN-US"> </span><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#888888" lang="EN-US"><u></u><u></u></span></p>

</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US"><br>
_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org" target="_blank">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><u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US"><br>
<br clear="all">
<br>
-- <br>
  Jasper<u></u><u></u></span></p>
</div>
</div></div>
</div>

</blockquote></div><br><br clear="all"><br>-- <br>  Jasper<br>
</div>