Re: Re: V4L2-Could use shmget instead of mmap?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



> But it doesn't solve mine.  The point is that bttv must do the memory
> allocation to make sure it can reach those pages with DMA.  

I know.  I was wondering if there was a way I could somehow set the memory 
that you give me from the driver to be shared.  We could do it one of two 
ways.  I want bttv to do the memory allocation, somehow get an shmid from it.


1. So you get the memory however is necessary, then hand me back a shmid.   
This would require you to somehow set the memory in the driver to be shared.

2.  I figure out (from userland) how to make a shmid refer to the memory that 
bttv gave me from the mmap.  This is the way that Mark thought would be 
easier.  Somehow, I would need a special version of shmget, perhaps called 
shmset where it takes a pointer to already allocated memory (in this case 
memory you gave me), does whatever it has to (locks it in physical memory, 
etc) and returns a shmid.  

I don't know how this would work with the kio bufs that you use or any of the 
implications at all, but it would solve both of our problems.  





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux