Lines Matching defs:proto

1175 struct proto {  struct
1176 void (*close)(struct sock *sk,
1178 int (*pre_connect)(struct sock *sk,
1181 int (*connect)(struct sock *sk,
1184 int (*disconnect)(struct sock *sk, int flags);
1186 struct sock * (*accept)(struct sock *sk, int flags, int *err,
1189 int (*ioctl)(struct sock *sk, int cmd,
1191 int (*init)(struct sock *sk);
1192 void (*destroy)(struct sock *sk);
1193 void (*shutdown)(struct sock *sk, int how);
1194 int (*setsockopt)(struct sock *sk, int level,
1197 int (*getsockopt)(struct sock *sk, int level,
1200 void (*keepalive)(struct sock *sk, int valbool);
1202 int (*compat_ioctl)(struct sock *sk,
1205 int (*sendmsg)(struct sock *sk, struct msghdr *msg,
1207 int (*recvmsg)(struct sock *sk, struct msghdr *msg,
1210 int (*sendpage)(struct sock *sk, struct page *page,
1212 int (*bind)(struct sock *sk,
1214 int (*bind_add)(struct sock *sk,
1217 int (*backlog_rcv) (struct sock *sk,
1220 void (*release_cb)(struct sock *sk);
1223 int (*hash)(struct sock *sk);
1224 void (*unhash)(struct sock *sk);
1225 void (*rehash)(struct sock *sk);
1226 int (*get_port)(struct sock *sk, unsigned short snum);
1230 unsigned int inuse_idx;
1233 bool (*stream_memory_free)(const struct sock *sk, int wake);
1234 bool (*stream_memory_read)(const struct sock *sk);
1236 void (*enter_memory_pressure)(struct sock *sk);
1237 void (*leave_memory_pressure)(struct sock *sk);
1238 atomic_long_t *memory_allocated; /* Current allocated memory. */
1239 struct percpu_counter *sockets_allocated; /* Current number of sockets. */
1246 unsigned long *memory_pressure;
1247 long *sysctl_mem;
1249 int *sysctl_wmem;
1250 int *sysctl_rmem;
1251 u32 sysctl_wmem_offset;
1252 u32 sysctl_rmem_offset;
1254 int max_header;
1255 bool no_autobind;
1257 struct kmem_cache *slab;
1258 unsigned int obj_size;
1259 slab_flags_t slab_flags;
1260 unsigned int useroffset; /* Usercopy region offset */
1261 unsigned int usersize; /* Usercopy region size */
1286 int proto_register(struct proto *prot, int alloc_slab); argument
2726 static inline int sk_get_wmem0(const struct sock *sk, const struct proto *proto) in sk_get_wmem0()
2735 static inline int sk_get_rmem0(const struct sock *sk, const struct proto *proto) in sk_get_rmem0()