Lines Matching defs:proto

1048 struct proto {  struct
1049 void (*close)(struct sock *sk,
1051 int (*pre_connect)(struct sock *sk,
1054 int (*connect)(struct sock *sk,
1057 int (*disconnect)(struct sock *sk, int flags);
1059 struct sock * (*accept)(struct sock *sk, int flags, int *err,
1062 int (*ioctl)(struct sock *sk, int cmd,
1064 int (*init)(struct sock *sk);
1065 void (*destroy)(struct sock *sk);
1066 void (*shutdown)(struct sock *sk, int how);
1067 int (*setsockopt)(struct sock *sk, int level,
1070 int (*getsockopt)(struct sock *sk, int level,
1073 void (*keepalive)(struct sock *sk, int valbool);
1075 int (*compat_setsockopt)(struct sock *sk,
1079 int (*compat_getsockopt)(struct sock *sk,
1083 int (*compat_ioctl)(struct sock *sk,
1086 int (*sendmsg)(struct sock *sk, struct msghdr *msg,
1088 int (*recvmsg)(struct sock *sk, struct msghdr *msg,
1091 int (*sendpage)(struct sock *sk, struct page *page,
1093 int (*bind)(struct sock *sk,
1096 int (*backlog_rcv) (struct sock *sk,
1099 void (*release_cb)(struct sock *sk);
1102 int (*hash)(struct sock *sk);
1103 void (*unhash)(struct sock *sk);
1104 void (*rehash)(struct sock *sk);
1105 int (*get_port)(struct sock *sk, unsigned short snum);
1109 unsigned int inuse_idx;
1112 bool (*stream_memory_free)(const struct sock *sk);
1113 bool (*stream_memory_read)(const struct sock *sk);
1115 void (*enter_memory_pressure)(struct sock *sk);
1116 void (*leave_memory_pressure)(struct sock *sk);
1117 atomic_long_t *memory_allocated; /* Current allocated memory. */
1118 struct percpu_counter *sockets_allocated; /* Current number of sockets. */
1125 unsigned long *memory_pressure;
1126 long *sysctl_mem;
1128 int *sysctl_wmem;
1129 int *sysctl_rmem;
1130 u32 sysctl_wmem_offset;
1131 u32 sysctl_rmem_offset;
1133 int max_header;
1134 bool no_autobind;
1136 struct kmem_cache *slab;
1137 unsigned int obj_size;
1138 slab_flags_t slab_flags;
1139 unsigned int useroffset; /* Usercopy region offset */
1140 unsigned int usersize; /* Usercopy region size */
1165 int proto_register(struct proto *prot, int alloc_slab); argument
2457 static inline int sk_get_wmem0(const struct sock *sk, const struct proto *proto) in sk_get_wmem0()
2466 static inline int sk_get_rmem0(const struct sock *sk, const struct proto *proto) in sk_get_rmem0()