MCPcopy Create free account
hub / github.com/F-Stack/f-stack / attach_dll

Function attach_dll

freebsd/netinet/libalias/alias_mod.c:133–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131/* Dll manipulation code - this code is not thread safe... */
132static SLIST_HEAD(dll_chain, dll) dll_chain = SLIST_HEAD_INITIALIZER(dll_chain);
133int
134attach_dll(struct dll *p)
135{
136 struct dll *b;
137
138 SLIST_FOREACH(b, &dll_chain, next) {
139 if (!strncmp(b->name, p->name, DLL_LEN))
140 return (EEXIST); /* Dll name conflict. */
141 }
142 SLIST_INSERT_HEAD(&dll_chain, p, next);
143 return (0);
144}
145
146void *
147detach_dll(char *p)

Callers 1

LibAliasLoadModuleFunction · 0.85

Calls 1

strncmpFunction · 0.85

Tested by

no test coverage detected