1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2020 Collabora Ltd.
5 #ifndef _SYSCALL_USER_DISPATCH_H
6 #define _SYSCALL_USER_DISPATCH_H
8 #include <linux/thread_info.h>
10 #ifdef CONFIG_GENERIC_ENTRY
12 struct syscall_user_dispatch {
13 char __user *selector;
19 int set_syscall_user_dispatch(unsigned long mode, unsigned long offset,
20 unsigned long len, char __user *selector);
22 #define clear_syscall_work_syscall_user_dispatch(tsk) \
23 clear_task_syscall_work(tsk, SYSCALL_USER_DISPATCH)
26 struct syscall_user_dispatch {};
28 static inline int set_syscall_user_dispatch(unsigned long mode, unsigned long offset,
29 unsigned long len, char __user *selector)
34 static inline void clear_syscall_work_syscall_user_dispatch(struct task_struct *tsk)
38 #endif /* CONFIG_GENERIC_ENTRY */
40 #endif /* _SYSCALL_USER_DISPATCH_H */