~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/asm-generic/syscall.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/asm-generic/syscall.h (Version linux-6.12-rc7) and /include/asm-m68k/syscall.h (Version linux-6.6.58)


** Warning: Cannot open xref database.

  1 /* SPDX-License-Identifier: GPL-2.0-only */         1 
  2 /*                                                
  3  * Access to user system call parameters and r    
  4  *                                                
  5  * Copyright (C) 2008-2009 Red Hat, Inc.  All     
  6  *                                                
  7  * This file is a stub providing documentation    
  8  * asm-ARCH/syscall.h files need to define.  M    
  9  * will be simple inlines.                        
 10  *                                                
 11  * All of these functions expect to be called     
 12  * and only when the caller is sure that the t    
 13  * cannot return to user mode while we are loo    
 14  */                                               
 15                                                   
 16 #ifndef _ASM_SYSCALL_H                            
 17 #define _ASM_SYSCALL_H  1                         
 18                                                   
 19 struct task_struct;                               
 20 struct pt_regs;                                   
 21                                                   
 22 /**                                               
 23  * syscall_get_nr - find what system call a ta    
 24  * @task:       task of interest, must be bloc    
 25  * @regs:       task_pt_regs() of @task           
 26  *                                                
 27  * If @task is executing a system call or is a    
 28  * tracing about to attempt one, returns the s    
 29  * If @task is not executing a system call, i.    
 30  * inside the kernel for a fault or signal, re    
 31  *                                                
 32  * Note this returns int even on 64-bit machin    
 33  * system call number can be meaningful.  If t    
 34  * is 64 bits, this truncates to 32 bits so 0x    
 35  *                                                
 36  * It's only valid to call this when @task is     
 37  */                                               
 38 int syscall_get_nr(struct task_struct *task, s    
 39                                                   
 40 /**                                               
 41  * syscall_rollback - roll back registers afte    
 42  * @task:       task of interest, must be in s    
 43  * @regs:       task_pt_regs() of @task           
 44  *                                                
 45  * It's only valid to call this when @task is     
 46  * call exit tracing (due to %SYSCALL_WORK_SYS    
 47  * %SYSCALL_WORK_SYSCALL_AUDIT), after ptrace_    
 48  * returned nonzero to prevent the system call    
 49  *                                                
 50  * This rolls back the register state in @regs    
 51  * system call instruction was a no-op.  The r    
 52  * the system call number and arguments are as    
 53  * system call instruction.  This may not be t    
 54  * register state looked like at system call e    
 55  */                                               
 56 void syscall_rollback(struct task_struct *task    
 57                                                   
 58 /**                                               
 59  * syscall_get_error - check result of traced     
 60  * @task:       task of interest, must be bloc    
 61  * @regs:       task_pt_regs() of @task           
 62  *                                                
 63  * Returns 0 if the system call succeeded, or     
 64  *                                                
 65  * It's only valid to call this when @task is     
 66  * from a system call, due to %SYSCALL_WORK_SY    
 67  * %SYSCALL_WORK_SYSCALL_AUDIT.                   
 68  */                                               
 69 long syscall_get_error(struct task_struct *tas    
 70                                                   
 71 /**                                               
 72  * syscall_get_return_value - get the return v    
 73  * @task:       task of interest, must be bloc    
 74  * @regs:       task_pt_regs() of @task           
 75  *                                                
 76  * Returns the return value of the successful     
 77  * This value is meaningless if syscall_get_er    
 78  *                                                
 79  * It's only valid to call this when @task is     
 80  * from a system call, due to %SYSCALL_WORK_SY    
 81  * %SYSCALL_WORK_SYSCALL_AUDIT.                   
 82  */                                               
 83 long syscall_get_return_value(struct task_stru    
 84                                                   
 85 /**                                               
 86  * syscall_set_return_value - change the retur    
 87  * @task:       task of interest, must be bloc    
 88  * @regs:       task_pt_regs() of @task           
 89  * @error:      negative error code, or zero t    
 90  * @val:        user return value if @error is    
 91  *                                                
 92  * This changes the results of the system call    
 93  * If @error is zero, the user sees a successf    
 94  * return value of @val.  If @error is nonzero    
 95  * code; the user sees a failed system call wi    
 96  *                                                
 97  * It's only valid to call this when @task is     
 98  * from a system call, due to %SYSCALL_WORK_SY    
 99  * %SYSCALL_WORK_SYSCALL_AUDIT.                   
100  */                                               
101 void syscall_set_return_value(struct task_stru    
102                               int error, long     
103                                                   
104 /**                                               
105  * syscall_get_arguments - extract system call    
106  * @task:       task of interest, must be bloc    
107  * @regs:       task_pt_regs() of @task           
108  * @args:       array filled with argument val    
109  *                                                
110  * Fetches 6 arguments to the system call.  Fi    
111 *  @args[0], and so on.                           
112  *                                                
113  * It's only valid to call this when @task is     
114  * entry to a system call, due to %SYSCALL_WOR    
115  * %SYSCALL_WORK_SYSCALL_AUDIT.                   
116  */                                               
117 void syscall_get_arguments(struct task_struct     
118                            unsigned long *args    
119                                                   
120 /**                                               
121  * syscall_get_arch - return the AUDIT_ARCH fo    
122  * @task:       task of interest, must be bloc    
123  *                                                
124  * Returns the AUDIT_ARCH_* based on the syste    
125  *                                                
126  * It's only valid to call this when @task is     
127  * call, due to %SYSCALL_WORK_SYSCALL_TRACE, %    
128  * %SYSCALL_WORK_SECCOMP.                         
129  *                                                
130  * Architectures which permit CONFIG_HAVE_ARCH    
131  * provide an implementation of this.             
132  */                                               
133 int syscall_get_arch(struct task_struct *task)    
134 #endif  /* _ASM_SYSCALL_H */                      
135                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php