Re: mmap_file common case?

From: Jamie Lokier (lk@tantalophile.demon.co.uk)
Date: Wed Mar 22 2000 - 17:51:07 EST


Jeff Garzik wrote:
> When dealing with files it is common to mmap all of a file, or up to XXX
> bytes of a file. Is there any way to reduce the number of syscalls for
> this operation from 3 to 1?
>
> fd = open(...);
> stat(...); /* get size for mmap */
> addr = mmap(...);

In principle it's possible to write a device driver, which provides one
ioctl: "do the following sequence of syscalls".

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:37 EST