Lines Matching defs:proto
1145 struct proto { struct
1146 void (*close)(struct sock *sk,
1148 int (*pre_connect)(struct sock *sk,
1151 int (*connect)(struct sock *sk,
1154 int (*disconnect)(struct sock *sk, int flags);
1156 struct sock * (*accept)(struct sock *sk, int flags, int *err,
1159 int (*ioctl)(struct sock *sk, int cmd,
1161 int (*init)(struct sock *sk);
1162 void (*destroy)(struct sock *sk);
1163 void (*shutdown)(struct sock *sk, int how);
1164 int (*setsockopt)(struct sock *sk, int level,
1167 int (*getsockopt)(struct sock *sk, int level,
1170 void (*keepalive)(struct sock *sk, int valbool);
1172 int (*compat_ioctl)(struct sock *sk,
1175 int (*sendmsg)(struct sock *sk, struct msghdr *msg,
1177 int (*recvmsg)(struct sock *sk, struct msghdr *msg,
1180 int (*sendpage)(struct sock *sk, struct page *page,
1182 int (*bind)(struct sock *sk,
1184 int (*bind_add)(struct sock *sk,
1187 int (*backlog_rcv) (struct sock *sk,
1189 bool (*bpf_bypass_getsockopt)(int level,
1192 void (*release_cb)(struct sock *sk);
1195 int (*hash)(struct sock *sk);
1196 void (*unhash)(struct sock *sk);
1197 void (*rehash)(struct sock *sk);
1198 int (*get_port)(struct sock *sk, unsigned short snum);
1200 int (*psock_update_sk_prot)(struct sock *sk,
1207 unsigned int inuse_idx;
1210 bool (*stream_memory_free)(const struct sock *sk, int wake);
1211 bool (*sock_is_readable)(struct sock *sk);
1213 void (*enter_memory_pressure)(struct sock *sk);
1214 void (*leave_memory_pressure)(struct sock *sk);
1215 atomic_long_t *memory_allocated; /* Current allocated memory. */
1216 struct percpu_counter *sockets_allocated; /* Current number of sockets. */
1223 unsigned long *memory_pressure;
1224 long *sysctl_mem;
1226 int *sysctl_wmem;
1227 int *sysctl_rmem;
1228 u32 sysctl_wmem_offset;
1229 u32 sysctl_rmem_offset;
1231 int max_header;
1232 bool no_autobind;
1234 struct kmem_cache *slab;
1235 unsigned int obj_size;
1236 slab_flags_t slab_flags;
1237 unsigned int useroffset; /* Usercopy region offset */
1238 unsigned int usersize; /* Usercopy region size */
1263 int proto_register(struct proto *prot, int alloc_slab); argument
2756 static inline int sk_get_wmem0(const struct sock *sk, const struct proto *proto) in sk_get_wmem0()
2765 static inline int sk_get_rmem0(const struct sock *sk, const struct proto *proto) in sk_get_rmem0()