Lines Matching defs:proto
940 struct proto { struct
941 void (*close)(struct sock *sk,
943 int (*connect)(struct sock *sk,
946 int (*disconnect)(struct sock *sk, int flags);
948 struct sock * (*accept)(struct sock *sk, int flags, int *err);
950 int (*ioctl)(struct sock *sk, int cmd,
952 int (*init)(struct sock *sk);
953 void (*destroy)(struct sock *sk);
954 void (*shutdown)(struct sock *sk, int how);
955 int (*setsockopt)(struct sock *sk, int level,
958 int (*getsockopt)(struct sock *sk, int level,
962 int (*compat_setsockopt)(struct sock *sk,
966 int (*compat_getsockopt)(struct sock *sk,
970 int (*compat_ioctl)(struct sock *sk,
973 int (*sendmsg)(struct sock *sk, struct msghdr *msg,
975 int (*recvmsg)(struct sock *sk, struct msghdr *msg,
978 int (*sendpage)(struct sock *sk, struct page *page,
980 int (*bind)(struct sock *sk,
983 int (*backlog_rcv) (struct sock *sk,
986 void (*release_cb)(struct sock *sk);
989 void (*hash)(struct sock *sk);
990 void (*unhash)(struct sock *sk);
991 void (*rehash)(struct sock *sk);
992 int (*get_port)(struct sock *sk, unsigned short snum);
993 void (*clear_sk)(struct sock *sk, int size);
997 unsigned int inuse_idx;
1000 bool (*stream_memory_free)(const struct sock *sk);
1002 void (*enter_memory_pressure)(struct sock *sk);
1003 atomic_long_t *memory_allocated; /* Current allocated memory. */
1004 struct percpu_counter *sockets_allocated; /* Current number of sockets. */
1011 int *memory_pressure;
1012 long *sysctl_mem;
1013 int *sysctl_wmem;
1014 int *sysctl_rmem;
1015 int max_header;
1016 bool no_autobind;
1018 struct kmem_cache *slab;
1019 unsigned int obj_size;
1020 int slab_flags;
1044 * protocols that implement it, from cgroups populate function. argument
1051 struct cg_proto *(*proto_cgroup)(struct mem_cgroup *memcg); argument
1118 static inline struct cg_proto *parent_cg_proto(struct proto *proto, in parent_cg_proto()
1126 static inline struct cg_proto *parent_cg_proto(struct proto *proto, in parent_cg_proto()