Lines Matching refs:ulp
32 static struct tcp_ulp_ops *tcp_ulp_find_id(const int ulp) in tcp_ulp_find_id() argument
37 if (e->uid == ulp) in tcp_ulp_find_id()
46 const struct tcp_ulp_ops *ulp = NULL; in __tcp_ulp_find_autoload() local
49 ulp = tcp_ulp_find(name); in __tcp_ulp_find_autoload()
52 if (!ulp && capable(CAP_NET_ADMIN)) { in __tcp_ulp_find_autoload()
56 ulp = tcp_ulp_find(name); in __tcp_ulp_find_autoload()
59 if (!ulp || !try_module_get(ulp->owner)) in __tcp_ulp_find_autoload()
60 ulp = NULL; in __tcp_ulp_find_autoload()
63 return ulp; in __tcp_ulp_find_autoload()
68 const struct tcp_ulp_ops *ulp; in __tcp_ulp_lookup() local
71 ulp = tcp_ulp_find_id(uid); in __tcp_ulp_lookup()
72 if (!ulp || !try_module_get(ulp->owner)) in __tcp_ulp_lookup()
73 ulp = NULL; in __tcp_ulp_lookup()
75 return ulp; in __tcp_ulp_lookup()
81 int tcp_register_ulp(struct tcp_ulp_ops *ulp) in tcp_register_ulp() argument
86 if (tcp_ulp_find(ulp->name)) in tcp_register_ulp()
89 list_add_tail_rcu(&ulp->list, &tcp_ulp_list); in tcp_register_ulp()
96 void tcp_unregister_ulp(struct tcp_ulp_ops *ulp) in tcp_unregister_ulp() argument
99 list_del_rcu(&ulp->list); in tcp_unregister_ulp()
165 int tcp_set_ulp_id(struct sock *sk, int ulp) in tcp_set_ulp_id() argument
174 ulp_ops = __tcp_ulp_lookup(ulp); in tcp_set_ulp_id()