Lines Matching defs:proto

1666 	const struct proto *prot = READ_ONCE(osk->sk_prot);
1681 static struct sock *sk_prot_alloc(struct proto *prot, gfp_t priority,
1718 static void sk_prot_free(struct proto *prot, struct sock *sk)
1741 * @prot: struct proto associated with this new sock instance
1745 struct proto *prot, int kern)
1889 struct proto *prot = READ_ONCE(sk->sk_prot);
1984 /* Increment the counter in the same struct proto as the master
2617 struct proto *prot = sk->sk_prot;
3346 void sock_prot_inuse_add(struct net *net, struct proto *prot, int val)
3352 int sock_prot_inuse_get(struct net *net, struct proto *prot)
3419 static int assign_proto_idx(struct proto *prot)
3432 static void release_proto_idx(struct proto *prot)
3438 static inline int assign_proto_idx(struct proto *prot)
3443 static inline void release_proto_idx(struct proto *prot)
3472 static int req_prot_init(const struct proto *prot)
3497 int proto_register(struct proto *prot, int alloc_slab)
3561 void proto_unregister(struct proto *prot)
3582 return request_module("net-pf-%d-proto-%d-type-%d", PF_NETLINK,
3594 return request_module("net-pf-%d-proto-%d-type-%d-%d", PF_NETLINK,
3622 static long sock_prot_memory_allocated(struct proto *proto)
3624 return proto->memory_allocated != NULL ? proto_memory_allocated(proto) : -1L;
3627 static const char *sock_prot_memory_pressure(struct proto *proto)
3629 return proto->memory_pressure != NULL ?
3630 proto_memory_pressure(proto) ? "yes" : "no" : "NI";
3633 static void proto_seq_printf(struct seq_file *seq, struct proto *proto)
3638 proto->name,
3639 proto->obj_size,
3640 sock_prot_inuse_get(seq_file_net(seq), proto),
3641 sock_prot_memory_allocated(proto),
3642 sock_prot_memory_pressure(proto),
3643 proto->max_header,
3644 proto->slab == NULL ? "no" : "yes",
3645 module_name(proto->owner),
3646 proto_method_implemented(proto->close),
3647 proto_method_implemented(proto->connect),
3648 proto_method_implemented(proto->disconnect),
3649 proto_method_implemented(proto->accept),
3650 proto_method_implemented(proto->ioctl),
3651 proto_method_implemented(proto->init),
3652 proto_method_implemented(proto->destroy),
3653 proto_method_implemented(proto->shutdown),
3654 proto_method_implemented(proto->setsockopt),
3655 proto_method_implemented(proto->getsockopt),
3656 proto_method_implemented(proto->sendmsg),
3657 proto_method_implemented(proto->recvmsg),
3658 proto_method_implemented(proto->sendpage),
3659 proto_method_implemented(proto->bind),
3660 proto_method_implemented(proto->backlog_rcv),
3661 proto_method_implemented(proto->hash),
3662 proto_method_implemented(proto->unhash),
3663 proto_method_implemented(proto->get_port),
3664 proto_method_implemented(proto->enter_memory_pressure));
3681 proto_seq_printf(seq, list_entry(v, struct proto, node));