Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jan 1996 12:25:31 -0600
From:      Jim Lowe <james@miller.cs.uwm.edu>
To:        luigi@labinfo.iet.unipi.it, terry@lambert.org
Cc:        dufault@hda.com, hackers@FreeBSD.org, hasty@rah.star-gate.com, jkh@time.cdrom.com, multimedia@rah.star-gate.com
Subject:   Re: Amancio's tv program with capture!
Message-ID:  <199601231825.MAA23925@miller.cs.uwm.edu>

next in thread | raw e-mail | index | archive | help
> > Unfortunately I think this would require non-trivial changes to the
> > code in sysv_shm.c, and might possibly have some side effects.
> > 
> > I am cross-posting this to hackers for advice.
> 
> I would suggest adding an mmap() entry point for the device driver
> and calling it when you request pages to be mmapped.  The system
> mmap() interface would not be changed, it would just act differently
> for vnodes that were devices.
> 
> This would work for mapping video memory by device generically as well
> as frame capture buffers, etc..

The device driver already has a mmap entry point.  It allocates
memory at boot up time (since you can't seem to grab that much
wired down contiguous memory at run time -- for some reason).

The video capture board DMAs its data into this preallocated
memory.  The user program uses the mmap system call to access
this memory.  Now, we want this memory to be shared by the
Xserver with the Xshm utilities.

How does one mark the driver/mmapped memory as shared memory
with the current utilities? It isn't real obvious that one can
actually do this without modifiying the shmat system call (or at
least to me).

	-Jim



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601231825.MAA23925>