Lines Matching defs:proto

1230 struct proto {  struct
1231 void (*close)(struct sock *sk,
1233 int (*pre_connect)(struct sock *sk,
1236 int (*connect)(struct sock *sk,
1239 int (*disconnect)(struct sock *sk, int flags);
1241 struct sock * (*accept)(struct sock *sk, int flags, int *err,
1244 int (*ioctl)(struct sock *sk, int cmd,
1246 int (*init)(struct sock *sk);
1247 void (*destroy)(struct sock *sk);
1248 void (*shutdown)(struct sock *sk, int how);
1249 int (*setsockopt)(struct sock *sk, int level,
1252 int (*getsockopt)(struct sock *sk, int level,
1255 void (*keepalive)(struct sock *sk, int valbool);
1257 int (*compat_ioctl)(struct sock *sk,
1260 int (*sendmsg)(struct sock *sk, struct msghdr *msg,
1262 int (*recvmsg)(struct sock *sk, struct msghdr *msg,
1264 int (*sendpage)(struct sock *sk, struct page *page,
1266 int (*bind)(struct sock *sk,
1268 int (*bind_add)(struct sock *sk,
1271 int (*backlog_rcv) (struct sock *sk,
1273 bool (*bpf_bypass_getsockopt)(int level,
1276 void (*release_cb)(struct sock *sk);
1279 int (*hash)(struct sock *sk);
1280 void (*unhash)(struct sock *sk);
1281 void (*rehash)(struct sock *sk);
1282 int (*get_port)(struct sock *sk, unsigned short snum);
1283 void (*put_port)(struct sock *sk);
1285 int (*psock_update_sk_prot)(struct sock *sk,
1292 unsigned int inuse_idx;
1296 int (*forward_alloc_get)(const struct sock *sk);
1299 bool (*stream_memory_free)(const struct sock *sk, int wake);
1300 bool (*sock_is_readable)(struct sock *sk);
1302 void (*enter_memory_pressure)(struct sock *sk);
1303 void (*leave_memory_pressure)(struct sock *sk);
1304 atomic_long_t *memory_allocated; /* Current allocated memory. */
1305 int __percpu *per_cpu_fw_alloc;
1306 struct percpu_counter *sockets_allocated; /* Current number of sockets. */
1314 unsigned long *memory_pressure;
1315 long *sysctl_mem;
1317 int *sysctl_wmem;
1318 int *sysctl_rmem;
1319 u32 sysctl_wmem_offset;
1320 u32 sysctl_rmem_offset;
1322 int max_header;
1323 bool no_autobind;
1325 struct kmem_cache *slab;
1326 unsigned int obj_size;
1327 slab_flags_t slab_flags;
1328 unsigned int useroffset; /* Usercopy region offset */
1329 unsigned int usersize; /* Usercopy region size */
1354 int proto_register(struct proto *prot, int alloc_slab); argument
1892 static inline void sock_replace_proto(struct sock *sk, struct proto *proto) in sock_replace_proto()
2900 static inline int sk_get_wmem0(const struct sock *sk, const struct proto *proto) in sk_get_wmem0()
2909 static inline int sk_get_rmem0(const struct sock *sk, const struct proto *proto) in sk_get_rmem0()