Re: mmap() question

2000-10-25 Thread Andi Kleen
On Wed, Oct 25, 2000 at 10:19:23AM +0200, Gábor Lénárt wrote: > I'm totally confused. > Can someone help, please ? Shared anonymous mappings are not supported in 2.2. You need some file to back it. -Andi - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

mmap() question

2000-10-25 Thread Gábor Lénárt
Hi, Sorry for my stupid question, but I haven't got idea what the problem can be, and maybe you can help me. See the following fragment of C code: videobuffer=mmap(0,MAX_VIDEO_PACKET_SIZE,PROT_READ|PROT_WRITE,MAP_ANON|MAP_SHARED,-1,0); if (videobuffer==(void*)-1) { perror("mmap()");

mmap() question

2000-10-25 Thread Gbor Lnrt
Hi, Sorry for my stupid question, but I haven't got idea what the problem can be, and maybe you can help me. See the following fragment of C code: videobuffer=mmap(0,MAX_VIDEO_PACKET_SIZE,PROT_READ|PROT_WRITE,MAP_ANON|MAP_SHARED,-1,0); if (videobuffer==(void*)-1) { perror("mmap()");