Thread (19 messages) flat view 19 messages, 3 authors, 2012-02-21

Re: [PATCH 6/6] unix: Support peeking offset for stream sockets

From: David Miller <davem@davemloft.net>
Date: 2012-02-21 20:05:47

From: Eric Dumazet <redacted>
Date: Tue, 21 Feb 2012 18:51:19 +0100
Le mardi 21 février 2012 à 21:32 +0400, Pavel Emelyanov a écrit :
quoted
The same here -- we can protect the sk_peek_off manipulations with
the unix_sk->readlock mutex.

The peeking of data from a stream socket is done in the datagram style,
i.e. even if there's enough room for more data in the user buffer, only
the head skb's data is copied in there. This feature is preserved when
peeking data from a given offset -- the data is read till the nearest
skb's boundary.

Signed-off-by: Pavel Emelyanov <redacted>

---
Acked-by: Eric Dumazet <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help