Linux Kernel
3.7.1
|
#include <linux/types.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/capability.h>
#include <linux/pagemap.h>
#include <linux/errno.h>
#include <linux/socket.h>
#include <linux/in.h>
#include <linux/net.h>
#include <linux/mm.h>
#include <linux/un.h>
#include <linux/udp.h>
#include <linux/tcp.h>
#include <linux/sunrpc/clnt.h>
#include <linux/sunrpc/sched.h>
#include <linux/sunrpc/svcsock.h>
#include <linux/sunrpc/xprtsock.h>
#include <linux/file.h>
#include <net/sock.h>
#include <net/checksum.h>
#include <net/udp.h>
#include <net/tcp.h>
#include "sunrpc.h"
Go to the source code of this file.
Data Structures | |
struct | sock_xprt |
Macros | |
#define | XS_TCP_LINGER_TO (15U * HZ) |
#define | XS_BIND_TO (60U * HZ) |
#define | XS_UDP_REEST_TO (2U * HZ) |
#define | XS_TCP_INIT_REEST_TO (3U * HZ) |
#define | XS_TCP_MAX_REEST_TO (5U * 60 * HZ) |
#define | XS_IDLE_DISC_TO (5U * 60 * HZ) |
#define | TCP_RCV_LAST_FRAG (1UL << 0) |
#define | TCP_RCV_COPY_FRAGHDR (1UL << 1) |
#define | TCP_RCV_COPY_XID (1UL << 2) |
#define | TCP_RCV_COPY_DATA (1UL << 3) |
#define | TCP_RCV_READ_CALLDIR (1UL << 4) |
#define | TCP_RCV_COPY_CALLDIR (1UL << 5) |
#define | TCP_RPC_REPLY (1UL << 6) |
#define | XS_SENDMSG_FLAGS (MSG_DONTWAIT | MSG_NOSIGNAL) |
#define | param_check_portnr(name, p) __param_check(name, p, unsigned int); |
#define | param_check_slot_table_size(name, p) __param_check(name, p, unsigned int); |
#define | param_check_max_slot_table_size(name, p) __param_check(name, p, unsigned int); |
Functions | |
int | init_socket_xprt (void) |
void | cleanup_socket_xprt (void) |
module_param_named (min_resvport, xprt_min_resvport, portnr, 0644) | |
module_param_named (max_resvport, xprt_max_resvport, portnr, 0644) | |
module_param_named (tcp_slot_table_entries, xprt_tcp_slot_table_entries, slot_table_size, 0644) | |
module_param_named (tcp_max_slot_table_entries, xprt_max_tcp_slot_table_entries, max_slot_table_size, 0644) | |
module_param_named (udp_slot_table_entries, xprt_udp_slot_table_entries, slot_table_size, 0644) | |
Definition at line 3021 of file xprtsock.c.
Definition at line 2986 of file xprtsock.c.
Definition at line 3005 of file xprtsock.c.
#define TCP_RCV_COPY_CALLDIR (1UL << 5) |
Definition at line 267 of file xprtsock.c.
#define TCP_RCV_COPY_DATA (1UL << 3) |
Definition at line 265 of file xprtsock.c.
#define TCP_RCV_COPY_FRAGHDR (1UL << 1) |
Definition at line 263 of file xprtsock.c.
#define TCP_RCV_COPY_XID (1UL << 2) |
Definition at line 264 of file xprtsock.c.
#define TCP_RCV_LAST_FRAG (1UL << 0) |
Definition at line 262 of file xprtsock.c.
#define TCP_RCV_READ_CALLDIR (1UL << 4) |
Definition at line 266 of file xprtsock.c.
#define TCP_RPC_REPLY (1UL << 6) |
Definition at line 272 of file xprtsock.c.
#define XS_BIND_TO (60U * HZ) |
Definition at line 159 of file xprtsock.c.
#define XS_IDLE_DISC_TO (5U * 60 * HZ) |
Definition at line 184 of file xprtsock.c.
#define XS_SENDMSG_FLAGS (MSG_DONTWAIT | MSG_NOSIGNAL) |
Definition at line 374 of file xprtsock.c.
#define XS_TCP_INIT_REEST_TO (3U * HZ) |
Definition at line 176 of file xprtsock.c.
#define XS_TCP_LINGER_TO (15U * HZ) |
Definition at line 63 of file xprtsock.c.
#define XS_TCP_MAX_REEST_TO (5U * 60 * HZ) |
Definition at line 177 of file xprtsock.c.
#define XS_UDP_REEST_TO (2U * HZ) |
Definition at line 165 of file xprtsock.c.
cleanup_socket_xprt - remove xprtsock's sysctls, unregister
Definition at line 2943 of file xprtsock.c.
init_socket_xprt - set up xprtsock's sysctls, register with RPC client
Definition at line 2924 of file xprtsock.c.
module_param_named | ( | min_resvport | , |
xprt_min_resvport | , | ||
portnr | , | ||
0644 | |||
) |
module_param_named | ( | max_resvport | , |
xprt_max_resvport | , | ||
portnr | , | ||
0644 | |||
) |
module_param_named | ( | tcp_slot_table_entries | , |
xprt_tcp_slot_table_entries | , | ||
slot_table_size | , | ||
0644 | |||
) |
module_param_named | ( | tcp_max_slot_table_entries | , |
xprt_max_tcp_slot_table_entries | , | ||
max_slot_table_size | , | ||
0644 | |||
) |
module_param_named | ( | udp_slot_table_entries | , |
xprt_udp_slot_table_entries | , | ||
slot_table_size | , | ||
0644 | |||
) |