| 131 | /* Dll manipulation code - this code is not thread safe... */ |
| 132 | static SLIST_HEAD(dll_chain, dll) dll_chain = SLIST_HEAD_INITIALIZER(dll_chain); |
| 133 | int |
| 134 | attach_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 | |
| 146 | void * |
| 147 | detach_dll(char *p) |
no test coverage detected