Lines Matching defs:proto
1127 struct proto { struct
1128 void (*close)(struct sock *sk,
1130 int (*pre_connect)(struct sock *sk,
1133 int (*connect)(struct sock *sk,
1136 int (*disconnect)(struct sock *sk, int flags);
1138 struct sock * (*accept)(struct sock *sk, int flags, int *err,
1141 int (*ioctl)(struct sock *sk, int cmd,
1143 int (*init)(struct sock *sk);
1144 void (*destroy)(struct sock *sk);
1145 void (*shutdown)(struct sock *sk, int how);
1146 int (*setsockopt)(struct sock *sk, int level,
1149 int (*getsockopt)(struct sock *sk, int level,
1152 void (*keepalive)(struct sock *sk, int valbool);
1154 int (*compat_ioctl)(struct sock *sk,
1157 int (*sendmsg)(struct sock *sk, struct msghdr *msg,
1159 int (*recvmsg)(struct sock *sk, struct msghdr *msg,
1162 int (*sendpage)(struct sock *sk, struct page *page,
1164 int (*bind)(struct sock *sk,
1166 int (*bind_add)(struct sock *sk,
1169 int (*backlog_rcv) (struct sock *sk,
1172 void (*release_cb)(struct sock *sk);
1175 int (*hash)(struct sock *sk);
1176 void (*unhash)(struct sock *sk);
1177 void (*rehash)(struct sock *sk);
1178 int (*get_port)(struct sock *sk, unsigned short snum);
1182 unsigned int inuse_idx;
1185 bool (*stream_memory_free)(const struct sock *sk, int wake);
1186 bool (*stream_memory_read)(const struct sock *sk);
1188 void (*enter_memory_pressure)(struct sock *sk);
1189 void (*leave_memory_pressure)(struct sock *sk);
1190 atomic_long_t *memory_allocated; /* Current allocated memory. */
1191 struct percpu_counter *sockets_allocated; /* Current number of sockets. */
1198 unsigned long *memory_pressure;
1199 long *sysctl_mem;
1201 int *sysctl_wmem;
1202 int *sysctl_rmem;
1203 u32 sysctl_wmem_offset;
1204 u32 sysctl_rmem_offset;
1206 int max_header;
1207 bool no_autobind;
1209 struct kmem_cache *slab;
1210 unsigned int obj_size;
1211 slab_flags_t slab_flags;
1212 unsigned int useroffset; /* Usercopy region offset */
1213 unsigned int usersize; /* Usercopy region size */
1238 int proto_register(struct proto *prot, int alloc_slab); argument
2643 static inline int sk_get_wmem0(const struct sock *sk, const struct proto *proto) in sk_get_wmem0()
2652 static inline int sk_get_rmem0(const struct sock *sk, const struct proto *proto) in sk_get_rmem0()