cregit-Linux how code gets into the kernel

Release 4.16 include/asm-generic/qrwlock_types.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __ASM_GENERIC_QRWLOCK_TYPES_H

#define __ASM_GENERIC_QRWLOCK_TYPES_H

#include <linux/types.h>
#include <asm/byteorder.h>
#include <asm/spinlock_types.h>

/*
 * The queue read/write lock data structure
 */


typedef struct qrwlock {
	
union {
		
atomic_t cnts;
		
struct {
#ifdef __LITTLE_ENDIAN
			
u8 wlocked;	/* Locked for write? */
			
u8 __lstate[3];
#else
			u8 __lstate[3];
			u8 wlocked;	/* Locked for write? */
#endif
		};
	};
	
arch_spinlock_t		wait_lock;

} arch_rwlock_t;


#define	__ARCH_RW_LOCK_UNLOCKED {               \
        { .cnts = ATOMIC_INIT(0), },            \
        .wait_lock = __ARCH_SPIN_LOCK_UNLOCKED, \
}

#endif /* __ASM_GENERIC_QRWLOCK_TYPES_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Will Deacon3650.00%233.33%
Waiman Long3143.06%116.67%
Arnd Bergmann34.17%116.67%
Greg Kroah-Hartman11.39%116.67%
Davidlohr Bueso A11.39%116.67%
Total72100.00%6100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.