Lines Matching defs:proto
1221 struct proto { struct
1222 void (*close)(struct sock *sk,
1224 int (*pre_connect)(struct sock *sk,
1227 int (*connect)(struct sock *sk,
1230 int (*disconnect)(struct sock *sk, int flags);
1232 struct sock * (*accept)(struct sock *sk, int flags, int *err,
1235 int (*ioctl)(struct sock *sk, int cmd,
1237 int (*init)(struct sock *sk);
1238 void (*destroy)(struct sock *sk);
1239 void (*shutdown)(struct sock *sk, int how);
1240 int (*setsockopt)(struct sock *sk, int level,
1243 int (*getsockopt)(struct sock *sk, int level,
1246 void (*keepalive)(struct sock *sk, int valbool);
1248 int (*compat_ioctl)(struct sock *sk,
1251 int (*sendmsg)(struct sock *sk, struct msghdr *msg,
1253 int (*recvmsg)(struct sock *sk, struct msghdr *msg,
1255 void (*splice_eof)(struct socket *sock);
1256 int (*bind)(struct sock *sk,
1258 int (*bind_add)(struct sock *sk,
1261 int (*backlog_rcv) (struct sock *sk,
1263 bool (*bpf_bypass_getsockopt)(int level,
1266 void (*release_cb)(struct sock *sk);
1269 int (*hash)(struct sock *sk);
1270 void (*unhash)(struct sock *sk);
1271 void (*rehash)(struct sock *sk);
1272 int (*get_port)(struct sock *sk, unsigned short snum);
1273 void (*put_port)(struct sock *sk);
1275 int (*psock_update_sk_prot)(struct sock *sk,
1282 unsigned int inuse_idx;
1286 int (*forward_alloc_get)(const struct sock *sk);
1289 bool (*stream_memory_free)(const struct sock *sk, int wake);
1290 bool (*sock_is_readable)(struct sock *sk);
1292 void (*enter_memory_pressure)(struct sock *sk);
1293 void (*leave_memory_pressure)(struct sock *sk);
1294 atomic_long_t *memory_allocated; /* Current allocated memory. */
1295 int __percpu *per_cpu_fw_alloc;
1296 struct percpu_counter *sockets_allocated; /* Current number of sockets. */
1305 unsigned long *memory_pressure;
1306 long *sysctl_mem;
1308 int *sysctl_wmem;
1309 int *sysctl_rmem;
1310 u32 sysctl_wmem_offset;
1311 u32 sysctl_rmem_offset;
1313 int max_header;
1314 bool no_autobind;
1316 struct kmem_cache *slab;
1317 unsigned int obj_size;
1318 unsigned int ipv6_pinfo_offset;
1319 slab_flags_t slab_flags;
1343 int proto_register(struct proto *prot, int alloc_slab); argument
1863 static inline void sock_replace_proto(struct sock *sk, struct proto *proto) in sock_replace_proto()
2922 static inline int sk_get_wmem0(const struct sock *sk, const struct proto *proto) in sk_get_wmem0()
2931 static inline int sk_get_rmem0(const struct sock *sk, const struct proto *proto) in sk_get_rmem0()