forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commitb580b93
committed
pipe: Add O_NOTIFICATION_PIPE
Add an O_NOTIFICATION_PIPE flag that can be passed to pipe2() to indicatethat the pipe being created is going to be used for notifications. Thissuppresses the use of splice(), vmsplice(), tee() and sendfile() on thepipe as calling iov_iter_revert() on a pipe when a kernel notificationmessage has been inserted into the middle of a multi-buffer splice will bemessy.The flag is given the same value as O_EXCL as it seems unlikely thatthis flag will ever be applicable to pipes and I don't want to use upanother O_* bit unnecessarily. An alternative could be to add a pipe3()system call.Signed-off-by: David Howells <dhowells@redhat.com>1 parent344fa64 commitb580b93
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
0 commit comments
Comments
(0)