Lines Matching defs:proto
2059 const struct proto *prot = READ_ONCE(osk->sk_prot);
2084 static struct sock *sk_prot_alloc(struct proto *prot, gfp_t priority,
2120 static void sk_prot_free(struct proto *prot, struct sock *sk)
2143 * @prot: struct proto associated with this new sock instance
2147 struct proto *prot, int kern)
2297 struct proto *prot = READ_ONCE(sk->sk_prot);
3054 struct proto *prot = sk->sk_prot;
3765 int sock_prot_inuse_get(struct net *net, struct proto *prot)
3817 static int assign_proto_idx(struct proto *prot)
3830 static void release_proto_idx(struct proto *prot)
3836 static inline int assign_proto_idx(struct proto *prot)
3841 static inline void release_proto_idx(struct proto *prot)
3857 static int tw_prot_init(const struct proto *prot)
3893 static int req_prot_init(const struct proto *prot)
3918 int proto_register(struct proto *prot, int alloc_slab)
3976 void proto_unregister(struct proto *prot)
3997 return request_module("net-pf-%d-proto-%d-type-%d", PF_NETLINK,
4009 return request_module("net-pf-%d-proto-%d-type-%d-%d", PF_NETLINK,
4037 static long sock_prot_memory_allocated(struct proto *proto)
4039 return proto->memory_allocated != NULL ? proto_memory_allocated(proto) : -1L;
4042 static const char *sock_prot_memory_pressure(struct proto *proto)
4044 return proto->memory_pressure != NULL ?
4045 proto_memory_pressure(proto) ? "yes" : "no" : "NI";
4048 static void proto_seq_printf(struct seq_file *seq, struct proto *proto)
4053 proto->name,
4054 proto->obj_size,
4055 sock_prot_inuse_get(seq_file_net(seq), proto),
4056 sock_prot_memory_allocated(proto),
4057 sock_prot_memory_pressure(proto),
4058 proto->max_header,
4059 proto->slab == NULL ? "no" : "yes",
4060 module_name(proto->owner),
4061 proto_method_implemented(proto->close),
4062 proto_method_implemented(proto->connect),
4063 proto_method_implemented(proto->disconnect),
4064 proto_method_implemented(proto->accept),
4065 proto_method_implemented(proto->ioctl),
4066 proto_method_implemented(proto->init),
4067 proto_method_implemented(proto->destroy),
4068 proto_method_implemented(proto->shutdown),
4069 proto_method_implemented(proto->setsockopt),
4070 proto_method_implemented(proto->getsockopt),
4071 proto_method_implemented(proto->sendmsg),
4072 proto_method_implemented(proto->recvmsg),
4073 proto_method_implemented(proto->bind),
4074 proto_method_implemented(proto->backlog_rcv),
4075 proto_method_implemented(proto->hash),
4076 proto_method_implemented(proto->unhash),
4077 proto_method_implemented(proto->get_port),
4078 proto_method_implemented(proto->enter_memory_pressure));
4095 proto_seq_printf(seq, list_entry(v, struct proto, node));