Lines Matching defs:proto
1148 struct proto { struct
1149 void (*close)(struct sock *sk,
1151 int (*pre_connect)(struct sock *sk,
1154 int (*connect)(struct sock *sk,
1157 int (*disconnect)(struct sock *sk, int flags);
1159 struct sock * (*accept)(struct sock *sk, int flags, int *err,
1162 int (*ioctl)(struct sock *sk, int cmd,
1164 int (*init)(struct sock *sk);
1165 void (*destroy)(struct sock *sk);
1166 void (*shutdown)(struct sock *sk, int how);
1167 int (*setsockopt)(struct sock *sk, int level,
1170 int (*getsockopt)(struct sock *sk, int level,
1173 void (*keepalive)(struct sock *sk, int valbool);
1175 int (*compat_ioctl)(struct sock *sk,
1178 int (*sendmsg)(struct sock *sk, struct msghdr *msg,
1180 int (*recvmsg)(struct sock *sk, struct msghdr *msg,
1183 int (*sendpage)(struct sock *sk, struct page *page,
1185 int (*bind)(struct sock *sk,
1187 int (*bind_add)(struct sock *sk,
1190 int (*backlog_rcv) (struct sock *sk,
1192 bool (*bpf_bypass_getsockopt)(int level,
1195 void (*release_cb)(struct sock *sk);
1198 int (*hash)(struct sock *sk);
1199 void (*unhash)(struct sock *sk);
1200 void (*rehash)(struct sock *sk);
1201 int (*get_port)(struct sock *sk, unsigned short snum);
1203 int (*psock_update_sk_prot)(struct sock *sk,
1210 unsigned int inuse_idx;
1213 int (*forward_alloc_get)(const struct sock *sk);
1215 bool (*stream_memory_free)(const struct sock *sk, int wake);
1216 bool (*sock_is_readable)(struct sock *sk);
1218 void (*enter_memory_pressure)(struct sock *sk);
1219 void (*leave_memory_pressure)(struct sock *sk);
1220 atomic_long_t *memory_allocated; /* Current allocated memory. */
1221 struct percpu_counter *sockets_allocated; /* Current number of sockets. */
1229 unsigned long *memory_pressure;
1230 long *sysctl_mem;
1232 int *sysctl_wmem;
1233 int *sysctl_rmem;
1234 u32 sysctl_wmem_offset;
1235 u32 sysctl_rmem_offset;
1237 int max_header;
1238 bool no_autobind;
1240 struct kmem_cache *slab;
1241 unsigned int obj_size;
1242 slab_flags_t slab_flags;
1243 unsigned int useroffset; /* Usercopy region offset */
1244 unsigned int usersize; /* Usercopy region size */
1269 int proto_register(struct proto *prot, int alloc_slab); argument
2795 static inline int sk_get_wmem0(const struct sock *sk, const struct proto *proto) in sk_get_wmem0()
2804 static inline int sk_get_rmem0(const struct sock *sk, const struct proto *proto) in sk_get_rmem0()