arch/arm64/include/asm/simd.h

Source file repositories/reference/linux-study-clean/arch/arm64/include/asm/simd.h

File Facts

System
Linux kernel
Corpus path
arch/arm64/include/asm/simd.h
Extension
.h
Size
1484 bytes
Lines
61
Domain
Architecture Layer
Bucket
arch/arm64
Inferred role
Architecture Layer: implementation source
Status
source implementation candidate

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

static __must_check inline bool may_use_simd(void) {
	return false;
}

#endif /* ! CONFIG_KERNEL_MODE_NEON */

DEFINE_LOCK_GUARD_1(ksimd,
		    struct user_fpsimd_state,
		    kernel_neon_begin(_T->lock),
		    kernel_neon_end(_T->lock))

#define __scoped_ksimd(_label)					\
	for (struct user_fpsimd_state __uninitialized __st;	\
	     true; ({ goto _label; }))				\
		if (0) {					\
_label:			break;					\
		} else scoped_guard(ksimd, &__st)

#define scoped_ksimd()	__scoped_ksimd(__UNIQUE_ID(label))

#endif

Annotation

Implementation Notes