xref: /linux/arch/um/include/shared/skas/mm_id.h (revision 399ead3a6d76cbdd29a716660db5c84a314dab70)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (C) 2005 Jeff Dike (jdike@karaya.com)
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 void enter_turnstile(struct mm_id *mm_id) __acquires(turnstile);
25 void exit_turnstile(struct mm_id *mm_id) __releases(turnstile);
26 
27 void notify_mm_kill(int pid);
28 
29 #endif
30