Lines Matching defs:proto

1067 struct proto {  struct
1068 void (*close)(struct sock *sk,
1070 int (*pre_connect)(struct sock *sk,
1073 int (*connect)(struct sock *sk,
1076 int (*disconnect)(struct sock *sk, int flags);
1078 struct sock * (*accept)(struct sock *sk, int flags, int *err,
1081 int (*ioctl)(struct sock *sk, int cmd,
1083 int (*init)(struct sock *sk);
1084 void (*destroy)(struct sock *sk);
1085 void (*shutdown)(struct sock *sk, int how);
1086 int (*setsockopt)(struct sock *sk, int level,
1089 int (*getsockopt)(struct sock *sk, int level,
1092 void (*keepalive)(struct sock *sk, int valbool);
1094 int (*compat_setsockopt)(struct sock *sk,
1098 int (*compat_getsockopt)(struct sock *sk,
1102 int (*compat_ioctl)(struct sock *sk,
1105 int (*sendmsg)(struct sock *sk, struct msghdr *msg,
1107 int (*recvmsg)(struct sock *sk, struct msghdr *msg,
1110 int (*sendpage)(struct sock *sk, struct page *page,
1112 int (*bind)(struct sock *sk,
1115 int (*backlog_rcv) (struct sock *sk,
1118 void (*release_cb)(struct sock *sk);
1121 int (*hash)(struct sock *sk);
1122 void (*unhash)(struct sock *sk);
1123 void (*rehash)(struct sock *sk);
1124 int (*get_port)(struct sock *sk, unsigned short snum);
1128 unsigned int inuse_idx;
1131 bool (*stream_memory_free)(const struct sock *sk, int wake);
1132 bool (*stream_memory_read)(const struct sock *sk);
1134 void (*enter_memory_pressure)(struct sock *sk);
1135 void (*leave_memory_pressure)(struct sock *sk);
1136 atomic_long_t *memory_allocated; /* Current allocated memory. */
1137 struct percpu_counter *sockets_allocated; /* Current number of sockets. */
1144 unsigned long *memory_pressure;
1145 long *sysctl_mem;
1147 int *sysctl_wmem;
1148 int *sysctl_rmem;
1149 u32 sysctl_wmem_offset;
1150 u32 sysctl_rmem_offset;
1152 int max_header;
1153 bool no_autobind;
1155 struct kmem_cache *slab;
1156 unsigned int obj_size;
1157 slab_flags_t slab_flags;
1158 unsigned int useroffset; /* Usercopy region offset */
1159 unsigned int usersize; /* Usercopy region size */
1184 int proto_register(struct proto *prot, int alloc_slab); argument
2563 static inline int sk_get_wmem0(const struct sock *sk, const struct proto *proto) in sk_get_wmem0()
2572 static inline int sk_get_rmem0(const struct sock *sk, const struct proto *proto) in sk_get_rmem0()