Debian Codegraph @

arch/um/include/shared/skas/mm_id.h

raw
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (C) 2005 Jeff Dike ([email protected])
4 */
5
6 #ifndef __MM_ID_H
7 #define __MM_ID_H
8
9 #include <linux/compiler_types.h>
10
11 #define STUB_MAX_FDS 4
12
13 struct mm_id {
14 int pid;
15 unsigned long stack;
16 int syscall_data_len;
17
18 /* Only used with SECCOMP mode */
19 int sock;
20 int syscall_fd_num;
21 int syscall_fd_map[STUB_MAX_FDS];
22 };
23
24 struct mutex *__get_turnstile(struct mm_id *mm_id);
25 void enter_turnstile(struct mm_id *mm_id) __acquires(__get_turnstile(mm_id));
26 void exit_turnstile(struct mm_id *mm_id) __releases(__get_turnstile(mm_id));
27
28 void notify_mm_kill(int pid);
29
30 #endif