/arch/arm/mach-aaec2000/

'>gpusync/staging The LITMUS^RT kernel.Bjoern Brandenburg
aboutsummaryrefslogblamecommitdiffstats
path: root/block/compat_ioctl.c
blob: 119f07b74dc0c41d99c282c1299a80f5f0dfc8c0 (plain) (tree)
1
2
3
4
5
6
7
8
9







                               
                       














                                                                       




                                                                      














                                                                       


































                                                                              

                                                                     






                                       
                                                 










                                                             


















                                               

                                                                           




















                                                                      
                                                     


                                                     

                                                                                


























                                                                     
                                                                          

 






                               
                                                                      

















                                                                               
                                                               

 



                                                    








































































































                                                                        

                                                                   






































































































                                                                                                
                                                                           


















































































































                                                                                              

                                                                              
 
                      










                                   
                                                               








                             
                                                             
                            
                                                                     
                               
                                                                          
 











                                                                  






















































                                                                             






















                                                                    





                                          
                                                           

 



                                                                            
 




                                                    
                                     

                    



                                                                           
                                     


                                      

                      

                                                                       







                                                                            

                                                                            


                        
                           




                                                                 
                                                    

                                                                
                                                          

                                                                
                                                                            













                                                                                
                                                                          

                                             
                                                                                  









                                                              

                                              
                                      
                                                        


                                                                   

                             


                                               
                                                                  
                           






                                                                               
 
#include <linux/blkdev.h>
#include <linux/blkpg.h>
#include <linux/blktrace_api.h>
#include <linux/cdrom.h>
#include <linux/compat.h>
#include <linux/elevator.h>
#include <linux/fd.h>
#include <linux/hdreg.h>
#include <linux/slab.h>
#include <linux/syscalls.h>
#include <linux/smp_lock.h>
#include <linux/types.h>
#include <linux/uaccess.h>

static int compat_put_ushort(unsigned long arg, unsigned short val)
{
	return put_user(val, (unsigned short __user *)compat_ptr(arg));
}

static int compat_put_int(unsigned long arg, int val)
{
	return put_user(val, (compat_int_t __user *)compat_ptr(arg));
}

static int compat_put_uint(unsigned long arg, unsigned int val)
{
	return put_user(val, (compat_uint_t __user *)compat_ptr(arg));
}

static int compat_put_long(unsigned long arg, long val)
{
	return put_user(val, (compat_long_t __user *)compat_ptr(arg));
}

static int compat_put_ulong(unsigned long arg, compat_ulong_t val)
{
	return put_user(val, (compat_ulong_t __user *)compat_ptr(arg));
}

static int compat_put_u64(unsigned long arg, u64 val)
{
	return put_user(val, (compat_u64 __user *)compat_ptr(arg));
}

struct compat_hd_geometry {
	unsigned char heads;
	unsigned char sectors;