Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb580b93

Browse files
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

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎include/uapi/linux/watch_queue.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
#define_UAPI_LINUX_WATCH_QUEUE_H
44

55
#include<linux/types.h>
6+
#include<linux/fcntl.h>
7+
8+
#defineO_NOTIFICATION_PIPEO_EXCL/* Parameter to pipe2() selecting notification pipe */
69

710
enumwatch_notification_type {
811
WATCH_TYPE_META=0,/* Special record */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp