Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
spinlock.c File Reference
#include "./spinlock.h"

Go to the source code of this file.

Functions

static void cpu_relax (void)
 
void spin_acquire (spinlock_t *lock)
 
void spin_release (spinlock_t *lock)
 
bool spin_is_locked (const spinlock_t *lock)
 

Function Documentation

◆ cpu_relax()

static void cpu_relax ( void )
inlinestatic

Definition at line 3 of file spinlock.c.

Referenced by spin_acquire().

◆ spin_acquire()

◆ spin_is_locked()

bool spin_is_locked ( const spinlock_t * lock)

Definition at line 27 of file spinlock.c.

References lock, and next.

◆ spin_release()