• Home
  • Raw
  • Download

Lines Matching defs:proto

1176 struct proto {  struct
1177 void (*close)(struct sock *sk,
1179 int (*pre_connect)(struct sock *sk,
1182 int (*connect)(struct sock *sk,
1185 int (*disconnect)(struct sock *sk, int flags);
1187 struct sock * (*accept)(struct sock *sk, int flags, int *err,
1190 int (*ioctl)(struct sock *sk, int cmd,
1192 int (*init)(struct sock *sk);
1193 void (*destroy)(struct sock *sk);
1194 void (*shutdown)(struct sock *sk, int how);
1195 int (*setsockopt)(struct sock *sk, int level,
1198 int (*getsockopt)(struct sock *sk, int level,
1201 void (*keepalive)(struct sock *sk, int valbool);
1203 int (*compat_ioctl)(struct sock *sk,
1206 int (*sendmsg)(struct sock *sk, struct msghdr *msg,
1208 int (*recvmsg)(struct sock *sk, struct msghdr *msg,
1211 int (*sendpage)(struct sock *sk, struct page *page,
1213 int (*bind)(struct sock *sk,
1215 int (*bind_add)(struct sock *sk,
1218 int (*backlog_rcv) (struct sock *sk,
1220 bool (*bpf_bypass_getsockopt)(int level,
1223 void (*release_cb)(struct sock *sk);
1226 int (*hash)(struct sock *sk);
1227 void (*unhash)(struct sock *sk);
1228 void (*rehash)(struct sock *sk);
1229 int (*get_port)(struct sock *sk, unsigned short snum);
1233 unsigned int inuse_idx;
1236 bool (*stream_memory_free)(const struct sock *sk, int wake);
1237 bool (*stream_memory_read)(const struct sock *sk);
1239 void (*enter_memory_pressure)(struct sock *sk);
1240 void (*leave_memory_pressure)(struct sock *sk);
1241 atomic_long_t *memory_allocated; /* Current allocated memory. */
1242 struct percpu_counter *sockets_allocated; /* Current number of sockets. */
1250 unsigned long *memory_pressure;
1251 long *sysctl_mem;
1253 int *sysctl_wmem;
1254 int *sysctl_rmem;
1255 u32 sysctl_wmem_offset;
1256 u32 sysctl_rmem_offset;
1258 int max_header;
1259 bool no_autobind;
1261 struct kmem_cache *slab;
1262 unsigned int obj_size;
1263 slab_flags_t slab_flags;
1264 unsigned int useroffset; /* Usercopy region offset */
1265 unsigned int usersize; /* Usercopy region size */
1290 int proto_register(struct proto *prot, int alloc_slab); argument
2767 static inline int sk_get_wmem0(const struct sock *sk, const struct proto *proto) in sk_get_wmem0()
2776 static inline int sk_get_rmem0(const struct sock *sk, const struct proto *proto) in sk_get_rmem0()