lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Sun, 30 May 2010 11:25:19 +0800
From:	Changli Gao <>
Cc:	Miklos Szeredi <>,,
	Al Viro <>,,,,
	Linus Torvalds <>,
	Eric Dumazet <>,
	Frederic Weisbecker <>,
	Ingo Molnar <>
Subject: Re: [PATCH v2 3/4]: sendfile: remove flags paramter of 

On Sun, May 30, 2010 at 8:39 AM, Steven Rostedt <> wrote:
> Probably because I copied the code from something that used

>From the relay API implementation?

> But userspace passes that flag too. Although, maybe I just don't
> understand the API fully.

this flag is a little confusing. It is much like:

flags = fcntl(pipe_fd, F_GETFL);
fcntl(pipe_fd, F_SETFL, flags | O_NONBLOCK);
splice(..pipe_fd..., 0); // without O_NONBLOCK
fcntl(pipe_fd, F_SETFL, falgs);

In fact, setting O_NONBLOCK is the only way of letting splice pipe
operations non-blockable currently. When splicing, splice doesn't
refer to the pipe file's f_flags. :(

Changli Gao(
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

Powered by blists - more mailing lists