data_type
large_stringclasses
3 values
source
large_stringclasses
29 values
code
large_stringlengths
98
49.4M
filepath
large_stringlengths
5
161
message
large_stringclasses
234 values
commit
large_stringclasses
234 values
subject
large_stringclasses
418 values
critique
large_stringlengths
101
1.26M
metadata
dict
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * linux/arch/sparc/mm/leon_m.c * * Copyright (C) 2004 Konrad Eisele (eiselekd@web.de, konrad@gaisler.com) Gaisler Research * Copyright (C) 2009 Daniel Hellstrom (daniel@gaisler.com) Aeroflex Gaisler AB * Copyright (C) 2009 Konrad Eisele (konrad@gaisler.com) Aeroflex Gaisler ...
arch/sparc/mm/leon_mm.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* fault_32.c - visible as they are called from assembler */ asmlinkage void do_sparc_fault(struct pt_regs *regs, int text_fault, int write, unsigned long address); void window_overflow_fault(void); void window_underflow_fault(unsigned long sp); voi...
arch/sparc/mm/mm_32.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * srmmu.c: SRMMU specific routines for memory management. * * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) * Copyright (C) 1995,2002 Pete Zaitcev (zaitcev@yahoo.com) * Copyright (C) 1996 Eddie C. Dost (ecd@skynet.be) * Copyright (C) 1997,1998 Jakub Jeline...
arch/sparc/mm/srmmu.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* Assembler variants of srmmu access functions. * Implemented in assembler to allow run-time patching. * LEON uses a different ASI for MMUREGS than SUN. * * The leon_1insn_patch infrastructure is used * for the run-time patching. */ #include <linux/linkage.h> #include <as...
arch/sparc/mm/srmmu_access.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * swift.S: MicroSparc-II mmu/cache operations. * * Copyright (C) 1999 David S. Miller (davem@redhat.com) */ #include <asm/psr.h> #include <asm/asi.h> #include <asm/page.h> #include <asm/pgtsrmmu.h> #include <asm/asm-offsets.h> .text .align 4 #if 1 /* XXX screw this, I ...
arch/sparc/mm/swift.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* arch/sparc64/mm/tlb.c * * Copyright (C) 2004 David S. Miller <davem@redhat.com> */ #include <linux/kernel.h> #include <linux/percpu.h> #include <linux/mm.h> #include <linux/swap.h> #include <linux/preempt.h> #include <linux/pagemap.h> #include <kunit/visibility.h> #include <...
arch/sparc/mm/tlb.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* arch/sparc64/mm/tsb.c * * Copyright (C) 2006, 2008 David S. Miller <davem@davemloft.net> */ #include <linux/kernel.h> #include <linux/preempt.h> #include <linux/slab.h> #include <linux/mm_types.h> #include <linux/pgtable.h> #include <asm/page.h> #include <asm/mmu_context.h> #...
arch/sparc/mm/tsb.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * tsunami.S: High speed MicroSparc-I mmu/cache operations. * * Copyright (C) 1997 David S. Miller (davem@caip.rutgers.edu) */ #include <asm/ptrace.h> #include <asm/asm-offsets.h> #include <asm/psr.h> #include <asm/asi.h> #include <asm/page.h> #include <asm/pgtsrmmu.h> .t...
arch/sparc/mm/tsunami.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * ultra.S: Don't expand these all over the place... * * Copyright (C) 1997, 2000, 2008 David S. Miller (davem@davemloft.net) */ #include <linux/pgtable.h> #include <asm/asi.h> #include <asm/page.h> #include <asm/spitfire.h> #include <asm/mmu_context.h> #include <asm/mmu.h>...
arch/sparc/mm/ultra.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * viking.S: High speed Viking cache/mmu operations * * Copyright (C) 1997 Eddie C. Dost (ecd@skynet.be) * Copyright (C) 1997,1998,1999 Jakub Jelinek (jj@ultra.linux.cz) * Copyright (C) 1999 Pavel Semerad (semerad@ss1000.ms.mff.cuni.cz) */ #include <asm/ptrace.h> #i...
arch/sparc/mm/viking.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _BPF_JIT_H #define _BPF_JIT_H /* Conventions: * %g1 : temporary * %g2 : Secondary temporary used by SKB data helper stubs. * %g3 : packet offset passed into SKB data helper stubs. * %o0 : pointer to skb (first argument given to JIT function) * %o1 : BPF A accumu...
arch/sparc/net/bpf_jit_32.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _BPF_JIT_H #define _BPF_JIT_H #ifndef __ASSEMBLER__ #define G0 0x00 #define G1 0x01 #define G2 0x02 #define G3 0x03 #define G6 0x06 #define G7 0x07 #define O0 0x08 #define O1 0x09 #define O2 0x0a #define O3 0x0b #define O4 0x0c #define O5 0x0d #define SP 0x0e...
arch/sparc/net/bpf_jit_64.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <asm/ptrace.h> #include "bpf_jit_32.h" #define SAVE_SZ 96 #define SCRATCH_OFF 72 #define BE_PTR(label) be label #define SIGN_EXTEND(reg) #define SKF_MAX_NEG_OFF (-0x200000) /* SKF_LL_OFF from filter.h */ .text .globl bpf_jit_load_word bpf_jit_load_word: cmp r_OFF,...
arch/sparc/net/bpf_jit_asm_32.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/workqueue.h> #include <linux/netdevice.h> #include <linux/filter.h> #include <linux/cache.h> #include <linux/if_vlan.h> #include <linux/execmem.h> #include <asm/cacheflush.h> #include <asm/ptrace.h> #include "bpf_jit_32.h" static inline bool is_simm13(unsigned int ...
arch/sparc/net/bpf_jit_comp_32.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/moduleloader.h> #include <linux/workqueue.h> #include <linux/netdevice.h> #include <linux/filter.h> #include <linux/bpf.h> #include <linux/cache.h> #include <linux/if_vlan.h> #include <asm/cacheflush.h> #include <asm/ptrace.h> #include "bpf_jit_64.h" static inline ...
arch/sparc/net/bpf_jit_comp_64.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * hibernate.c: Hibernaton support specific for sparc64. * * Copyright (C) 2013 Kirill V Tkhai (tkhai@yandex.ru) */ #include <linux/suspend.h> #include <linux/mm.h> #include <asm/hibernate.h> #include <asm/visasm.h> #include <asm/page.h> #include <asm/sections.h> #include <a...
arch/sparc/power/hibernate.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * hibernate_asm.S: Hibernaton support specific for sparc64. * * Copyright (C) 2013 Kirill V Tkhai (tkhai@yandex.ru) */ #include <linux/linkage.h> #include <asm/asm-offsets.h> #include <asm/cpudata.h> #include <asm/page.h> ENTRY(swsusp_arch_suspend) save %sp, -128, %sp ...
arch/sparc/power/hibernate_asm.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * bootstr.c: Boot string/argument acquisition from the PROM. * * Copyright(C) 1995 David S. Miller (davem@caip.rutgers.edu) */ #include <linux/string.h> #include <asm/oplib.h> #include <linux/init.h> #define BARG_LEN 256 static char barg_buf[BARG_LEN] = { 0 }; static char ...
arch/sparc/prom/bootstr_32.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * bootstr.c: Boot string/argument acquisition from the PROM. * * Copyright(C) 1995 David S. Miller (davem@caip.rutgers.edu) * Copyright(C) 1996,1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz) */ #include <linux/string.h> #include <linux/init.h> #include <asm/oplib.h> /* WARNIN...
arch/sparc/prom/bootstr_64.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* cif.S: PROM entry/exit assembler trampolines. * * Copyright (C) 1996, 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz) * Copyright (C) 2005, 2006 David S. Miller <davem@davemloft.net> */ #include <asm/pstate.h> #include <asm/cpudata.h> #include <asm/thread_info.h> .text .glo...
arch/sparc/prom/cif.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * console.c: Routines that deal with sending and receiving IO * to/from the current console device using the PROM. * * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) * Copyright (C) 1998 Pete Zaitcev <zaitcev@yahoo.com> */ #include <linux/types.h> #i...
arch/sparc/prom/console_32.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* console.c: Routines that deal with sending and receiving IO * to/from the current console device using the PROM. * * Copyright (C) 1995 David S. Miller (davem@davemloft.net) * Copyright (C) 1996,1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz) */ #include <linux/types....
arch/sparc/prom/console_64.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * init.c: Initialize internal variables used by the PROM * library functions. * * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) * Copyright (C) 1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz) */ #include <linux/kernel.h> #include <linux/init.h> #include ...
arch/sparc/prom/init_32.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * init.c: Initialize internal variables used by the PROM * library functions. * * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) * Copyright (C) 1996,1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz) */ #include <linux/kernel.h> #include <linux/init.h> #inc...
arch/sparc/prom/init_64.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* memory.c: Prom routine for acquiring various bits of information * about RAM on the machine, both virtual and physical. * * Copyright (C) 1995, 2008 David S. Miller (davem@davemloft.net) * Copyright (C) 1997 Michael A. Griffith (grif@acm.org) */ #include <linux/ker...
arch/sparc/prom/memory.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * misc.c: Miscellaneous prom functions that don't belong * anywhere else. * * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) */ #include <linux/types.h> #include <linux/kernel.h> #include <linux/sched.h> #include <linux/module.h> #include <asm/openpro...
arch/sparc/prom/misc_32.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * misc.c: Miscellaneous prom functions that don't belong * anywhere else. * * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) * Copyright (C) 1996,1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz) */ #include <linux/types.h> #include <linux/kernel.h> #includ...
arch/sparc/prom/misc_64.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * mp.c: OpenBoot Prom Multiprocessor support routines. Don't call * these on a UP or else you will halt and catch fire. ;) * * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) */ #include <linux/types.h> #include <linux/kernel.h> #include <linux/sched.h> ...
arch/sparc/prom/mp.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * p1275.c: Sun IEEE 1275 PROM low level interface routines * * Copyright (C) 1996,1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz) */ #include <linux/kernel.h> #include <linux/sched.h> #include <linux/smp.h> #include <linux/string.h> #include <linux/spinlock.h> #include <linux/irq...
arch/sparc/prom/p1275.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * printf.c: Internal prom library printf facility. * * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) * Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz) * Copyright (c) 2002 Pete Zaitcev (zaitcev@yahoo.com) * * We used to warn all over the code: DO NO...
arch/sparc/prom/printf.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * ranges.c: Handle ranges in newer proms for obio/sbus. * * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) * Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz) */ #include <linux/init.h> #include <linux/module.h> #include <asm/openprom.h> #include <asm/o...
arch/sparc/prom/ranges.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * tree.c: Basic device tree traversal/scanning for the Linux * prom library. * * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) */ #include <linux/string.h> #include <linux/types.h> #include <linux/kernel.h> #include <linux/sched.h> #include <linux/ctype...
arch/sparc/prom/tree_32.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * tree.c: Basic device tree traversal/scanning for the Linux * prom library. * * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu) * Copyright (C) 1996,1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz) */ #include <linux/string.h> #include <linux/types.h> #inclu...
arch/sparc/prom/tree_64.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright 2006 Andi Kleen, SUSE Labs. * * Fast user context implementation of clock_gettime, gettimeofday, and time. * * The code should have no internal unresolved relocations. * Check with readelf after changing. * Also alternative() doesn't work. */ /* * Copyrig...
arch/sparc/vdso/vclock_gettime.c
null
null
null
null
null
source
linux
/* * Linker script for vDSO. This is an ELF shared object prelinked to * its virtual address, and with only one read-only segment. * This script controls its layout. */ #if defined(BUILD_VDSO64) # define SHDR_SIZE 64 #elif defined(BUILD_VDSO32) # define SHDR_SIZE 40 #else # error unknown VDSO target #endif #defi...
arch/sparc/vdso/vdso-layout.lds.S
null
null
null
null
null
source
linux
/* * This supplies .note.* sections to go into the PT_NOTE inside the vDSO text. * Here we can supply some information useful to userland. */ #include <linux/uts.h> #include <linux/version.h> #include <linux/elfnote.h> ELFNOTE_START(Linux, 0, "a") .long LINUX_VERSION_CODE ELFNOTE_END
arch/sparc/vdso/vdso-note.S
null
null
null
null
null
source
linux
/* * Linker script for 64-bit vDSO. * We #include the file to define the layout details. * * This file defines the version script giving the user-exported symbols in * the DSO. */ #define BUILD_VDSO64 #include "vdso-layout.lds.S" /* * This controls what userland symbols we export from the vDSO. */ VERSION { ...
arch/sparc/vdso/vdso.lds.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * vdso2c - A vdso image preparation tool * Copyright (c) 2014 Andy Lutomirski and others * * vdso2c requires stripped and unstripped input. It would be trivial * to fully strip the input in here, but, for reasons described below, * we need to write a section table. Do...
arch/sparc/vdso/vdso2c.c
null
null
null
null
null
source
linux
/* * Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved. */ /* * This file is included up to twice from vdso2c.c. It generates code for * 32-bit and 64-bit vDSOs. We will eventually need both for 64-bit builds, * since 32-bit vDSOs will then be built for 32-bit userspace. */ static void BITS...
arch/sparc/vdso/vdso2c.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Set up the VMAs to tell the VM about the vDSO. * Copyright 2007 Andi Kleen, SUSE Labs. */ /* * Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved. */ #include <linux/mm.h> #include <linux/err.h> #include <linux/sched.h> #include <linux/slab.h> #incl...
arch/sparc/vdso/vma.c
null
null
null
null
null
source
linux
/* * Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved. */ #define BUILD_VDSO32 #ifdef CONFIG_SPARC64 /* * in case of a 32 bit VDSO for a 64 bit kernel fake a 32 bit kernel * configuration */ #undef CONFIG_64BIT #undef CONFIG_SPARC64 #define BUILD_VDSO32_64 #define CONFIG_32BIT #undef CONFIG_...
arch/sparc/vdso/vdso32/vclock_gettime.c
null
null
null
null
null
source
linux
/* * This supplies .note.* sections to go into the PT_NOTE inside the vDSO * text. Here we can supply some information useful to userland. */ #include <linux/uts.h> #include <linux/version.h> #include <linux/elfnote.h> ELFNOTE_START(Linux, 0, "a") .long LINUX_VERSION_CODE ELFNOTE_END
arch/sparc/vdso/vdso32/vdso-note.S
null
null
null
null
null
source
linux
/* * Linker script for sparc32 vDSO * We #include the file to define the layout details. * * This file defines the version script giving the user-exported symbols in * the DSO. */ #define BUILD_VDSO32 #include "../vdso-layout.lds.S" /* * This controls what userland symbols we export from the vDSO. */ VERSION ...
arch/sparc/vdso/vdso32/vdso32.lds.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/console.h> #include <linux/device.h> #include <linux/module.h> #include <asm/prom.h> #include <asm/video.h> bool video_is_primary_device(struct device *dev) { struct device_node *node = dev->of_node; if (console_set_on_cmdline) return false; if (node && node...
arch/sparc/video/video-common.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2000, 2001 Jeff Dike (jdike@karaya.com) */ #ifndef __CHAN_KERN_H__ #define __CHAN_KERN_H__ #include <linux/tty.h> #include <linux/list.h> #include <linux/console.h> #include "chan_user.h" #include "line.h" struct chan { struct list_head list; struct list...
arch/um/drivers/chan.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{linux.intel,addtoit}.com) */ #include <linux/slab.h> #include <linux/tty.h> #include <linux/tty_flip.h> #include "chan.h" #include <os.h> #include <irq_kern.h> #ifdef CONFIG_NOCONFIG_CHAN static void *not_configged_init(char *str, ...
arch/um/drivers/chan_kern.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{linux.intel,addtoit}.com) */ #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <sched.h> #include <signal.h> #include <termios.h> #include <sys/ioctl.h> #include "chan_user.h" #include <os.h> #include <um_malloc.h>...
arch/um/drivers/chan_user.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2000, 2001 Jeff Dike (jdike@karaya.com) */ #ifndef __CHAN_USER_H__ #define __CHAN_USER_H__ #include <init.h> #include <linux/types.h> struct chan_opts { void (*const announce)(char *dev_name, int dev); char *xterm_title; int raw; }; struct chan_ops { c...
arch/um/drivers/chan_user.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __COW_H__ #define __COW_H__ #include <asm/types.h> extern int init_cow_file(int fd, char *cow_file, char *backing_file, int sectorsize, int alignment, int *bitmap_offset_out, unsigned long *bitmap_len_out, int *data_offset_out); extern int file_reader(__u64 offs...
arch/um/drivers/cow.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __COW_SYS_H__ #define __COW_SYS_H__ #include <kern_util.h> #include <os.h> #include <um_malloc.h> static inline void *cow_malloc(int size) { return uml_kmalloc(size, UM_GFP_KERNEL); } static inline void cow_free(void *ptr) { kfree(ptr); } #define cow_printf printk s...
arch/um/drivers/cow_sys.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2007 Jeff Dike (jdike@{linux.intel,addtoit}.com) */ /* * _XOPEN_SOURCE is needed for pread, but we define _GNU_SOURCE, which defines * that. */ #include <unistd.h> #include <errno.h> #include <string.h> #include <arpa/inet.h> #include <endian.h> #include "cow...
arch/um/drivers/cow_user.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{linux.intel,addtoit}.com) */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <termios.h> #include "chan_user.h" #include <os.h> #include <um_malloc.h> struct fd_chan { int fd; int raw; stru...
arch/um/drivers/fd.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef UM_WATCHDOG_H #define UM_WATCHDOG_H int start_watchdog(int *in_fd_ret, int *out_fd_ret, char *sock); void stop_watchdog(int in_fd, int out_fd); int ping_watchdog(int fd); #endif /* UM_WATCHDOG_H */
arch/um/drivers/harddog.h
null
null
null
null
null
source
linux
/* UML hardware watchdog, shamelessly stolen from: * * SoftDog 0.05: A Software Watchdog Device * * (c) Copyright 1996 Alan Cox <alan@redhat.com>, All Rights Reserved. * http://www.redhat.com * * as published by the Free Software Foundation; either version * * Neither Alan Cox nor CymruNet Ltd. admit liabil...
arch/um/drivers/harddog_kern.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) */ #include <stdio.h> #include <unistd.h> #include <errno.h> #include <os.h> #include "harddog.h" struct dog_data { int stdin_fd; int stdout_fd; int close_me[2]; }; static void pre_exec(void *d) { str...
arch/um/drivers/harddog_user.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/export.h> #include "harddog.h" #if IS_MODULE(CONFIG_UML_WATCHDOG) EXPORT_SYMBOL(start_watchdog); EXPORT_SYMBOL(stop_watchdog); EXPORT_SYMBOL(ping_watchdog); #endif
arch/um/drivers/harddog_user_exp.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2002 Steve Schmidtke */ #include <linux/fs.h> #include <linux/module.h> #include <linux/slab.h> #include <linux/sound.h> #include <linux/soundcard.h> #include <linux/mutex.h> #include <linux/uaccess.h> #include <init.h> #include <os.h> struct hostaudio_state { ...
arch/um/drivers/hostaudio_kern.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) */ #include <linux/irqreturn.h> #include <linux/kd.h> #include <linux/sched/signal.h> #include <linux/slab.h> #include "chan.h" #include <irq_kern.h> #include <irq_user.h> #include <kern_util.h> #include <...
arch/um/drivers/line.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2001, 2002 Jeff Dike (jdike@karaya.com) */ #ifndef __LINE_H__ #define __LINE_H__ #include <linux/list.h> #include <linux/workqueue.h> #include <linux/tty.h> #include <linux/interrupt.h> #include <linux/spinlock.h> #include <linux/mutex.h> #include "chan_use...
arch/um/drivers/line.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2001 Lennert Buytenhek (buytenh@gnu.org) * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) */ #ifndef __MCONSOLE_H__ #define __MCONSOLE_H__ #ifdef __UM_HOST__ #include <stdint.h> #define u32 uint32_t #endif #include <sysdep/ptrace.h> ...
arch/um/drivers/mconsole.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2001 Lennert Buytenhek (buytenh@gnu.org) * Copyright (C) 2001 - 2008 Jeff Dike (jdike@{addtoit,linux.intel}.com) */ #include <linux/console.h> #include <linux/ctype.h> #include <linux/string.h> #include <linux/interrupt.h> #include <linux/list.h> #include <linu...
arch/um/drivers/mconsole_kern.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2001, 2002 Jeff Dike (jdike@karaya.com) */ #ifndef __MCONSOLE_KERN_H__ #define __MCONSOLE_KERN_H__ #include <linux/list.h> #include "mconsole.h" struct mconsole_entry { struct list_head list; struct mc_request request; }; /* All these methods are called ...
arch/um/drivers/mconsole_kern.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2001 Lennert Buytenhek (buytenh@gnu.org) * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) */ #include <errno.h> #include <string.h> #include <unistd.h> #include <sys/socket.h> #include <sys/uio.h> #include <sys/un.h> #include "mconsole.h"...
arch/um/drivers/mconsole_user.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{linux.intel,addtoit}.com) */ #include <stddef.h> #include <errno.h> #include <fcntl.h> #include "chan_user.h" #include <os.h> /* This address is used only as a unique identifier */ static int null_chan; static void *null_init(char...
arch/um/drivers/null.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2001 Jeff Dike (jdike@karaya.com) */ #ifndef __PORT_H__ #define __PORT_H__ extern void *port_data(int port); extern int port_wait(void *data); extern void port_kern_close(void *d); extern int port_connection(int fd, int *socket_out, int *pid_out); extern in...
arch/um/drivers/port.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{linux.intel,addtoit}.com) */ #include <linux/completion.h> #include <linux/interrupt.h> #include <linux/list.h> #include <linux/mutex.h> #include <linux/slab.h> #include <linux/workqueue.h> #include <asm/atomic.h> #include <init.h> ...
arch/um/drivers/port_kern.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{linux.intel,addtoit}.com) */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <termios.h> #include <unistd.h> #include <netinet/in.h> #include "chan_user.h" #include <os.h> #include "port.h" #in...
arch/um/drivers/port_user.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <fcntl.h> #include <string.h> #include <termios.h> #include <sys/stat.h> #include "chan_user.h" #include <os.h> #inc...
arch/um/drivers/pty.c
null
null
null
null
null
source
linux
/* Copyright (C) 2005 - 2008 Jeff Dike <jdike@{linux.intel,addtoit}.com> */ /* Much of this ripped from drivers/char/hw_random.c, see there for other * copyright. * * This software may be used and distributed according to the terms */ #include <linux/sched/signal.h> #include <linux/module.h> #include <linux/fs.h> ...
arch/um/drivers/random.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020 Intel Corporation * Author: Johannes Berg <johannes@sipsolutions.net> */ #ifndef __UM_RTC_H__ #define __UM_RTC_H__ int uml_rtc_start(bool timetravel); int uml_rtc_enable_alarm(unsigned long long delta_seconds); void uml_rtc_disable_alarm(void); void uml...
arch/um/drivers/rtc.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2020 Intel Corporation * Author: Johannes Berg <johannes@sipsolutions.net> */ #include <linux/platform_device.h> #include <linux/time-internal.h> #include <linux/suspend.h> #include <linux/err.h> #include <linux/rtc.h> #include <kern_util.h> #include <irq_kern.h...
arch/um/drivers/rtc_kern.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2020 Intel Corporation * Author: Johannes Berg <johannes@sipsolutions.net> */ #include <stdbool.h> #include <os.h> #include <errno.h> #include <sched.h> #include <unistd.h> #include <kern_util.h> #include <sys/select.h> #include <stdio.h> #include <sys/timerfd.h...
arch/um/drivers/rtc_user.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2000, 2002 Jeff Dike (jdike@karaya.com) */ #include <linux/fs.h> #include <linux/tty.h> #include <linux/tty_driver.h> #include <linux/major.h> #include <linux/mm.h> #include <linux/init.h> #include <linux/console.h> #include <asm/termbits.h> #include <asm/irq.h...
arch/um/drivers/ssl.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/kernel.h> #include <linux/init.h> #include <linux/console.h> #include "chan_user.h" /* ----------------------------------------------------------------------------- */ /* trivial console driver -- simply dump everything to stderr */ /* * Don't r...
arch/um/drivers/stderr_console.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2000, 2001 Jeff Dike (jdike@karaya.com) */ #include <linux/posix_types.h> #include <linux/tty.h> #include <linux/tty_flip.h> #include <linux/types.h> #include <linux/major.h> #include <linux/kdev_t.h> #include <linux/console.h> #include <linux/string.h> #includ...
arch/um/drivers/stdio_console.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2000 Jeff Dike (jdike@karaya.com) */ #ifndef __STDIO_CONSOLE_H #define __STDIO_CONSOLE_H extern void save_console_flags(void); #endif
arch/um/drivers/stdio_console.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{linux.intel,addtoit}.com) */ #include <errno.h> #include <fcntl.h> #include <termios.h> #include "chan_user.h" #include <os.h> #include <um_malloc.h> struct tty_chan { char *dev; int raw; struct termios tt; }; static void *tty_...
arch/um/drivers/tty.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2000 Jeff Dike (jdike@karaya.com) * Copyright (C) 2001 RidgeRun, Inc (glonnon@ridgerun.com) */ #ifndef __UM_UBD_USER_H #define __UM_UBD_USER_H #include <os.h> int start_io_thread(struct os_helper_thread **td_out, int *fd_out); void *io_thread(void *arg); ...
arch/um/drivers/ubd.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2018 Cambridge Greys Ltd * Copyright (C) 2015-2016 Anton Ivanov (aivanov@brocade.com) * Copyright (C) 2000 Jeff Dike (jdike@karaya.com) */ /* 2001-09-28...2002-04-17 * Partition stuff by James_McMechan@hotmail.com * old style ubd by setting UBD_SHIFT to 0 *...
arch/um/drivers/ubd_kern.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2016 Anton Ivanov (aivanov@brocade.com) * Copyright (C) 2000, 2001, 2002 Jeff Dike (jdike@karaya.com) * Copyright (C) 2001 Ridgerun,Inc (glonnon@ridgerun.com) */ #include <stddef.h> #include <unistd.h> #include <errno.h> #include <sched.h> #include <signal.h> ...
arch/um/drivers/ubd_user.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2017 - 2019 Cambridge Greys Limited * Copyright (C) 2011 - 2014 Cisco Systems Inc * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) * Copyright (C) 2001 Lennert Buytenhek (buytenh@gnu.org) and * James Leu (jleu@mindspring.net). * Copyrig...
arch/um/drivers/vector_kern.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2002 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) */ #ifndef __UM_VECTOR_KERN_H #define __UM_VECTOR_KERN_H #include <linux/netdevice.h> #include <linux/platform_device.h> #include <linux/skbuff.h> #include <linux/socket.h> #include <linux/list.h> #includ...
arch/um/drivers/vector_kern.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2017 - Cambridge Greys Limited * Copyright (C) 2011 - 2014 Cisco Systems Inc */ #include <linux/etherdevice.h> #include <linux/netdevice.h> #include <linux/skbuff.h> #include <linux/slab.h> #include <asm/byteorder.h> #include <uapi/linux/ip.h> #include <uapi/li...
arch/um/drivers/vector_transports.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) */ #include <stdbool.h> #include <stdio.h> #include <unistd.h> #include <stdarg.h> #include <errno.h> #include <stddef.h> #include <string.h> #include <sys/ioctl.h> #include <net/if.h> #include <linux/if_tu...
arch/um/drivers/vector_user.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2002 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) */ #ifndef __UM_VECTOR_USER_H #define __UM_VECTOR_USER_H #define MAXVARGS 20 #define TOKEN_IFNAME "ifname" #define TRANS_RAW "raw" #define TRANS_RAW_LEN strlen(TRANS_RAW) #define TRANS_TAP "tap" #defin...
arch/um/drivers/vector_user.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2025 Ant Group * Author: Tiwei Bie <tiwei.btw@antgroup.com> */ #define pr_fmt(fmt) "vfio-uml: " fmt #include <linux/module.h> #include <linux/logic_iomem.h> #include <linux/mutex.h> #include <linux/list.h> #include <linux/string.h> #include <linux/unaligned.h>...
arch/um/drivers/vfio_kern.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2025 Ant Group * Author: Tiwei Bie <tiwei.btw@antgroup.com> */ #include <errno.h> #include <fcntl.h> #include <unistd.h> #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <sys/ioctl.h> #include <sys/eventfd.h> #include <linu...
arch/um/drivers/vfio_user.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __UM_VFIO_USER_H #define __UM_VFIO_USER_H struct uml_vfio_user_device { int device; struct { uint64_t size; uint64_t offset; } *region; int num_regions; int32_t *irqfd; int irq_count; }; int uml_vfio_user_open_container(void); int uml_vfio_user_setup_iommu(in...
arch/um/drivers/vfio_user.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* Vhost-user protocol */ #ifndef __VHOST_USER_H__ #define __VHOST_USER_H__ /* Message flags */ #define VHOST_USER_FLAG_REPLY BIT(2) #define VHOST_USER_FLAG_NEED_REPLY BIT(3) /* Feature bits */ #define VHOST_USER_F_PROTOCOL_FEATURES 30 /* Protocol feature bits */ #define ...
arch/um/drivers/vhost_user.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2020 Intel Corporation * Author: Johannes Berg <johannes@sipsolutions.net> */ #include <linux/module.h> #include <linux/pci.h> #include <linux/logic_iomem.h> #include <linux/of_platform.h> #include <linux/irqchip/irq-msi-lib.h> #include <linux/irqdomain.h> #incl...
arch/um/drivers/virt-pci.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __UM_VIRT_PCI_H #define __UM_VIRT_PCI_H #include <linux/pci.h> struct um_pci_device { const struct um_pci_ops *ops; /* for now just standard BARs */ u8 resptr[PCI_STD_NUM_BARS]; int irq; }; struct um_pci_ops { unsigned long (*cfgspace_read)(struct um_pci_device *...
arch/um/drivers/virt-pci.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2020 Intel Corporation * Author: Johannes Berg <johannes@sipsolutions.net> */ #include <linux/module.h> #include <linux/pci.h> #include <linux/virtio.h> #include <linux/virtio_config.h> #include <linux/logic_iomem.h> #include <linux/of_platform.h> #include <linu...
arch/um/drivers/virtio_pcidev.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Virtio vhost-user driver * * Copyright(c) 2019 Intel Corporation * * This driver allows virtio devices to be used over a vhost-user socket. * * Guest devices can be instantiated by kernel module or command line * parameters. One device will be created for each p...
arch/um/drivers/virtio_uml.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) */ #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <termios.h> #include "chan_user.h" #include <os.h> #include <um_malloc.h> #i...
arch/um/drivers/xterm.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2002 Jeff Dike (jdike@karaya.com) */ #ifndef __XTERM_H__ #define __XTERM_H__ extern int xterm_fd(int socket, int *pid_out); #endif
arch/um/drivers/xterm.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) */ #include <linux/slab.h> #include <linux/completion.h> #include <linux/irqreturn.h> #include <asm/irq.h> #include <irq_kern.h> #include <os.h> #include "xterm.h" struct xterm_wait { struct completion r...
arch/um/drivers/xterm_kern.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_UM_ARCHRANDOM_H__ #define __ASM_UM_ARCHRANDOM_H__ #include <linux/types.h> /* This is from <os.h>, but better not to #include that in a global header here. */ ssize_t os_getrandom(void *buf, size_t len, unsigned int flags); static inline size_t __must_check arch_g...
arch/um/include/asm/archrandom.h
null
null
null
null
null
source
linux
#include <asm-generic/asm-prototypes.h> #include <asm/checksum.h> #ifdef CONFIG_UML_X86 extern void cmpxchg8b_emu(void); #endif
arch/um/include/asm/asm-prototypes.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * asm-generic/bpf_perf_event.h is part of the uapi headers, but since * arch/um has no uapi of its on, we can't use the "generic-y" * Kbuild rule to generate the wrapper */ #include <asm-generic/bpf_perf_event.h>
arch/um/include/asm/bpf_perf_event.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __UM_CACHE_H #define __UM_CACHE_H #if defined(CONFIG_UML_X86) && !defined(CONFIG_64BIT) # define L1_CACHE_SHIFT (CONFIG_X86_L1_CACHE_SHIFT) #elif defined(CONFIG_UML_X86) /* 64-bit */ # define L1_CACHE_SHIFT 6 /* Should be 7 on Intel */ #else /* XXX: this was taken from...
arch/um/include/asm/cache.h
null
null
null
null
null