mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* limits / PIPE_BUF?
@ 2006-05-04  5:55 Vadim Lobanov
  2006-05-04  6:58 ` Arjan van de Ven
  2006-05-04  7:15 ` Eric Piel
  0 siblings, 2 replies; 9+ messages in thread
From: Vadim Lobanov @ 2006-05-04  5:55 UTC (permalink / raw)
  To: linux-kernel

Hi,

I was reading through the include/linux/limits.h file in order to
generate a cleanup patch for it -- a large number of #defines within
that file are no longer being used, as I surmise that they are simply
remnants of earlier implementations.

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. 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.

What's the deal with PIPE_BUF? Is its value used in the code indirectly,
so that more comments would help make this fact obvious? Or is it now
deprecated, and therefore a viable target for include/linux/limits.h
cleanups?

- Vadim Lobanov

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-05-04 18:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-04  5:55 limits / PIPE_BUF? Vadim Lobanov
2006-05-04  6:58 ` Arjan van de Ven
2006-05-04 16:39   ` Vadim Lobanov
2006-05-04 17:16     ` Arjan van de Ven
2006-05-04 17:50       ` Vadim Lobanov
2006-05-04 17:54         ` Arjan van de Ven
2006-05-04 18:10           ` Vadim Lobanov
2006-05-04  7:15 ` Eric Piel
2006-05-04 16:42   ` Vadim Lobanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®