mmap()

Kamal R. Prasad kamalp at acm.org
Sat Dec 4 11:08:16 PST 2004


Hello,

 I wrote an mmap() interface for a USB device. But when I made a call to 
it using mmap(), I saw that mmap interface is called 3-4 times. The 
calls are being made from within mmap() i.e. sys/vm/vm_mmap.c. Can 
someone tell me if there is something like a re-try going on for some 
reason?
 From userspace, I called it as 
addr = mmap(NULL, 1024, PROT_READ, MAP_SHARED, fd, 0);
The version of OS is Freebsd 5.3(stable).

thanks
-kamal



More information about the freebsd-hackers mailing list