diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-10-05 22:48:32 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-10-05 22:48:32 +0000 |
commit | 67d407a4d33db8d7e25ccc3095b22fe33b1a6985 (patch) | |
tree | c8f234cc64fafb333e188912780a39098a84719a /pkg/tcpip/link/sharedmem/rx.go | |
parent | 02f7b480cbde8bbdfdf8f2a753d510496b25c156 (diff) | |
parent | 84063e88c382748d6990eb24834c0553d530d517 (diff) |
Merge release-20210927.0-32-g84063e88c (automated)
Diffstat (limited to 'pkg/tcpip/link/sharedmem/rx.go')
-rw-r--r-- | pkg/tcpip/link/sharedmem/rx.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/tcpip/link/sharedmem/rx.go b/pkg/tcpip/link/sharedmem/rx.go index e882a128c..399317335 100644 --- a/pkg/tcpip/link/sharedmem/rx.go +++ b/pkg/tcpip/link/sharedmem/rx.go @@ -108,6 +108,12 @@ func (r *rx) cleanup() { unix.Close(r.eventFD) } +// notify writes to the tx.eventFD to indicate to the peer that there is data to +// be read. +func (r *rx) notify() { + unix.Write(r.eventFD, []byte{1, 0, 0, 0, 0, 0, 0, 0}) +} + // postAndReceive posts the provided buffers (if any), and then tries to read // from the receive queue. // |