arch/riscv/include/asm/cacheinfo.h

Source file repositories/reference/linux-study-clean/arch/riscv/include/asm/cacheinfo.h

File Facts

System
Linux kernel
Corpus path
arch/riscv/include/asm/cacheinfo.h
Extension
.h
Size
511 bytes
Lines
21
Domain
Architecture Layer
Bucket
arch/riscv
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

struct riscv_cacheinfo_ops {
	const struct attribute_group * (*get_priv_group)(struct cacheinfo
							*this_leaf);
};

void riscv_set_cacheinfo_ops(struct riscv_cacheinfo_ops *ops);
uintptr_t get_cache_size(u32 level, enum cache_type type);
uintptr_t get_cache_geometry(u32 level, enum cache_type type);

#endif /* _ASM_RISCV_CACHEINFO_H */

Annotation

Implementation Notes