lkml.org 
[lkml]   [2006]   [May]   [4]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateThu, 04 May 2006 09:15:39 +0200
FromEric Piel <>
SubjectRe: limits / PIPE_BUF?
05/04/2006 07:55 AM, Vadim Lobanov wrote/a écrit:
> Hi,
Hi!

:
> 
> A snippet from include/linux/limits.h:
> #define PIPE_BUF        4096    /* # bytes in atomic write to a pipe */
> 
> PIPE_BUF is a bit of an oddity. It is defined there, then redefined in
> the arm header files, even though those header files are never included
> anywhere.
Actually, here, on a 2.6.16 source code, PIPE_BUF is used in 
arch/sparc/kernel/sys_sunos.c, arch/sparc64/kernel/sys_sunos32.c, and 
arch/sparc64/solaris/fs.c . It seems it's some kind of compatibility 
value with Sun's OS...


> Also, PIPE_BUF is never referenced by name in any of the Linux
> code. And yet, it is still being mentioned in some Big And Scary
> Warnings (tm): fs/autofs4/waitq.c or include/linux/pipe_fs_i.h, for
> example.
Maybe they wanted to say PIPE_BUFFERS ? (just wild guess)

c u,
Eric
-
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: 2006-05-04 07:18    [from the cache]
©2003-2008