Re: do_mmap

From: David Schwartz (davids_at_webmaster.com)
Date: 01/30/04


Date: Thu, 29 Jan 2004 23:10:45 -0800


"Vishal Patil" <vpatil@parl.clemson.edu> wrote in message
news:71bfd7d6.0401292123.78ecd52@posting.google.com...

> I am kernel newbie and am currently developing a device driver for a
> graphics card (a char device). I wanted to know what is the exact
> functionality of the "
> "do_mmap" kernel function.
> Thanking you all.

    It is the kernel code that handles the 'mmap' system call. You can 'man
mmap' for more information. Basically, it handles the case where a process
maps a file (either a real normal disk file or a device that impersonates a
file) into its virtual memory space.

    DS