Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
loop.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/sched.h>
#include <linux/fs.h>
#include <linux/file.h>
#include <linux/stat.h>
#include <linux/errno.h>
#include <linux/major.h>
#include <linux/wait.h>
#include <linux/blkdev.h>
#include <linux/blkpg.h>
#include <linux/init.h>
#include <linux/swap.h>
#include <linux/slab.h>
#include <linux/loop.h>
#include <linux/compat.h>
#include <linux/suspend.h>
#include <linux/freezer.h>
#include <linux/mutex.h>
#include <linux/writeback.h>
#include <linux/completion.h>
#include <linux/highmem.h>
#include <linux/kthread.h>
#include <linux/splice.h>
#include <linux/sysfs.h>
#include <linux/miscdevice.h>
#include <linux/falloc.h>
#include <asm/uaccess.h>

Go to the source code of this file.

Data Structures

struct  lo_read_data
 
struct  switch_request
 

Macros

#define LOOP_ATTR_RO(_name)
 

Functions

 LOOP_ATTR_RO (backing_file)
 
 LOOP_ATTR_RO (offset)
 
 LOOP_ATTR_RO (sizelimit)
 
 LOOP_ATTR_RO (autoclear)
 
 LOOP_ATTR_RO (partscan)
 
 module_param (max_loop, int, S_IRUGO)
 
 MODULE_PARM_DESC (max_loop,"Maximum number of loop devices")
 
 module_param (max_part, int, S_IRUGO)
 
 MODULE_PARM_DESC (max_part,"Maximum number of partitions per loop device")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_BLOCKDEV_MAJOR (LOOP_MAJOR)
 
int loop_register_transfer (struct loop_func_table *funcs)
 
int loop_unregister_transfer (int number)
 
 EXPORT_SYMBOL (loop_register_transfer)
 
 EXPORT_SYMBOL (loop_unregister_transfer)
 
 MODULE_ALIAS_MISCDEV (LOOP_CTRL_MINOR)
 
 MODULE_ALIAS ("devname:loop-control")
 
 module_init (loop_init)
 
 module_exit (loop_exit)
 
 __setup ("max_loop=", max_loop_setup)
 

Macro Definition Documentation

#define LOOP_ATTR_RO (   _name)
Value:
static ssize_t loop_attr_##_name##_show(struct loop_device *, char *); \
static ssize_t loop_attr_do_show_##_name(struct device *d, \
struct device_attribute *attr, char *b) \
{ \
return loop_attr_show(d, b, loop_attr_##_name##_show); \
} \
static struct device_attribute loop_attr_##_name = \
__ATTR(_name, S_IRUGO, loop_attr_do_show_##_name, NULL);

Definition at line 690 of file loop.c.

Function Documentation

__setup ( )
EXPORT_SYMBOL ( loop_register_transfer  )
EXPORT_SYMBOL ( loop_unregister_transfer  )
LOOP_ATTR_RO ( backing_file  )
LOOP_ATTR_RO ( offset  )
LOOP_ATTR_RO ( sizelimit  )
LOOP_ATTR_RO ( autoclear  )
LOOP_ATTR_RO ( partscan  )
int loop_register_transfer ( struct loop_func_table funcs)

Definition at line 1569 of file loop.c.

int loop_unregister_transfer ( int  number)

Definition at line 1591 of file loop.c.

MODULE_ALIAS ( "devname:loop-control )
MODULE_ALIAS_BLOCKDEV_MAJOR ( LOOP_MAJOR  )
MODULE_ALIAS_MISCDEV ( LOOP_CTRL_MINOR  )
module_exit ( loop_exit  )
module_init ( loop_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( max_loop  ,
int  ,
S_IRUGO   
)
module_param ( max_part  ,
int  ,
S_IRUGO   
)
MODULE_PARM_DESC ( max_loop  ,
"Maximum number of loop devices  
)
MODULE_PARM_DESC ( max_part  ,
"Maximum number of partitions per loop device  
)