mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-30 22:18:21 +00:00
kernel: finish work of removing interruptible mutexes
This commit is contained in:
@@ -11,7 +11,7 @@ static mutex_t tablelock;
|
||||
static devops_t devops = {0};
|
||||
|
||||
int netdev_register(netdev_t *netdev, char *name) {
|
||||
MUTEX_ACQUIRE(&tablelock, false);
|
||||
MUTEX_ACQUIRE(&tablelock);
|
||||
int e = hashtable_set(&nametable, netdev, name, strlen(name), true);
|
||||
if (e)
|
||||
goto leave;
|
||||
@@ -27,7 +27,7 @@ int netdev_register(netdev_t *netdev, char *name) {
|
||||
}
|
||||
|
||||
netdev_t *netdev_getdev(char *name) {
|
||||
MUTEX_ACQUIRE(&tablelock, false);
|
||||
MUTEX_ACQUIRE(&tablelock);
|
||||
netdev_t *netdev = NULL;
|
||||
void *tmp;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user