OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-213
/
arch
/
um
/
include
/
asm
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
π
..
-
05/09/2024 07:14:13 AM
rwxr-xr-x
π
Kbuild
702 bytes
01/28/2018 09:20:33 PM
rw-r--r--
π
a.out-core.h
695 bytes
01/28/2018 09:20:33 PM
rw-r--r--
π
bugs.h
111 bytes
01/28/2018 09:20:33 PM
rw-r--r--
π
cache.h
483 bytes
01/28/2018 09:20:33 PM
rw-r--r--
π
common.lds.S
1.76 KB
01/28/2018 09:20:33 PM
rw-r--r--
π
dma.h
180 bytes
01/28/2018 09:20:33 PM
rw-r--r--
π
fixmap.h
1.63 KB
01/28/2018 09:20:33 PM
rw-r--r--
π
hardirq.h
558 bytes
01/28/2018 09:20:33 PM
rw-r--r--
π
io.h
339 bytes
01/28/2018 09:20:33 PM
rw-r--r--
π
irq.h
493 bytes
01/28/2018 09:20:33 PM
rw-r--r--
π
irqflags.h
865 bytes
01/28/2018 09:20:33 PM
rw-r--r--
π
kmap_types.h
219 bytes
01/28/2018 09:20:33 PM
rw-r--r--
π
kvm_para.h
34 bytes
01/28/2018 09:20:33 PM
rw-r--r--
π
mmu.h
558 bytes
01/28/2018 09:20:33 PM
rw-r--r--
π
mmu_context.h
1.87 KB
06/16/2023 05:32:39 PM
rw-r--r--
π
page.h
3.15 KB
01/28/2018 09:20:33 PM
rw-r--r--
π
pgalloc.h
1.46 KB
01/28/2018 09:20:33 PM
rw-r--r--
π
pgtable-2level.h
1.32 KB
01/28/2018 09:20:33 PM
rw-r--r--
π
pgtable-3level.h
2.88 KB
01/28/2018 09:20:33 PM
rw-r--r--
π
pgtable.h
9.88 KB
06/16/2023 05:32:39 PM
rw-r--r--
π
processor-generic.h
1.87 KB
01/28/2018 09:20:33 PM
rw-r--r--
π
ptrace-generic.h
1.13 KB
01/28/2018 09:20:33 PM
rw-r--r--
π
sections.h
219 bytes
01/28/2018 09:20:33 PM
rw-r--r--
π
setup.h
273 bytes
01/28/2018 09:20:33 PM
rw-r--r--
π
smp.h
121 bytes
01/28/2018 09:20:33 PM
rw-r--r--
π
stacktrace.h
1.06 KB
01/28/2018 09:20:33 PM
rw-r--r--
π
syscall-generic.h
2.67 KB
01/28/2018 09:20:33 PM
rw-r--r--
π
sysrq.h
182 bytes
01/28/2018 09:20:33 PM
rw-r--r--
π
thread_info.h
2.15 KB
01/28/2018 09:20:33 PM
rw-r--r--
π
timex.h
151 bytes
06/16/2023 05:32:39 PM
rw-r--r--
π
tlb.h
4.23 KB
06/16/2023 05:32:39 PM
rw-r--r--
π
tlbflush.h
978 bytes
01/28/2018 09:20:33 PM
rw-r--r--
π
uaccess.h
1.65 KB
01/28/2018 09:20:33 PM
rw-r--r--
π
unwind.h
213 bytes
01/28/2018 09:20:33 PM
rw-r--r--
Editing: syscall-generic.h
Close
/* * Access to user system call parameters and results * * See asm-generic/syscall.h for function descriptions. * * Copyright (C) 2015 MickaΓ«l SalaΓΌn <mic@digikod.net> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef __UM_SYSCALL_GENERIC_H #define __UM_SYSCALL_GENERIC_H #include <asm/ptrace.h> #include <linux/err.h> #include <linux/sched.h> #include <sysdep/ptrace.h> static inline int syscall_get_nr(struct task_struct *task, struct pt_regs *regs) { return PT_REGS_SYSCALL_NR(regs); } static inline void syscall_rollback(struct task_struct *task, struct pt_regs *regs) { /* do nothing */ } static inline long syscall_get_error(struct task_struct *task, struct pt_regs *regs) { const long error = regs_return_value(regs); return IS_ERR_VALUE(error) ? error : 0; } static inline long syscall_get_return_value(struct task_struct *task, struct pt_regs *regs) { return regs_return_value(regs); } static inline void syscall_set_return_value(struct task_struct *task, struct pt_regs *regs, int error, long val) { PT_REGS_SET_SYSCALL_RETURN(regs, (long) error ?: val); } static inline void syscall_get_arguments(struct task_struct *task, struct pt_regs *regs, unsigned int i, unsigned int n, unsigned long *args) { const struct uml_pt_regs *r = ®s->regs; switch (i) { case 0: if (!n--) break; *args++ = UPT_SYSCALL_ARG1(r); case 1: if (!n--) break; *args++ = UPT_SYSCALL_ARG2(r); case 2: if (!n--) break; *args++ = UPT_SYSCALL_ARG3(r); case 3: if (!n--) break; *args++ = UPT_SYSCALL_ARG4(r); case 4: if (!n--) break; *args++ = UPT_SYSCALL_ARG5(r); case 5: if (!n--) break; *args++ = UPT_SYSCALL_ARG6(r); case 6: if (!n--) break; default: BUG(); break; } } static inline void syscall_set_arguments(struct task_struct *task, struct pt_regs *regs, unsigned int i, unsigned int n, const unsigned long *args) { struct uml_pt_regs *r = ®s->regs; switch (i) { case 0: if (!n--) break; UPT_SYSCALL_ARG1(r) = *args++; case 1: if (!n--) break; UPT_SYSCALL_ARG2(r) = *args++; case 2: if (!n--) break; UPT_SYSCALL_ARG3(r) = *args++; case 3: if (!n--) break; UPT_SYSCALL_ARG4(r) = *args++; case 4: if (!n--) break; UPT_SYSCALL_ARG5(r) = *args++; case 5: if (!n--) break; UPT_SYSCALL_ARG6(r) = *args++; case 6: if (!n--) break; default: BUG(); break; } } /* See arch/x86/um/asm/syscall.h for syscall_get_arch() definition. */ #endif /* __UM_SYSCALL_GENERIC_H */