Files
mop3/kernel/sync/spin_lock.h
kamkow1 270ff507d4
All checks were successful
Build documentation / build-and-deploy (push) Successful in 21s
Implement lock IRQ nesting via stack variables/contexts
2026-01-14 22:11:56 +01:00

15 lines
342 B
C

#ifndef _KERNEL_SYNC_SPIN_LOCK_H
#define _KERNEL_SYNC_SPIN_LOCK_H
#include <libk/std.h>
#include <sys/spin_lock.h>
#define SPIN_LOCK_INIT ATOMIC_FLAG_INIT
typedef atomic_flag spin_lock_t;
void spin_lock (spin_lock_t* sl, spin_lock_ctx_t* ctx);
void spin_unlock (spin_lock_t* sl, spin_lock_ctx_t* ctx);
#endif // _KERNEL_SYNC_SPIN_LOCK_H