12 lines
296 B
C
12 lines
296 B
C
|
|
#ifndef SOCKS_LOCKS_H_
|
||
|
|
#define SOCKS_LOCKS_H_
|
||
|
|
|
||
|
|
typedef int __attribute__((aligned(8))) spin_lock_t;
|
||
|
|
|
||
|
|
#define SPIN_LOCK_INIT ((spin_lock_t)0)
|
||
|
|
|
||
|
|
extern void spin_lock_irqsave(spin_lock_t *lck, unsigned long *flags);
|
||
|
|
extern void spin_unlock_irqrestore(spin_lock_t *lck, unsigned long flags);
|
||
|
|
|
||
|
|
#endif
|