Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
zram_drv.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/bio.h>
#include <linux/bitops.h>
#include <linux/blkdev.h>
#include <linux/buffer_head.h>
#include <linux/device.h>
#include <linux/genhd.h>
#include <linux/highmem.h>
#include <linux/slab.h>
#include <linux/lzo.h>
#include <linux/string.h>
#include <linux/vmalloc.h>
#include "zram_drv.h"

Go to the source code of this file.

Macros

#define KMSG_COMPONENT   "zram"
 
#define pr_fmt(fmt)   KMSG_COMPONENT ": " fmt
 

Functions

void __zram_reset_device (struct zram *zram)
 
void zram_reset_device (struct zram *zram)
 
int zram_init_device (struct zram *zram)
 
unsigned int zram_get_num_devices (void)
 
 module_param (num_devices, uint, 0)
 
 MODULE_PARM_DESC (num_devices,"Number of zram devices")
 
 module_init (zram_init)
 
 module_exit (zram_exit)
 
 MODULE_LICENSE ("Dual BSD/GPL")
 
 MODULE_AUTHOR ("Nitin Gupta <[email protected]>")
 
 MODULE_DESCRIPTION ("Compressed RAM Block Device")
 

Variables

struct zramzram_devices
 

Macro Definition Documentation

#define KMSG_COMPONENT   "zram"

Definition at line 15 of file zram_drv.c.

#define pr_fmt (   fmt)    KMSG_COMPONENT ": " fmt

Definition at line 16 of file zram_drv.c.

Function Documentation

void __zram_reset_device ( struct zram zram)

Definition at line 513 of file zram_drv.c.

MODULE_AUTHOR ( "Nitin Gupta <[email protected]>"  )
MODULE_DESCRIPTION ( "Compressed RAM Block Device )
module_exit ( zram_exit  )
module_init ( zram_init  )
MODULE_LICENSE ( "Dual BSD/GPL"  )
module_param ( num_devices  ,
uint  ,
 
)
MODULE_PARM_DESC ( num_devices  ,
"Number of zram devices  
)
unsigned int zram_get_num_devices ( void  )

Definition at line 712 of file zram_drv.c.

int zram_init_device ( struct zram zram)

Definition at line 554 of file zram_drv.c.

void zram_reset_device ( struct zram zram)

Definition at line 547 of file zram_drv.c.

Variable Documentation

struct zram* zram_devices

Definition at line 40 of file zram_drv.c.