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

TOMOYO Linux Cross Reference
Linux/arch/sh/kernel/sys_sh32.c

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 /arch/sh/kernel/sys_sh32.c (Architecture sparc64) and /arch/ppc/kernel/sys_sh32.c (Architecture ppc)


  1 // SPDX-License-Identifier: GPL-2.0                 1 
  2 #include <linux/errno.h>                          
  3 #include <linux/sched.h>                          
  4 #include <linux/sched/task_stack.h>               
  5 #include <linux/mm.h>                             
  6 #include <linux/smp.h>                            
  7 #include <linux/sem.h>                            
  8 #include <linux/msg.h>                            
  9 #include <linux/shm.h>                            
 10 #include <linux/stat.h>                           
 11 #include <linux/syscalls.h>                       
 12 #include <linux/mman.h>                           
 13 #include <linux/file.h>                           
 14 #include <linux/module.h>                         
 15 #include <linux/fs.h>                             
 16 #include <linux/ipc.h>                            
 17 #include <asm/cacheflush.h>                       
 18 #include <linux/uaccess.h>                        
 19 #include <asm/unistd.h>                           
 20 #include <asm/syscalls.h>                         
 21                                                   
 22 /*                                                
 23  * sys_pipe() is the normal C calling standard    
 24  * a pipe. It's not the way Unix traditionally    
 25  */                                               
 26 asmlinkage int sys_sh_pipe(void)                  
 27 {                                                 
 28         int fd[2];                                
 29         int error;                                
 30                                                   
 31         error = do_pipe_flags(fd, 0);             
 32         if (!error) {                             
 33                 current_pt_regs()->regs[1] = f    
 34                 return fd[0];                     
 35         }                                         
 36         return error;                             
 37 }                                                 
 38                                                   
 39 asmlinkage ssize_t sys_pread_wrapper(unsigned     
 40                              size_t count, lon    
 41 {                                                 
 42         return ksys_pread64(fd, buf, count, po    
 43 }                                                 
 44                                                   
 45 asmlinkage ssize_t sys_pwrite_wrapper(unsigned    
 46                               size_t count, lo    
 47 {                                                 
 48         return ksys_pwrite64(fd, buf, count, p    
 49 }                                                 
 50                                                   
 51 asmlinkage int sys_fadvise64_64_wrapper(int fd    
 52                                 u32 len0, u32     
 53 {                                                 
 54 #ifdef  __LITTLE_ENDIAN__                         
 55         return ksys_fadvise64_64(fd, (u64)offs    
 56                                  (u64)len1 <<     
 57 #else                                             
 58         return ksys_fadvise64_64(fd, (u64)offs    
 59                                  (u64)len0 <<     
 60 #endif                                            
 61 }                                                 
 62                                                   
 63 /*                                                
 64  * swap the arguments the way that libc wants     
 65  * moving flags ahead of the 64-bit nbytes arg    
 66  */                                               
 67 SYSCALL_DEFINE6(sh_sync_file_range6, int, fd,     
 68                 SC_ARG64(nbytes), unsigned int    
 69 {                                                 
 70         return ksys_sync_file_range(fd, SC_VAL    
 71                                     SC_VAL64(l    
 72 }                                                 
 73                                                   

~ [ 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