[lkml]   [2000]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Subjectmmap_file common case?
    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(...);

    Jeff Garzik | Tact is the ability to tell a man
    Building 1024 | he has an open mind when he has a
    MandrakeSoft, Inc. | hole in his head. (-random fortune)

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:57    [W:0.019 / U:5.212 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site