kernel-ark/arch
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
..
alpha sock: Introduce the SO_PEEK_OFF sock option 2012-02-21 15:03:48 -05:00
arm sock: Introduce the SO_PEEK_OFF sock option 2012-02-21 15:03:48 -05:00
avr32 sock: Introduce the SO_PEEK_OFF sock option 2012-02-21 15:03:48 -05:00
blackfin arch/blackfin: don't generate random mac in bfin_get_ether_addr() 2012-02-19 19:02:42 -05:00
c6x C6X: replace tick_nohz_stop/restart_sched_tick calls 2012-01-08 15:13:16 -05:00
cris sock: Introduce the SO_PEEK_OFF sock option 2012-02-21 15:03:48 -05:00
frv sock: Introduce the SO_PEEK_OFF sock option 2012-02-21 15:03:48 -05:00
h8300 sock: Introduce the SO_PEEK_OFF sock option 2012-02-21 15:03:48 -05:00
hexagon lib: move GENERIC_IOMAP to lib/Kconfig 2011-11-24 22:21:19 +02:00
ia64 sock: Introduce the SO_PEEK_OFF sock option 2012-02-21 15:03:48 -05:00
m32r sock: Introduce the SO_PEEK_OFF sock option 2012-02-21 15:03:48 -05:00
m68k sock: Introduce the SO_PEEK_OFF sock option 2012-02-21 15:03:48 -05:00
microblaze Revert "microblaze: Add topology init" 2012-01-31 09:06:52 +01:00
mips sock: Introduce the SO_PEEK_OFF sock option 2012-02-21 15:03:48 -05:00
mn10300 sock: Introduce the SO_PEEK_OFF sock option 2012-02-21 15:03:48 -05:00
openrisc Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild 2012-01-16 14:34:54 -08:00
parisc sock: Introduce the SO_PEEK_OFF sock option 2012-02-21 15:03:48 -05:00
powerpc sock: Introduce the SO_PEEK_OFF sock option 2012-02-21 15:03:48 -05:00
s390 sock: Introduce the SO_PEEK_OFF sock option 2012-02-21 15:03:48 -05:00
score score: fix off-by-one index into syscall table 2012-01-23 08:38:49 -08:00
sh sh: use the the PCI channels's io_map_base 2012-01-31 23:21:19 +02:00
sparc sock: Introduce the SO_PEEK_OFF sock option 2012-02-21 15:03:48 -05:00
tile Merge branch 'for-next' of git://git.infradead.org/users/dhowells/linux-headers 2012-01-14 18:03:30 -08:00
um UML net: set addr_assign_type if random_ether_addr() used 2012-02-17 16:05:03 -05:00
unicore32 Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci 2012-01-11 18:50:26 -08:00
x86 i387: re-introduce FPU state preloading at context switch time 2012-02-18 14:03:48 -08:00
xtensa sock: Introduce the SO_PEEK_OFF sock option 2012-02-21 15:03:48 -05:00
.gitignore
Kconfig mm,x86,um: move CMPXCHG_DOUBLE config option 2012-01-12 20:13:03 -08:00