lkml.org 
[lkml]   [2002]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: [PATCH] O_STREAMING - flag for optimal streaming I/O
    On 7 Oct 2002, Robert Love wrote:

    > Attached patch implements an O_STREAMING file I/O flag which enables
    > manual drop-behind of pages.

    [...]
    > diff -urN linux-2.4.20-pre9/include/asm-i386/fcntl.h linux/include/asm-i386/fcntl.h
    > --- linux-2.4.20-pre9/include/asm-i386/fcntl.h 2002-10-06 14:57:21.000000000 -0400
    > +++ linux/include/asm-i386/fcntl.h 2002-10-07 18:45:51.000000000 -0400
    > @@ -20,6 +20,7 @@
    > #define O_LARGEFILE 0100000
    > #define O_DIRECTORY 0200000 /* must be a directory */
    > #define O_NOFOLLOW 0400000 /* don't follow links */
    > +#define O_STREAMING 04000000 /* streaming access */
    ^^^^^^^^^^^^^
    >
    > #define F_DUPFD 0 /* dup */
    > #define F_GETFD 1 /* get close_on_exec */
    > diff -urN linux-2.4.20-pre9/include/asm-mips/fcntl.h linux/include/asm-mips/fcntl.h
    > --- linux-2.4.20-pre9/include/asm-mips/fcntl.h 2002-10-06 14:57:21.000000000 -0400
    > +++ linux/include/asm-mips/fcntl.h 2002-10-07 18:45:51.000000000 -0400
    > @@ -26,6 +26,7 @@
    > #define O_DIRECT 0x8000 /* direct disk access hint */
    > #define O_DIRECTORY 0x10000 /* must be a directory */
    > #define O_NOFOLLOW 0x20000 /* don't follow links */
    > +#define O_STREAMING 0x400000 /* streaming access */
    ^^^^^^^^^^^^^
    >
    > #define O_NDELAY O_NONBLOCK


    04000000 != 0x400000

    or am I missing something?
    (do different archs dream of different O_STREAMING values?)

    .TM.
    --
    ____/ ____/ /
    / / / Marco Colombo
    ___/ ___ / / Technical Manager
    / / / ESI s.r.l.
    _____/ _____/ _/ Colombo@ESI.it

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

    \
     
     \ /
      Last update: 2005-03-22 13:29    [W:3.541 / U:0.780 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site