Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
aoedev.c File Reference
#include <linux/hdreg.h>
#include <linux/blkdev.h>
#include <linux/netdevice.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/bitmap.h>
#include <linux/kdev_t.h>
#include <linux/moduleparam.h>
#include "aoe.h"

Go to the source code of this file.

Macros

#define N_DEVS   ((1U<<MINORBITS)/AOE_PARTITIONS)
 

Functions

 module_param (aoe_dyndevs, int, 0644)
 
 MODULE_PARM_DESC (aoe_dyndevs,"Use dynamic minor numbers for devices.")
 
void aoedev_put (struct aoedev *d)
 
void aoedev_downdev (struct aoedev *d)
 
int aoedev_flush (const char __user *str, size_t cnt)
 
struct aoedevaoedev_by_aoeaddr (ulong maj, int min, int do_alloc)
 
void aoedev_exit (void)
 
int __init aoedev_init (void)
 

Macro Definition Documentation

#define N_DEVS   ((1U<<MINORBITS)/AOE_PARTITIONS)

Definition at line 36 of file aoedev.c.

Function Documentation

struct aoedev* aoedev_by_aoeaddr ( ulong  maj,
int  min,
int  do_alloc 
)
read

Definition at line 330 of file aoedev.c.

void aoedev_downdev ( struct aoedev d)

Definition at line 174 of file aoedev.c.

void aoedev_exit ( void  )

Definition at line 397 of file aoedev.c.

int aoedev_flush ( const char __user str,
size_t  cnt 
)

Definition at line 245 of file aoedev.c.

int __init aoedev_init ( void  )

Definition at line 417 of file aoedev.c.

void aoedev_put ( struct aoedev d)

Definition at line 130 of file aoedev.c.

module_param ( aoe_dyndevs  ,
int  ,
0644   
)
MODULE_PARM_DESC ( aoe_dyndevs  ,
"Use dynamic minor numbers for devices."   
)