Re: PROPOSAL: extend pipe() to support NULL argument.

From: Changli Gao
Date: Thu Jul 02 2009 - 20:45:56 EST


On Thu, Jul 2, 2009 at 6:42 PM, Alan Cox<alan@xxxxxxxxxxxxxxxxxxx> wrote:
> On Thu, 2 Jul 2009 17:18:49 +0800
> Changli Gao <xiaosuo@xxxxxxxxx> wrote:
>
>> On Thu, Jul 2, 2009 at 5:13 PM, Amerigo Wang<xiyou.wangcong@xxxxxxxxx> wrote:
>> > On Thu, Jul 02, 2009 at 03:36:41PM +0800, Changli Gao wrote:
>> >
>> > Why? Why do you need this feature?
>> >
>> Are you familiar with splice() and tee()? They both use pipes as kernel buffers.
>
> And are being used quite happily with the pipe() call. So what is the
> problem ?
>
No problem! But I just want to save a fd. As one RW pipe fd is enough
for splicing.



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