Lines Matching defs:proto

1216 struct proto {  struct
1228 struct proto_accept_arg *arg); argument
1230 int (*ioctl)(struct sock *sk, int cmd,
1232 int (*init)(struct sock *sk);
1233 void (*destroy)(struct sock *sk);
1234 void (*shutdown)(struct sock *sk, int how);
1235 int (*setsockopt)(struct sock *sk, int level,
1238 int (*getsockopt)(struct sock *sk, int level,
1241 void (*keepalive)(struct sock *sk, int valbool);
1243 int (*compat_ioctl)(struct sock *sk,
1246 int (*sendmsg)(struct sock *sk, struct msghdr *msg,
1248 int (*recvmsg)(struct sock *sk, struct msghdr *msg,
1250 void (*splice_eof)(struct socket *sock);
1251 int (*bind)(struct sock *sk,
1253 int (*bind_add)(struct sock *sk,
1256 int (*backlog_rcv) (struct sock *sk,
1258 bool (*bpf_bypass_getsockopt)(int level,
1261 void (*release_cb)(struct sock *sk);
1264 int (*hash)(struct sock *sk);
1265 void (*unhash)(struct sock *sk);
1266 void (*rehash)(struct sock *sk);
1267 int (*get_port)(struct sock *sk, unsigned short snum);
1268 void (*put_port)(struct sock *sk);
1270 int (*psock_update_sk_prot)(struct sock *sk,
1277 unsigned int inuse_idx;
1281 int (*forward_alloc_get)(const struct sock *sk);
1284 bool (*stream_memory_free)(const struct sock *sk, int wake);
1285 bool (*sock_is_readable)(struct sock *sk);
1287 void (*enter_memory_pressure)(struct sock *sk);
1288 void (*leave_memory_pressure)(struct sock *sk);
1289 atomic_long_t *memory_allocated; /* Current allocated memory. */
1290 int __percpu *per_cpu_fw_alloc;
1291 struct percpu_counter *sockets_allocated; /* Current number of sockets. */
1300 unsigned long *memory_pressure;
1301 long *sysctl_mem;
1303 int *sysctl_wmem;
1304 int *sysctl_rmem;
1305 u32 sysctl_wmem_offset;
1306 u32 sysctl_rmem_offset;
1308 int max_header;
1309 bool no_autobind;
1311 struct kmem_cache *slab;
1312 unsigned int obj_size;
1313 unsigned int ipv6_pinfo_offset;
1314 slab_flags_t slab_flags;
1338 int proto_register(struct proto *prot, int alloc_slab); argument
1790 static inline void sock_replace_proto(struct sock *sk, struct proto *proto) in sock_replace_proto()
2826 static inline int sk_get_wmem0(const struct sock *sk, const struct proto *proto) in sk_get_wmem0()
2835 static inline int sk_get_rmem0(const struct sock *sk, const struct proto *proto) in sk_get_rmem0()