Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
osd_uld.c File Reference
#include <linux/namei.h>
#include <linux/cdev.h>
#include <linux/fs.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/idr.h>
#include <linux/major.h>
#include <linux/file.h>
#include <linux/slab.h>
#include <scsi/scsi.h>
#include <scsi/scsi_driver.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_ioctl.h>
#include <scsi/osd_initiator.h>
#include <scsi/osd_sec.h>
#include "osd_debug.h"

Go to the source code of this file.

Data Structures

struct  osd_uld_device
 
struct  osd_dev_handle
 
struct  find_oud_t
 

Macros

#define TYPE_OSD   0x11
 
#define SCSI_OSD_MAJOR   260
 
#define SCSI_OSD_MAX_MINOR   MINORMASK
 

Functions

 MODULE_AUTHOR ("Boaz Harrosh <[email protected]>")
 
 MODULE_DESCRIPTION ("open-osd Upper-Layer-Driver osd.ko")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_CHARDEV_MAJOR (SCSI_OSD_MAJOR)
 
 MODULE_ALIAS_SCSI_DEVICE (TYPE_OSD)
 
int osduld_register_test (unsigned ioctl, do_test_fn *do_test)
 
 EXPORT_SYMBOL (osduld_register_test)
 
void osduld_unregister_test (unsigned ioctl)
 
 EXPORT_SYMBOL (osduld_unregister_test)
 
struct osd_devosduld_path_lookup (const char *name)
 
 EXPORT_SYMBOL (osduld_path_lookup)
 
int _mach_odi (struct device *dev, void *find_data)
 
struct osd_devosduld_info_lookup (const struct osd_dev_info *odi)
 
 EXPORT_SYMBOL (osduld_info_lookup)
 
void osduld_put_device (struct osd_dev *od)
 
 EXPORT_SYMBOL (osduld_put_device)
 
struct osd_dev_infoosduld_device_info (struct osd_dev *od)
 
 EXPORT_SYMBOL (osduld_device_info)
 
bool osduld_device_same (struct osd_dev *od, const struct osd_dev_info *odi)
 
 EXPORT_SYMBOL (osduld_device_same)
 
 module_init (osd_uld_init)
 
 module_exit (osd_uld_exit)
 

Variables

unsigned g_test_ioctl
 
do_test_fng_do_test
 

Macro Definition Documentation

#define SCSI_OSD_MAJOR   260

Definition at line 70 of file osd_uld.c.

#define SCSI_OSD_MAX_MINOR   MINORMASK

Definition at line 72 of file osd_uld.c.

#define TYPE_OSD   0x11

Definition at line 66 of file osd_uld.c.

Function Documentation

int _mach_odi ( struct device dev,
void find_data 
)

Definition at line 249 of file osd_uld.c.

EXPORT_SYMBOL ( osduld_register_test  )
EXPORT_SYMBOL ( osduld_unregister_test  )
EXPORT_SYMBOL ( osduld_path_lookup  )
EXPORT_SYMBOL ( osduld_info_lookup  )
EXPORT_SYMBOL ( osduld_put_device  )
EXPORT_SYMBOL ( osduld_device_info  )
EXPORT_SYMBOL ( osduld_device_same  )
MODULE_ALIAS_CHARDEV_MAJOR ( SCSI_OSD_MAJOR  )
MODULE_ALIAS_SCSI_DEVICE ( TYPE_OSD  )
MODULE_AUTHOR ( "Boaz Harrosh <[email protected]>"  )
MODULE_DESCRIPTION ( "open-osd Upper-Layer-Driver osd.ko"  )
module_exit ( osd_uld_exit  )
module_init ( osd_uld_init  )
MODULE_LICENSE ( "GPL"  )
struct osd_dev_info* osduld_device_info ( struct osd_dev od)
read

Definition at line 322 of file osd_uld.c.

bool osduld_device_same ( struct osd_dev od,
const struct osd_dev_info odi 
)

Definition at line 330 of file osd_uld.c.

struct osd_dev* osduld_info_lookup ( const struct osd_dev_info odi)
read

Definition at line 274 of file osd_uld.c.

struct osd_dev* osduld_path_lookup ( const char name)
read

Definition at line 188 of file osd_uld.c.

void osduld_put_device ( struct osd_dev od)

Definition at line 297 of file osd_uld.c.

int osduld_register_test ( unsigned  ioctl,
do_test_fn do_test 
)

Definition at line 135 of file osd_uld.c.

void osduld_unregister_test ( unsigned  ioctl)

Definition at line 146 of file osd_uld.c.

Variable Documentation

do_test_fn* g_do_test

Definition at line 133 of file osd_uld.c.

unsigned g_test_ioctl

Definition at line 132 of file osd_uld.c.