/usr/src/linux-headers-5.15.0-181/arch/um/include/asm
NameSizeModeActions
fpu/-0755rm
archrandom.h7350644editdlrm
asm-prototypes.h1290644editdlrm
cache.h4830644editdlrm
cacheflush.h2570644editdlrm
common.lds.S16790644editdlrm
cpufeature.h50110644editdlrm
delay.h6700644editdlrm
dma.h1800644editdlrm
fixmap.h16380644editdlrm
futex.h3530644editdlrm
hardirq.h2010644editdlrm
io.h4780644editdlrm
irq.h8280644editdlrm
irqflags.h8070644editdlrm
Kbuild7290644editdlrm
kvm_para.h340644editdlrm
mmu.h5220644editdlrm
mmu_context.h11740644editdlrm
msi.h290644editdlrm
page.h32390644editdlrm
pci.h8640644editdlrm
pgalloc.h10340644editdlrm
pgtable-2level.h12990644editdlrm
pgtable-3level.h26450644editdlrm
pgtable.h88310644editdlrm
processor-generic.h21930644editdlrm
ptrace-generic.h11870644editdlrm
sections.h2190644editdlrm
setup.h2730644editdlrm
smp.h1210644editdlrm
stacktrace.h10880644editdlrm
syscall-generic.h19740644editdlrm
sysrq.h1820644editdlrm
thread_info.h23320644editdlrm
timex.h1510644editdlrm
tlb.h1920644editdlrm
tlbflush.h9910644editdlrm
uaccess.h14710644editdlrm
unwind.h2130644editdlrm
vmalloc.h840644editdlrm
vmlinux.lds.h660644editdlrm
xor.h6390644editdlrm
Edit: /usr/src/linux-headers-5.15.0-181/arch/um/include/asm/uaccess.h (1471B)
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2002 Jeff Dike (jdike@karaya.com) * Copyright (C) 2015 Richard Weinberger (richard@nod.at) */ #ifndef __UM_UACCESS_H #define __UM_UACCESS_H #include #define __under_task_size(addr, size) \ (((unsigned long) (addr) < TASK_SIZE) && \ (((unsigned long) (addr) + (size)) < TASK_SIZE)) #define __access_ok_vsyscall(addr, size) \ (((unsigned long) (addr) >= FIXADDR_USER_START) && \ ((unsigned long) (addr) + (size) <= FIXADDR_USER_END) && \ ((unsigned long) (addr) + (size) >= (unsigned long)(addr))) #define __addr_range_nowrap(addr, size) \ ((unsigned long) (addr) <= ((unsigned long) (addr) + (size))) extern unsigned long raw_copy_from_user(void *to, const void __user *from, unsigned long n); extern unsigned long raw_copy_to_user(void __user *to, const void *from, unsigned long n); extern unsigned long __clear_user(void __user *mem, unsigned long len); static inline int __access_ok(unsigned long addr, unsigned long size); /* Teach asm-generic/uaccess.h that we have C functions for these. */ #define __access_ok __access_ok #define __clear_user __clear_user #define INLINE_COPY_FROM_USER #define INLINE_COPY_TO_USER #include static inline int __access_ok(unsigned long addr, unsigned long size) { return __addr_range_nowrap(addr, size) && (__under_task_size(addr, size) || __access_ok_vsyscall(addr, size) || uaccess_kernel()); } #endif