linux-kernel-test/arch/alpha
Pavel Emelyanov ef64a54f6e sock: Introduce the SO_PEEK_OFF sock option
This one specifies where to start MSG_PEEK-ing queue data from. When
set to negative value means that MSG_PEEK works as ususally -- peeks
from the head of the queue always.

When some bytes are peeked from queue and the peeking offset is non
negative it is moved forward so that the next peek will return next
portion of data.

When non-peeking recvmsg occurs and the peeking offset is non negative
is is moved backward so that the next peek will still peek the proper
data (i.e. the one that would have been picked if there were no non
peeking recv in between).

The offset is set using per-proto opteration to let the protocol handle
the locking issues and to check whether the peeking offset feature is
supported by the protocol the socket belongs to.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-02-21 15:03:48 -05:00
..
boot include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
include/asm sock: Introduce the SO_PEEK_OFF sock option 2012-02-21 15:03:48 -05:00
kernel Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci 2012-01-11 18:50:26 -08:00
lib atomic: use <linux/atomic.h> 2011-07-26 16:49:47 -07:00
math-emu alpha: change to new Makefile flag variables 2011-01-17 05:42:13 +01:00
mm alpha, mm: set all online nodes in N_NORMAL_MEMORY 2011-05-25 08:39:23 -07:00
oprofile Fix common misspellings 2011-03-31 11:26:23 -03:00
defconfig defconfig reduction 2010-08-14 22:26:53 +02:00
Kconfig alpha: switch to GENERIC_PCI_IOMAP 2011-11-28 21:13:01 +02:00
Kconfig.debug
Makefile alpha: link failure fix 2008-06-20 16:46:10 -07:00