19 lines
385 B
C
19 lines
385 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef _LOCK_H_
|
|
#define _LOCK_H_
|
|
|
|
#include <kernel/types.h>
|
|
#include <kernel/common.h>
|
|
|
|
#define CLEANUP_SLOCK CLEANUP(cleanup_spinlock)
|
|
|
|
typedef u32 lock_t;
|
|
|
|
void spin_lock(lock_t *lock);
|
|
void spin_unlock(lock_t *lock);
|
|
void cleanup_spinlock(lock_t **lock_ptr);
|
|
|
|
void mtx_lock(lock_t *l);
|
|
void mtx_unlock(lock_t *l);
|
|
|
|
#endif /* _LOCK_H_ */
|