File Index
Files and directories
Sign in
FILE

spinlock_types.h

File preview with syntax highlighting.

linux-6.19.14/arch/sh/include/asm/spinlock_types.h C
 1/* SPDX-License-Identifier: GPL-2.0 */
 2#ifndef __ASM_SH_SPINLOCK_TYPES_H
 3#define __ASM_SH_SPINLOCK_TYPES_H
 4
 5#ifndef __LINUX_SPINLOCK_TYPES_RAW_H
 6# error "Please do not include this file directly."
 7#endif
 8
 9typedef struct {
10	volatile unsigned int lock;
11} arch_spinlock_t;
12
13#define __ARCH_SPIN_LOCK_UNLOCKED		{ 1 }
14
15typedef struct {
16	volatile unsigned int lock;
17} arch_rwlock_t;
18
19#define RW_LOCK_BIAS			0x01000000
20#define __ARCH_RW_LOCK_UNLOCKED		{ RW_LOCK_BIAS }
21
22#endif
~/ Read-only file preview.