mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-18 07:44:20 +00:00
As running the syscalls is expensive due to context switches, we should do so as late as possible in case more syscalls need to be queued later on. This will also benefit a later move to a SECCOMP enabled userspace as in that case the need for extra context switches is removed entirely. Signed-off-by: Benjamin Berg <benjamin@sipsolutions.net> Link: https://patch.msgid.link/20240703134536.1161108-9-benjamin@sipsolutions.net Signed-off-by: Johannes Berg <johannes.berg@intel.com>
21 lines
286 B
C
21 lines
286 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2005 Jeff Dike (jdike@karaya.com)
|
|
*/
|
|
|
|
#ifndef __MM_ID_H
|
|
#define __MM_ID_H
|
|
|
|
struct mm_id {
|
|
union {
|
|
int mm_fd;
|
|
int pid;
|
|
} u;
|
|
unsigned long stack;
|
|
int syscall_data_len;
|
|
};
|
|
|
|
void __switch_mm(struct mm_id *mm_idp);
|
|
|
|
#endif
|