2000-11-14 12:43:35

by aprasad

[permalink] [raw]
Subject: Oops when using MAP_SHARED with do_mmap

Hi,
I have written a simple char device which allocate a page size buffer and
maps this to user-land via mmap-ing. it works if i specify MAP_PRIVATE as
flag in do_mmap but i am getting oops with MAP_SHARED flag.
i am using 2.4-test10 kernel.

attached are files.
(See attached file: char.c)code for the module.
(See attached file: mmap.c)test code.

thanks and regards,
anil


Attachments:
(No filename) (375.00 B)
char.c (4.16 kB)
mmap.c (673.00 B)
Download all attachments