Lines Matching refs:family

48 	int		family;
53 struct family {
54 family(int type);
61 static struct family* Lookup(int type);
62 static struct family* Add(int type);
64 struct family* next;
73 chain(int family, int type, int protocol);
81 int family, int type, int protocol);
83 int family, int type, int protocol, va_list modules);
85 int family, int type, int protocol, ...);
89 struct family* parent;
91 int family;
106 #define HASH(o) ((uint32)(((o)->family) ^ ((o)->type) ^ ((o)->protocol)))
122 if (chain->family == key.family
138 typedef family ValueType;
150 bool Compare(KeyType key, ValueType* family) const
152 return family->type == key;
176 family::family(int _type)
185 family::Acquire()
192 family::Release()
197 TRACE(("family %d unused, uninit chains\n", type));
207 /*static*/ struct family*
208 family::Lookup(int type)
214 /*static*/ struct family*
215 family::Add(int type)
217 struct family* family = new (std::nothrow) ::family(type);
218 if (family == NULL)
221 if (sFamilies->Insert(family) != B_OK) {
222 delete family;
226 return family;
235 family(_family),
241 parent = ::family::Lookup(family);
243 parent = ::family::Add(family);
285 TRACE(("initializing chain %d.%d.%d\n", family, type, protocol));
311 TRACE(("chain %d.%d.%d unused\n", family, type, protocol));
322 TRACE(("uninit chain %d.%d.%d\n", family, type, protocol));
334 chain::Lookup(ChainTable* chains, int family, int type, int protocol)
336 struct chain_key key = { family, type, protocol };
342 chain::Add(ChainTable* chains, int family, int type, int protocol,
345 struct chain* chain = new (std::nothrow) ::chain(family, type, protocol);
354 TRACE(("Add chain %d.%d.%d:\n", family, type, protocol));
384 chain::Add(ChainTable* chains, int family, int type, int protocol, ...)
389 struct chain* chain = Add(chains, family, type, 0, modules);
438 chain = chain::Lookup(sProtocolChains, socket->family, socket->type,
491 chain = chain::Lookup(sProtocolChains, socket->family, socket->type,
528 domain->family));
535 chain = chain::Lookup(sDatalinkProtocolChains, domain->family,
541 domain_datalink* datalink = interface->DomainDatalink(domain->family);
588 domain->family));
595 chain = chain::Lookup(sDatalinkProtocolChains, domain->family,
601 uninit_domain_datalink_protocols(interface->DomainDatalink(domain->family));
614 TRACE(("get_domain_receiving_protocol(family %d, type %" B_PRIu32 ")\n",
615 domain->family, type));
620 chain = chain::Lookup(sReceivingProtocolChains, domain->family,
644 chain = chain::Lookup(sReceivingProtocolChains, domain->family,
656 register_domain_protocols(int family, int type, int protocol, ...)
665 struct chain* chain = chain::Lookup(sProtocolChains, family, type, protocol);
672 chain = chain::Add(sProtocolChains, family, type, protocol, modules);
684 register_domain_datalink_protocols(int family, int type, ...)
686 TRACE(("register_domain_datalink_protocol(%d.%d)\n", family, type));
690 = chain::Lookup(sDatalinkProtocolChains, family, type, 0);
697 chain = chain::Add(sDatalinkProtocolChains, family, type, 0, modules);
718 register_domain_receiving_protocol(int family, int type, const char* moduleName)
720 TRACE(("register_domain_receiving_protocol(%d.%d, %s)\n", family, type,
726 = chain::Lookup(sReceivingProtocolChains, family, type, 0);
730 chain = chain::Add(sReceivingProtocolChains, family, type, 0, moduleName,
898 struct family* current;
901 struct family* next = current->next;