| 216 | } |
| 217 | |
| 218 | void |
| 219 | rm_init_flags(struct rmlock *rm, const char *name, int opts) |
| 220 | { |
| 221 | int liflags = 0; |
| 222 | if (!(opts & RM_NOWITNESS)) |
| 223 | liflags |= LO_WITNESS; |
| 224 | if (opts & RM_RECURSE) |
| 225 | liflags |= LO_RECURSABLE; |
| 226 | |
| 227 | lock_init(&rm->lock_object, &lock_class_rm, name, NULL, liflags); |
| 228 | } |
| 229 | |
| 230 | void |
| 231 | rm_sysinit(void *arg) |