Lines Matching defs:proto
1249 struct proto { struct
1261 struct proto_accept_arg *arg); argument
1263 int (*ioctl)(struct sock *sk, int cmd,
1265 int (*init)(struct sock *sk);
1266 void (*destroy)(struct sock *sk);
1267 void (*shutdown)(struct sock *sk, int how);
1268 int (*setsockopt)(struct sock *sk, int level,
1271 int (*getsockopt)(struct sock *sk, int level,
1274 void (*keepalive)(struct sock *sk, int valbool);
1276 int (*compat_ioctl)(struct sock *sk,
1279 int (*sendmsg)(struct sock *sk, struct msghdr *msg,
1281 int (*recvmsg)(struct sock *sk, struct msghdr *msg,
1283 void (*splice_eof)(struct socket *sock);
1284 int (*bind)(struct sock *sk,
1286 int (*bind_add)(struct sock *sk,
1289 int (*backlog_rcv) (struct sock *sk,
1291 bool (*bpf_bypass_getsockopt)(int level,
1294 void (*release_cb)(struct sock *sk);
1297 int (*hash)(struct sock *sk);
1298 void (*unhash)(struct sock *sk);
1299 void (*rehash)(struct sock *sk);
1300 int (*get_port)(struct sock *sk, unsigned short snum);
1301 void (*put_port)(struct sock *sk);
1303 int (*psock_update_sk_prot)(struct sock *sk,
1310 unsigned int inuse_idx;
1313 bool (*stream_memory_free)(const struct sock *sk, int wake);
1314 bool (*sock_is_readable)(struct sock *sk);
1316 void (*enter_memory_pressure)(struct sock *sk);
1317 void (*leave_memory_pressure)(struct sock *sk);
1318 atomic_long_t *memory_allocated; /* Current allocated memory. */
1319 int __percpu *per_cpu_fw_alloc;
1320 struct percpu_counter *sockets_allocated; /* Current number of sockets. */
1329 unsigned long *memory_pressure;
1330 long *sysctl_mem;
1332 int *sysctl_wmem;
1333 int *sysctl_rmem;
1334 u32 sysctl_wmem_offset;
1335 u32 sysctl_rmem_offset;
1337 int max_header;
1338 bool no_autobind;
1340 struct kmem_cache *slab;
1341 unsigned int obj_size;
1342 unsigned int ipv6_pinfo_offset;
1343 slab_flags_t slab_flags;
1367 int proto_register(struct proto *prot, int alloc_slab); argument
1857 static inline void sock_replace_proto(struct sock *sk, struct proto *proto) in sock_replace_proto()
2939 static inline int sk_get_wmem0(const struct sock *sk, const struct proto *proto) in sk_get_wmem0()
2948 static inline int sk_get_rmem0(const struct sock *sk, const struct proto *proto) in sk_get_rmem0()