Re: Freeing mmapped memory

2006-02-07 Thread John Baldwin
On Monday 06 February 2006 19:55, John-Mark Gurney wrote: > Raaf wrote this message on Tue, Feb 07, 2006 at 01:42 +0100: > > John-Mark Gurney wrote: > > > Raaf wrote this message on Mon, Feb 06, 2006 at 22:54 +0100: > > >> Hi, i am working on a usb driver that allocates some memory when > > >> the

Re: Freeing mmapped memory

2006-02-06 Thread Raaf
John-Mark Gurney wrote: > Raaf wrote this message on Mon, Feb 06, 2006 at 22:54 +0100: >> Hi, i am working on a usb driver that allocates some memory when >> the device is opened using malloc. >> >> Now i want user processes to be able to access this memory using >> mmap and i want to free this mem

Re: Freeing mmapped memory

2006-02-06 Thread Raaf
John-Mark Gurney wrote: > Raaf wrote this message on Tue, Feb 07, 2006 at 01:42 +0100: >> John-Mark Gurney wrote: >>> Raaf wrote this message on Mon, Feb 06, 2006 at 22:54 +0100: Hi, i am working on a usb driver that allocates some memory when the device is opened using malloc.

Re: Freeing mmapped memory

2006-02-06 Thread John-Mark Gurney
Raaf wrote this message on Tue, Feb 07, 2006 at 01:42 +0100: > John-Mark Gurney wrote: > > Raaf wrote this message on Mon, Feb 06, 2006 at 22:54 +0100: > >> Hi, i am working on a usb driver that allocates some memory when > >> the device is opened using malloc. > >> > >> Now i want user processes t

Re: Freeing mmapped memory

2006-02-06 Thread John-Mark Gurney
Raaf wrote this message on Mon, Feb 06, 2006 at 22:54 +0100: > Hi, i am working on a usb driver that allocates some memory when > the device is opened using malloc. > > Now i want user processes to be able to access this memory using > mmap and i want to free this memory when it is no longer neede

Freeing mmapped memory

2006-02-06 Thread Raaf
Hi, i am working on a usb driver that allocates some memory when the device is opened using malloc. Now i want user processes to be able to access this memory using mmap and i want to free this memory when it is no longer needed. The problem is that there seems to be no way of knowing for my driv