sys/kern: Add lockmgr support

- See `man lockmgr`

- Implement the lock_object and move the RTEMS mutex to that object

- Add debug support to track the locks with gdb

Update #4475
This commit is contained in:
Chris Johns
2021-07-20 16:24:54 +10:00
parent e1ca99b535
commit 46a15fa7aa
17 changed files with 727 additions and 83 deletions

View File

@@ -35,9 +35,9 @@
#define _MACHINE__KERNEL_LOCK_H_
#include <sys/queue.h>
#include <sys/_lock.h>
#include <sys/ktr_class.h>
struct lock_object;
struct lock_list_entry;
struct thread;