/* * arch/xtensa/kernel/syscall.c * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2001 - 2005 Tensilica Inc. * Copyright (C) 2000 Silicon Graphics, Inc. * Copyright (C) 1995 - 2000 by Ralf Baechle * * Joe Taylor <joe@tensilica.com, joetylr@yahoo.com> * Marc Gauthier <marc@tensilica.com, marc@alumni.uwaterloo.ca> * Chris Zankel <chris@zankel.net> * Kevin Chea *
*/ #include <linux/uaccess.h> #include <asm/syscall.h> #include <linux/linkage.h> #include <linux/stringify.h> #include <linux/errno.h> #include <linux/syscalls.h> #include <linux/file.h> #include <linux/fs.h> #include <linux/mman.h> #include <linux/sched/mm.h> #include <linux/shm.h>
if (flags & MAP_FIXED) { /* We do not accept a shared mapping if it would violate * cache aliasing constraints.
*/ if ((flags & MAP_SHARED) &&
((addr - (pgoff << PAGE_SHIFT)) & (SHMLBA - 1))) return -EINVAL; return addr;
}
if (len > TASK_SIZE) return -ENOMEM; if (!addr)
addr = TASK_UNMAPPED_BASE;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.