Lines Matching defs:prot
1288 int proto_register(struct proto *prot, int alloc_slab);
1289 void proto_unregister(struct proto *prot);
1411 proto_sockets_allocated_sum_positive(struct proto *prot)
1413 return percpu_counter_sum_positive(prot->sockets_allocated);
1417 proto_memory_allocated(struct proto *prot)
1419 return atomic_long_read(prot->memory_allocated);
1423 proto_memory_pressure(struct proto *prot)
1425 if (!prot->memory_pressure)
1427 return !!READ_ONCE(*prot->memory_pressure);
1433 void sock_prot_inuse_add(struct net *net, struct proto *prot, int inc);
1437 static inline void sock_prot_inuse_add(struct net *net, struct proto *prot,
1719 struct proto *prot, int kern);