Re: mmap failed

2003-09-29 Thread Muli Ben-Yehuda
On Mon, Sep 29, 2003 at 03:48:43PM +0300, Erez Doron wrote: > if (-1==(mmap_fd=open(devname,O_RDWR))) {perror(devname);exit(1);}; > printf("fd=%d\r\n",mmap_fd); > printf("mem-mapping ...\r\n"); > if (-1==(mmapped=(unsigned int *)mmap((char > *)0,65536,PROT_READ|PROT_WRITE,MAP_FIXED,mmap_fd,0)))

Re: mmap failed

2003-09-29 Thread Gilad Ben-Yossef
On Monday 29 September 2003 15:48, Erez Doron wrote: > Muli Ben-Yehuda wrote: > >On Mon, Sep 29, 2003 at 11:45:56AM +0300, Erez Doron wrote: > >>hi > >> > >>i've written a device driver which maps a card's memory to a device. > >> > >>i can read/write/seek the device > >> > >>i can't seem to mmap i

Re: mmap failed

2003-09-29 Thread Erez Doron
Muli Ben-Yehuda wrote: On Mon, Sep 29, 2003 at 11:45:56AM +0300, Erez Doron wrote: hi i've written a device driver which maps a card's memory to a device. i can read/write/seek the device i can't seem to mmap it though What does mmap return? what does your mmap implementation look like?

Re: mmap failed

2003-09-29 Thread Muli Ben-Yehuda
On Mon, Sep 29, 2003 at 11:45:56AM +0300, Erez Doron wrote: > hi > > i've written a device driver which maps a card's memory to a device. > > i can read/write/seek the device > > i can't seem to mmap it though What does mmap return? what does your mmap implementation look like? more details ple

mmap failed

2003-09-29 Thread Erez Doron
hi i've written a device driver which maps a card's memory to a device. i can read/write/seek the device i can't seem to mmap it though any ide ? = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the