Lines Matching defs:proto
766 struct proto { struct
767 void (*close)(struct sock *sk,
769 int (*connect)(struct sock *sk,
772 int (*disconnect)(struct sock *sk, int flags);
774 struct sock * (*accept) (struct sock *sk, int flags, int *err);
776 int (*ioctl)(struct sock *sk, int cmd,
778 int (*init)(struct sock *sk);
779 void (*destroy)(struct sock *sk);
780 void (*shutdown)(struct sock *sk, int how);
781 int (*setsockopt)(struct sock *sk, int level,
784 int (*getsockopt)(struct sock *sk, int level,
788 int (*compat_setsockopt)(struct sock *sk,
792 int (*compat_getsockopt)(struct sock *sk,
796 int (*compat_ioctl)(struct sock *sk,
799 int (*sendmsg)(struct kiocb *iocb, struct sock *sk,
801 int (*recvmsg)(struct kiocb *iocb, struct sock *sk,
805 int (*sendpage)(struct sock *sk, struct page *page,
807 int (*bind)(struct sock *sk,
810 int (*backlog_rcv) (struct sock *sk,
814 void (*hash)(struct sock *sk);
815 void (*unhash)(struct sock *sk);
816 void (*rehash)(struct sock *sk);
817 int (*get_port)(struct sock *sk, unsigned short snum);
818 void (*clear_sk)(struct sock *sk, int size);
822 unsigned int inuse_idx;
826 void (*enter_memory_pressure)(struct sock *sk);
827 atomic_long_t *memory_allocated; /* Current allocated memory. */
828 struct percpu_counter *sockets_allocated; /* Current number of sockets. */
835 int *memory_pressure;
836 long *sysctl_mem;
837 int *sysctl_wmem;
838 int *sysctl_rmem;
839 int max_header;
840 bool no_autobind;
842 struct kmem_cache *slab;
843 unsigned int obj_size;
844 int slab_flags;
868 * protocols that implement it, from cgroups populate function. argument
876 struct cg_proto *(*proto_cgroup)(struct mem_cgroup *memcg); argument
892 * proto_cgroup in struct proto, but that means polluting the structure argument
928 static inline struct cg_proto *parent_cg_proto(struct proto *proto, in parent_cg_proto()
936 static inline struct cg_proto *parent_cg_proto(struct proto *proto, in parent_cg_proto()