Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
phram.c File Reference
#include <asm/io.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/slab.h>
#include <linux/mtd/mtd.h>

Go to the source code of this file.

Data Structures

struct  phram_mtd_list
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define parse_err(fmt, args...)
 

Functions

 module_param_call (phram, phram_param_call, NULL, NULL, 000)
 
 MODULE_PARM_DESC (phram,"Memory region to map. \"phram=<name>,<start>,<length>\"")
 
 module_init (init_phram)
 
 module_exit (cleanup_phram)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Joern Engel <[email protected]>")
 
 MODULE_DESCRIPTION ("MTD driver for physical RAM")
 

Macro Definition Documentation

#define parse_err (   fmt,
  args... 
)
Value:
do { \
pr_err(fmt , ## args); \
return 1; \
} while (0)

Definition at line 203 of file phram.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Copyright (c) ???? Jochen Schäuble psion.nosp@m.ic@p.nosp@m.sioni.nosp@m.c.de Copyright (c) 2003-2004 Joern Engel joern.nosp@m.@wh..nosp@m.fh-we.nosp@m.del..nosp@m.de

Usage:

one commend line parameter per device, each in the form: phram=<name>,<start>,<len> <name> may be up to 63 characters. <start> and <len> can be octal, decimal or hexadecimal. If followed by "ki", "Mi" or "Gi", the numbers will be interpreted as kilo, mega or gigabytes.

Example: phram=swap,64Mi,128Mi phram=test,900Mi,1Mi

Definition at line 18 of file phram.c.

Function Documentation

MODULE_AUTHOR ( "Joern Engel <[email protected]>"  )
MODULE_DESCRIPTION ( "MTD driver for physical RAM )
module_exit ( cleanup_phram  )
module_init ( init_phram  )
MODULE_LICENSE ( "GPL"  )
module_param_call ( phram  ,
phram_param_call  ,
NULL  ,
NULL  ,
000   
)
MODULE_PARM_DESC ( phram  ,
"Memory region to map. \"  phram = <name>,
< start ,
< length >\""   
)