• Home
  • Raw
  • Download

Lines Matching defs:proto

1252 struct proto {  struct
1253 void (*close)(struct sock *sk,
1255 int (*pre_connect)(struct sock *sk,
1258 int (*connect)(struct sock *sk,
1261 int (*disconnect)(struct sock *sk, int flags);
1263 struct sock * (*accept)(struct sock *sk, int flags, int *err,
1266 int (*ioctl)(struct sock *sk, int cmd,
1268 int (*init)(struct sock *sk);
1269 void (*destroy)(struct sock *sk);
1270 void (*shutdown)(struct sock *sk, int how);
1271 int (*setsockopt)(struct sock *sk, int level,
1274 int (*getsockopt)(struct sock *sk, int level,
1277 void (*keepalive)(struct sock *sk, int valbool);
1279 int (*compat_ioctl)(struct sock *sk,
1282 int (*sendmsg)(struct sock *sk, struct msghdr *msg,
1284 int (*recvmsg)(struct sock *sk, struct msghdr *msg,
1286 void (*splice_eof)(struct socket *sock);
1287 int (*bind)(struct sock *sk,
1289 int (*bind_add)(struct sock *sk,
1292 int (*backlog_rcv) (struct sock *sk,
1294 bool (*bpf_bypass_getsockopt)(int level,
1297 void (*release_cb)(struct sock *sk);
1300 int (*hash)(struct sock *sk);
1301 void (*unhash)(struct sock *sk);
1302 void (*rehash)(struct sock *sk);
1303 int (*get_port)(struct sock *sk, unsigned short snum);
1304 void (*put_port)(struct sock *sk);
1306 int (*psock_update_sk_prot)(struct sock *sk,
1313 unsigned int inuse_idx;
1317 int (*forward_alloc_get)(const struct sock *sk);
1320 bool (*stream_memory_free)(const struct sock *sk, int wake);
1321 bool (*sock_is_readable)(struct sock *sk);
1323 void (*enter_memory_pressure)(struct sock *sk);
1324 void (*leave_memory_pressure)(struct sock *sk);
1325 atomic_long_t *memory_allocated; /* Current allocated memory. */
1326 int __percpu *per_cpu_fw_alloc;
1327 struct percpu_counter *sockets_allocated; /* Current number of sockets. */
1336 unsigned long *memory_pressure;
1337 long *sysctl_mem;
1339 int *sysctl_wmem;
1340 int *sysctl_rmem;
1341 u32 sysctl_wmem_offset;
1342 u32 sysctl_rmem_offset;
1344 int max_header;
1345 bool no_autobind;
1347 struct kmem_cache *slab;
1348 unsigned int obj_size;
1349 unsigned int ipv6_pinfo_offset;
1350 slab_flags_t slab_flags;
1374 int proto_register(struct proto *prot, int alloc_slab); argument
1465 static inline void proto_memory_pcpu_drain(struct proto *proto) in proto_memory_pcpu_drain()
1476 struct proto *proto = sk->sk_prot; in sk_memory_allocated_add() local
1487 struct proto *proto = sk->sk_prot; in sk_memory_allocated_sub() local
1911 static inline void sock_replace_proto(struct sock *sk, struct proto *proto) in sock_replace_proto()
2969 static inline int sk_get_wmem0(const struct sock *sk, const struct proto *proto) in sk_get_wmem0()
2978 static inline int sk_get_rmem0(const struct sock *sk, const struct proto *proto) in sk_get_rmem0()