/
usr
/
src
/
linux-headers-5.15.0-181
/
arch
/
um
/
include
/
asm
/
/usr/src/linux-headers-5.15.0-181/arch/um/include/asm
mkdir
upload
Name
Size
Mode
Actions
fpu/
-
0755
rm
archrandom.h
735
0644
edit
dl
rm
asm-prototypes.h
129
0644
edit
dl
rm
cache.h
483
0644
edit
dl
rm
cacheflush.h
257
0644
edit
dl
rm
common.lds.S
1679
0644
edit
dl
rm
cpufeature.h
5011
0644
edit
dl
rm
delay.h
670
0644
edit
dl
rm
dma.h
180
0644
edit
dl
rm
fixmap.h
1638
0644
edit
dl
rm
futex.h
353
0644
edit
dl
rm
hardirq.h
201
0644
edit
dl
rm
io.h
478
0644
edit
dl
rm
irq.h
828
0644
edit
dl
rm
irqflags.h
807
0644
edit
dl
rm
Kbuild
729
0644
edit
dl
rm
kvm_para.h
34
0644
edit
dl
rm
mmu.h
522
0644
edit
dl
rm
mmu_context.h
1174
0644
edit
dl
rm
msi.h
29
0644
edit
dl
rm
page.h
3239
0644
edit
dl
rm
pci.h
864
0644
edit
dl
rm
pgalloc.h
1034
0644
edit
dl
rm
pgtable-2level.h
1299
0644
edit
dl
rm
pgtable-3level.h
2645
0644
edit
dl
rm
pgtable.h
8831
0644
edit
dl
rm
processor-generic.h
2193
0644
edit
dl
rm
ptrace-generic.h
1187
0644
edit
dl
rm
sections.h
219
0644
edit
dl
rm
setup.h
273
0644
edit
dl
rm
smp.h
121
0644
edit
dl
rm
stacktrace.h
1088
0644
edit
dl
rm
syscall-generic.h
1974
0644
edit
dl
rm
sysrq.h
182
0644
edit
dl
rm
thread_info.h
2332
0644
edit
dl
rm
timex.h
151
0644
edit
dl
rm
tlb.h
192
0644
edit
dl
rm
tlbflush.h
991
0644
edit
dl
rm
uaccess.h
1471
0644
edit
dl
rm
unwind.h
213
0644
edit
dl
rm
vmalloc.h
84
0644
edit
dl
rm
vmlinux.lds.h
66
0644
edit
dl
rm
xor.h
639
0644
edit
dl
rm
Edit:
/usr/src/linux-headers-5.15.0-181/arch/um/include/asm/mmu_context.h
(1174B)
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) */ #ifndef __UM_MMU_CONTEXT_H #define __UM_MMU_CONTEXT_H #include <linux/sched.h> #include <linux/mm_types.h> #include <linux/mmap_lock.h> #include <asm/mm_hooks.h> #include <asm/mmu.h> extern void force_flush_all(void); #define activate_mm activate_mm static inline void activate_mm(struct mm_struct *old, struct mm_struct *new) { /* * This is called by fs/exec.c and sys_unshare() * when the new ->mm is used for the first time. */ __switch_mm(&new->context.id); } static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, struct task_struct *tsk) { unsigned cpu = smp_processor_id(); if(prev != next){ cpumask_clear_cpu(cpu, mm_cpumask(prev)); cpumask_set_cpu(cpu, mm_cpumask(next)); if(next != &init_mm) __switch_mm(&next->context.id); } } #define init_new_context init_new_context extern int init_new_context(struct task_struct *task, struct mm_struct *mm); #define destroy_context destroy_context extern void destroy_context(struct mm_struct *mm); #include <asm-generic/mmu_context.h> #endif
Save
cmd:
run