Lines Matching defs:proto
1234 struct proto { struct
1235 void (*close)(struct sock *sk,
1237 int (*pre_connect)(struct sock *sk,
1240 int (*connect)(struct sock *sk,
1243 int (*disconnect)(struct sock *sk, int flags);
1245 struct sock * (*accept)(struct sock *sk, int flags, int *err,
1248 int (*ioctl)(struct sock *sk, int cmd,
1250 int (*init)(struct sock *sk);
1251 void (*destroy)(struct sock *sk);
1252 void (*shutdown)(struct sock *sk, int how);
1253 int (*setsockopt)(struct sock *sk, int level,
1256 int (*getsockopt)(struct sock *sk, int level,
1259 void (*keepalive)(struct sock *sk, int valbool);
1261 int (*compat_ioctl)(struct sock *sk,
1264 int (*sendmsg)(struct sock *sk, struct msghdr *msg,
1266 int (*recvmsg)(struct sock *sk, struct msghdr *msg,
1268 int (*sendpage)(struct sock *sk, struct page *page,
1270 int (*bind)(struct sock *sk,
1272 int (*bind_add)(struct sock *sk,
1275 int (*backlog_rcv) (struct sock *sk,
1277 bool (*bpf_bypass_getsockopt)(int level,
1280 void (*release_cb)(struct sock *sk);
1283 int (*hash)(struct sock *sk);
1284 void (*unhash)(struct sock *sk);
1285 void (*rehash)(struct sock *sk);
1286 int (*get_port)(struct sock *sk, unsigned short snum);
1287 void (*put_port)(struct sock *sk);
1289 int (*psock_update_sk_prot)(struct sock *sk,
1296 unsigned int inuse_idx;
1300 int (*forward_alloc_get)(const struct sock *sk);
1303 bool (*stream_memory_free)(const struct sock *sk, int wake);
1304 bool (*sock_is_readable)(struct sock *sk);
1306 void (*enter_memory_pressure)(struct sock *sk);
1307 void (*leave_memory_pressure)(struct sock *sk);
1308 atomic_long_t *memory_allocated; /* Current allocated memory. */
1309 int __percpu *per_cpu_fw_alloc;
1310 struct percpu_counter *sockets_allocated; /* Current number of sockets. */
1318 unsigned long *memory_pressure;
1319 long *sysctl_mem;
1321 int *sysctl_wmem;
1322 int *sysctl_rmem;
1323 u32 sysctl_wmem_offset;
1324 u32 sysctl_rmem_offset;
1326 int max_header;
1327 bool no_autobind;
1329 struct kmem_cache *slab;
1330 unsigned int obj_size;
1331 slab_flags_t slab_flags;
1355 int proto_register(struct proto *prot, int alloc_slab); argument
1868 static inline void sock_replace_proto(struct sock *sk, struct proto *proto) in sock_replace_proto()
2892 static inline int sk_get_wmem0(const struct sock *sk, const struct proto *proto) in sk_get_wmem0()
2901 static inline int sk_get_rmem0(const struct sock *sk, const struct proto *proto) in sk_get_rmem0()