xin zhang wrote:
> Hi experts:
>     In Xvfb implementation, the frame buffer is allocated with
> IPC_PRIVATE if uses SHM. 
>     Given that IPC_PRIVATE is just useful to parent/child process, and
> given X is a single process, 
>     I don't realize what is the use. 
>     Why not add a param which allows user pass a string to produce IPC
> key, and create share memory
>     with the key, then other process will really access to the frame buffer.

Already there - see the -fbdir option in the man page:

OPTIONS

     -fbdir framebuffer-directory
         This option specifies the directory in which the  memory
         mapped files containing the framebuffer memory should be
         created.   See  FILES.   This  option  only  exists   on
         machines that have the mmap and msync system calls.

FILES
     The  following  files  are  created  if the -fbdir option is
     given.

     framebuffer-directory/Xvfb_screen<n>
         Memory mapped file  containing  screen  n's  framebuffer
         memory, one file per screen.  The file is in xwd format.
         Thus, taking a full-screen snapshot can be done  with  a
         file  copy command, and the resulting snapshot will even
         contain the cursor image.


-- 
        -Alan Coopersmith-        alan.coopersm...@oracle.com
         Oracle Solaris Platform Engineering: X Window System

_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to