contigmalloc() and mmap()

Daniel Eischen deischen at freebsd.org
Mon Jun 13 17:34:03 GMT 2005


On Mon, 13 Jun 2005, Julian Elischer wrote:
>
> Maybe I don't understand the problem but..
>
> I think the problem is that you want to keep a separate buffer for each
> user, ]
> while the drivers you are looking at expect to have only one buffer per
> device.
>
> One answer to this would be to make each user open a different 'instance'
> of the device.  (i.e. a differnt minor number). otherwise there is no
> really good place to store the information.
> The device does not track users as such and even if it did, how would it
> track when a user process forks and becomes 2? it is not notified of this
> event.

Is he looking for something like this in FreeBSD?

  http://docs.sun.com/app/docs/doc/802-5900/6i9kj7or8?a=view

-- 
DE



More information about the freebsd-hackers mailing list