[PATCH 4/6] Add MIT-SHM AttachFd and CreateSegment requests
Keith Packard
keithp at keithp.com
Tue Nov 5 16:39:04 PST 2013
Signed-off-by: Keith Packard <keithp at keithp.com>
---
src/shm.xml | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/src/shm.xml b/src/shm.xml
index adda509..0954d76 100644
--- a/src/shm.xml
+++ b/src/shm.xml
@@ -113,4 +113,23 @@ authorization from the authors.
<field type="SEG" name="shmseg" />
<field type="CARD32" name="offset" />
</request>
+
+ <request name="AttachFd" opcode="6">
+ <field type="SEG" name="shmseg" />
+ <fd name="shm_fd" />
+ <field type="BOOL" name="read_only" />
+ <pad bytes="3" />
+ </request>
+
+ <request name="CreateSegment" opcode="7">
+ <field type="SEG" name="shmseg" />
+ <field type="CARD32" name="size" />
+ <field type="BOOL" name="read_only" />
+ <pad bytes="3" />
+ <reply>
+ <field type="CARD8" name="nfd" />
+ <fd name="shm_fd" />
+ <pad bytes="24" />
+ </reply>
+ </request>
</xcb>
--
1.8.4.2
More information about the xorg-devel
mailing list