socket.c (88e6faefaeed40a162041d85689e94595756d4c3) | socket.c (6f912042256c12b0927438122594f5379b364f5d) |
---|---|
1/* 2 * NET An implementation of the SOCKET network access protocol. 3 * 4 * Version: @(#)socket.c 1.1.93 18/02/95 5 * 6 * Authors: Orest Zborowski, <obz@Kodak.COM> 7 * Ross Biro 8 * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> --- 105 unchanged lines hidden (view full) --- 114static int sock_fasync(int fd, struct file *filp, int on); 115static ssize_t sock_readv(struct file *file, const struct iovec *vector, 116 unsigned long count, loff_t *ppos); 117static ssize_t sock_writev(struct file *file, const struct iovec *vector, 118 unsigned long count, loff_t *ppos); 119static ssize_t sock_sendpage(struct file *file, struct page *page, 120 int offset, size_t size, loff_t *ppos, int more); 121 | 1/* 2 * NET An implementation of the SOCKET network access protocol. 3 * 4 * Version: @(#)socket.c 1.1.93 18/02/95 5 * 6 * Authors: Orest Zborowski, <obz@Kodak.COM> 7 * Ross Biro 8 * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> --- 105 unchanged lines hidden (view full) --- 114static int sock_fasync(int fd, struct file *filp, int on); 115static ssize_t sock_readv(struct file *file, const struct iovec *vector, 116 unsigned long count, loff_t *ppos); 117static ssize_t sock_writev(struct file *file, const struct iovec *vector, 118 unsigned long count, loff_t *ppos); 119static ssize_t sock_sendpage(struct file *file, struct page *page, 120 int offset, size_t size, loff_t *ppos, int more); 121 |
122extern ssize_t generic_splice_sendpage(struct inode *inode, struct file *out, 123 size_t len, unsigned int flags); 124 125 |
|
122/* 123 * Socket files have a set of 'special' operations as well as the generic file ones. These don't appear 124 * in the operation structures but are done directly via the socketcall() multiplexor. 125 */ 126 127static struct file_operations socket_file_ops = { 128 .owner = THIS_MODULE, 129 .llseek = no_llseek, --- 1997 unchanged lines hidden (view full) --- 2127core_initcall(sock_init); /* early initcall */ 2128 2129#ifdef CONFIG_PROC_FS 2130void socket_seq_show(struct seq_file *seq) 2131{ 2132 int cpu; 2133 int counter = 0; 2134 | 126/* 127 * Socket files have a set of 'special' operations as well as the generic file ones. These don't appear 128 * in the operation structures but are done directly via the socketcall() multiplexor. 129 */ 130 131static struct file_operations socket_file_ops = { 132 .owner = THIS_MODULE, 133 .llseek = no_llseek, --- 1997 unchanged lines hidden (view full) --- 2131core_initcall(sock_init); /* early initcall */ 2132 2133#ifdef CONFIG_PROC_FS 2134void socket_seq_show(struct seq_file *seq) 2135{ 2136 int cpu; 2137 int counter = 0; 2138 |
2135 for_each_cpu(cpu) | 2139 for_each_possible_cpu(cpu) |
2136 counter += per_cpu(sockets_in_use, cpu); 2137 2138 /* It can be negative, by the way. 8) */ 2139 if (counter < 0) 2140 counter = 0; 2141 2142 seq_printf(seq, "sockets: used %d\n", counter); 2143} --- 32 unchanged lines hidden --- | 2140 counter += per_cpu(sockets_in_use, cpu); 2141 2142 /* It can be negative, by the way. 8) */ 2143 if (counter < 0) 2144 counter = 0; 2145 2146 seq_printf(seq, "sockets: used %d\n", counter); 2147} --- 32 unchanged lines hidden --- |