Lines Matching defs:proto

812 struct proto {  struct
813 void (*close)(struct sock *sk,
815 int (*connect)(struct sock *sk,
818 int (*disconnect)(struct sock *sk, int flags);
820 struct sock * (*accept) (struct sock *sk, int flags, int *err);
822 int (*ioctl)(struct sock *sk, int cmd,
824 int (*init)(struct sock *sk);
825 void (*destroy)(struct sock *sk);
826 void (*shutdown)(struct sock *sk, int how);
827 int (*setsockopt)(struct sock *sk, int level,
830 int (*getsockopt)(struct sock *sk, int level,
834 int (*compat_setsockopt)(struct sock *sk,
838 int (*compat_getsockopt)(struct sock *sk,
842 int (*compat_ioctl)(struct sock *sk,
845 int (*sendmsg)(struct kiocb *iocb, struct sock *sk,
847 int (*recvmsg)(struct kiocb *iocb, struct sock *sk,
851 int (*sendpage)(struct sock *sk, struct page *page,
853 int (*bind)(struct sock *sk,
856 int (*backlog_rcv) (struct sock *sk,
860 void (*hash)(struct sock *sk);
861 void (*unhash)(struct sock *sk);
862 void (*rehash)(struct sock *sk);
863 int (*get_port)(struct sock *sk, unsigned short snum);
864 void (*clear_sk)(struct sock *sk, int size);
868 unsigned int inuse_idx;
872 void (*enter_memory_pressure)(struct sock *sk);
873 atomic_long_t *memory_allocated; /* Current allocated memory. */
874 struct percpu_counter *sockets_allocated; /* Current number of sockets. */
881 int *memory_pressure;
882 long *sysctl_mem;
883 int *sysctl_wmem;
884 int *sysctl_rmem;
885 int max_header;
886 bool no_autobind;
888 struct kmem_cache *slab;
889 unsigned int obj_size;
890 int slab_flags;
914 * protocols that implement it, from cgroups populate function. argument
921 struct cg_proto *(*proto_cgroup)(struct mem_cgroup *memcg); argument
937 * proto_cgroup in struct proto, but that means polluting the structure argument
973 static inline struct cg_proto *parent_cg_proto(struct proto *proto, in parent_cg_proto()
981 static inline struct cg_proto *parent_cg_proto(struct proto *proto, in parent_cg_proto()