Lines Matching defs:proto
957 struct proto { struct
958 void (*close)(struct sock *sk,
960 int (*connect)(struct sock *sk,
963 int (*disconnect)(struct sock *sk, int flags);
965 struct sock * (*accept)(struct sock *sk, int flags, int *err);
967 int (*ioctl)(struct sock *sk, int cmd,
969 int (*init)(struct sock *sk);
970 void (*destroy)(struct sock *sk);
971 void (*shutdown)(struct sock *sk, int how);
972 int (*setsockopt)(struct sock *sk, int level,
975 int (*getsockopt)(struct sock *sk, int level,
979 int (*compat_setsockopt)(struct sock *sk,
983 int (*compat_getsockopt)(struct sock *sk,
987 int (*compat_ioctl)(struct sock *sk,
990 int (*sendmsg)(struct sock *sk, struct msghdr *msg,
992 int (*recvmsg)(struct sock *sk, struct msghdr *msg,
995 int (*sendpage)(struct sock *sk, struct page *page,
997 int (*bind)(struct sock *sk,
1000 int (*backlog_rcv) (struct sock *sk,
1003 void (*release_cb)(struct sock *sk);
1006 void (*hash)(struct sock *sk);
1007 void (*unhash)(struct sock *sk);
1008 void (*rehash)(struct sock *sk);
1009 int (*get_port)(struct sock *sk, unsigned short snum);
1010 void (*clear_sk)(struct sock *sk, int size);
1014 unsigned int inuse_idx;
1017 bool (*stream_memory_free)(const struct sock *sk);
1019 void (*enter_memory_pressure)(struct sock *sk);
1020 atomic_long_t *memory_allocated; /* Current allocated memory. */
1021 struct percpu_counter *sockets_allocated; /* Current number of sockets. */
1028 int *memory_pressure;
1029 long *sysctl_mem;
1030 int *sysctl_wmem;
1031 int *sysctl_rmem;
1032 int max_header;
1033 bool no_autobind;
1035 struct kmem_cache *slab;
1036 unsigned int obj_size;
1037 int slab_flags;
1061 * protocols that implement it, from cgroups populate function. argument
1068 struct cg_proto *(*proto_cgroup)(struct mem_cgroup *memcg); argument
1072 int proto_register(struct proto *prot, int alloc_slab); argument
1102 static inline struct cg_proto *parent_cg_proto(struct proto *proto, in parent_cg_proto()
1110 static inline struct cg_proto *parent_cg_proto(struct proto *proto, in parent_cg_proto()