inode: socket hooks
authorAlan Cox <alan@linux.intel.com>
Fri, 2 Jan 2015 12:09:08 +0000 (12:09 +0000)
committerAlan Cox <alan@linux.intel.com>
Fri, 2 Jan 2015 12:09:08 +0000 (12:09 +0000)
commit02252aab183200d9660685b1233e7e60405d6da0
treef93d53eb32494a595bc91efb41de1fab1de1c45d
parent66bae502fc4d8d9409dcb2240b8f6d15dd8364f0
inode: socket hooks

On read we use the pipe logic for sockets, on write they work rather like a
device. This slightly odd set up means that we can buffer incoming packets
through the disk cache and thus onto disk if needed. It's also very cheap
from a code size point of view.
Kernel/include/kernel.h
Kernel/inode.c