#include <linux/config.h>#include <linux/socket.h>#include <linux/wait.h>Go to the source code of this file.
Classes | |
| struct | socket |
| struct | proto_ops |
| struct | net_proto_family |
| struct | net_proto |
Defines | |
| #define | NPROTO 32 |
| #define | SYS_SOCKET 1 |
| #define | SYS_BIND 2 |
| #define | SYS_CONNECT 3 |
| #define | SYS_LISTEN 4 |
| #define | SYS_ACCEPT 5 |
| #define | SYS_GETSOCKNAME 6 |
| #define | SYS_GETPEERNAME 7 |
| #define | SYS_SOCKETPAIR 8 |
| #define | SYS_SEND 9 |
| #define | SYS_RECV 10 |
| #define | SYS_SENDTO 11 |
| #define | SYS_RECVFROM 12 |
| #define | SYS_SHUTDOWN 13 |
| #define | SYS_SETSOCKOPT 14 |
| #define | SYS_GETSOCKOPT 15 |
| #define | SYS_SENDMSG 16 |
| #define | SYS_RECVMSG 17 |
| #define | __SO_ACCEPTCON (1<<16) |
| #define | SOCK_ASYNC_NOSPACE 0 |
| #define | SOCK_ASYNC_WAITDATA 1 |
| #define | SOCK_NOSPACE 2 |
| #define | SOCK_INODE(S) ((S)->inode) |
| #define | SOCKOPS_WRAPPED(name) name |
| #define | SOCKOPS_WRAP(name, fam) |
Enumerations | |
| enum | socket_state { SS_FREE = 0, SS_UNCONNECTED, SS_CONNECTING, SS_CONNECTED, SS_DISCONNECTING } |
Functions | |
| int | sock_wake_async (struct socket *sk, int how, int band) |
| int | sock_register (struct net_proto_family *fam) |
| int | sock_unregister (int family) |
| socket * | sock_alloc (void) |
| int | sock_create (int family, int type, int proto, struct socket **) |
| void | sock_release (struct socket *) |
| int | sock_sendmsg (struct socket *, struct msghdr *m, int len) |
| int | sock_recvmsg (struct socket *, struct msghdr *m, int len, int flags) |
| int | sock_readv_writev (int type, struct inode *inode, struct file *file, const struct iovec *iov, long count, long size) |
| socket * | sockfd_lookup (int fd, int *err) |
| int | sock_map_fd (struct socket *sock) |
| int | net_ratelimit (void) |
| unsigned long | net_random (void) |
| void | net_srandom (unsigned long) |
|
|
|
Definition at line 27 of file net.h. Referenced by dev_ifconf(), netfilter_init(), register_gifconf(), rtnetlink_dump_all(), rtnetlink_rcv_msg(), sock_create(), sock_init(), sock_register(), and sock_unregister(). |
|
|
Definition at line 61 of file net.h. Referenced by datagram_poll(), do_tcp_sendpages(), sock_alloc_send_pskb(), sock_wait_for_wmem(), sock_wake_async(), tcp_poll(), tcp_sendmsg(), and wait_for_tcp_memory(). |
|
|
Definition at line 62 of file net.h. Referenced by sock_wake_async(), and tcp_data_wait(). |
|
|
|
Definition at line 63 of file net.h. Referenced by do_tcp_sendpages(), sock_alloc_send_pskb(), sock_wait_for_wmem(), tcp_check_space(), tcp_cwnd_application_limited(), tcp_poll(), tcp_sendmsg(), tcp_write_space(), and wait_for_tcp_memory(). |
|
|
|
|
Definition at line 34 of file net.h. Referenced by sys_socketcall(). |
|
|
Definition at line 31 of file net.h. Referenced by sys_socketcall(). |
|
|
Definition at line 32 of file net.h. Referenced by sys_socketcall(). |
|
|
Definition at line 36 of file net.h. Referenced by sys_socketcall(). |
|
|
Definition at line 35 of file net.h. Referenced by sys_socketcall(). |
|
|
Definition at line 44 of file net.h. Referenced by sys_socketcall(). |
|
|
Definition at line 33 of file net.h. Referenced by sys_socketcall(). |
|
|
Definition at line 39 of file net.h. Referenced by sys_socketcall(). |
|
|
Definition at line 41 of file net.h. Referenced by sys_socketcall(). |
|
|
Definition at line 46 of file net.h. Referenced by sys_socketcall(). |
|
|
Definition at line 38 of file net.h. Referenced by sys_socketcall(). |
|
|
Definition at line 45 of file net.h. Referenced by sys_socketcall(). |
|
|
Definition at line 40 of file net.h. Referenced by sys_socketcall(). |
|
|
Definition at line 43 of file net.h. Referenced by sys_socketcall(). |
|
|
Definition at line 42 of file net.h. Referenced by sys_socketcall(). |
|
|
Definition at line 30 of file net.h. Referenced by sys_socketcall(). |
|
|
Definition at line 37 of file net.h. Referenced by sys_socketcall(). |
|
|
Definition at line 49 of file net.h.
|
|
|
Definition at line 26 of file core/utils.c. References net_rand_seed. Referenced by get_sample_stats(), inet_initpeers(), ip_rt_init(), ip_vs_random_dropentry(), mod_cur_headers(), neigh_rand_reach_time(), net_srandom(), pneigh_enqueue(), and wait_for_tcp_memory().
|
|
|
|
Definition at line 32 of file core/utils.c. References net_rand_seed, and net_random(). Referenced by inet_insert_ifa().
|
|
|
Definition at line 434 of file socket.c. References sock_mnt, socki_lookup(), and SS_UNCONNECTED. Referenced by sock_create(), and sys_accept().
|
|
||||||||||||||||||||
|
Definition at line 824 of file socket.c. References net_proto_family::create, net_families, net_family_read_lock, net_family_read_unlock, NPROTO, sock_alloc(), and sock_release(). Referenced by make_receive_sock(), make_send_sock(), sys_socket(), and sys_socketpair().
|
|
|
Definition at line 328 of file socket.c. References socket::file, socket::inode, sock_mnt, socket_file_ops, and sockfs_dentry_operations. Referenced by sys_accept(), sys_socket(), and sys_socketpair().
|
|
||||||||||||||||||||||||||||
|
Definition at line 613 of file socket.c. References sock_recvmsg(), sock_sendmsg(), and socki_lookup(). Referenced by sock_readv(), and sock_writev().
|
|
||||||||||||||||||||
|
Definition at line 513 of file socket.c. References socket::ops, proto_ops::recvmsg, and scm_recv(). Referenced by ip_vs_receive(), sock_read(), sock_readv_writev(), sys_recvfrom(), and sys_recvmsg().
|
|
|
Definition at line 1620 of file socket.c. References net_proto_family::family, net_families, net_family_write_lock, net_family_write_unlock, and NPROTO. Referenced by inet_init().
|
|
|
Definition at line 484 of file socket.c. References socket::fasync_list, socket::file, socket::inode, socket::ops, and proto_ops::release. Referenced by fini(), init(), init_or_cleanup(), ipfw_init_or_cleanup(), make_receive_sock(), make_send_sock(), sock_close(), sock_create(), sync_backup_loop(), sync_master_loop(), sys_accept(), sys_socket(), and sys_socketpair().
|
|
||||||||||||||||
|
Definition at line 500 of file socket.c. References socket::ops, scm_destroy(), scm_send(), and proto_ops::sendmsg. Referenced by ip_vs_send_async(), sock_no_sendpage(), sock_readv_writev(), sock_write(), sys_sendmsg(), and sys_sendto().
|
|
|
Definition at line 1644 of file socket.c. References net_families, net_family_write_lock, net_family_write_unlock, and NPROTO.
|
|
||||||||||||||||
|
Definition at line 798 of file socket.c. References socket::fasync_list, socket::flags, SOCK_ASYNC_NOSPACE, and SOCK_ASYNC_WAITDATA. Referenced by sk_wake_async(), and tcp_write_space().
|
|
||||||||||||
|
Definition at line 394 of file socket.c. References socki_lookup(). Referenced by sys_accept(), sys_bind(), sys_connect(), sys_getpeername(), sys_getsockname(), sys_getsockopt(), sys_listen(), sys_recvfrom(), sys_recvmsg(), sys_sendmsg(), sys_sendto(), sys_setsockopt(), and sys_shutdown().
|
1.3.8