Emulex Logo
OneCoreā„¢ Storage SDK Release 11.2
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ocs_lnx.c File Reference
#include "ocs.h"
#include "ocs_ini_template.h"

Go to the source code of this file.

Functions

static int __init ocs_init (void)
 driver load entry point More...
 
static void __exit ocs_exit (void)
 driver unload entry point More...
 
const char * ocs_display_name (void *os)
 
static int get_current_tid (void)
 
static const char * log_level_to_klog_level (int level)
 
void _ocs_log (void *os, const char *func_name, int line, int level, const char *fmt,...)
 
void _ocs_assert (const char *cond, const char *filename, int linenum)
 
 module_init (ocs_init)
 
 module_exit (ocs_exit)
 
 MODULE_VERSION (DRV_VERSION)
 
 MODULE_LICENSE ("GPL")
 

Variables

static const char ocs_copyright [] = "Copyright © 2013 Emulex. All rights reserved"
 
int logdest = 1
 
int loglevel = 3
 
ocs_scsi_ini_template_t ocs_iscsi_ini_template
 

Function Details

void _ocs_assert ( const char *  cond,
const char *  filename,
int  linenum 
)

Definition at line 166 of file ocs_lnx.c.

void _ocs_log ( void *  os,
const char *  func_name,
int  line,
int  level,
const char *  fmt,
  ... 
)

Definition at line 130 of file ocs_lnx.c.

static int get_current_tid ( void  )
inlinestatic

Definition at line 95 of file ocs_lnx.c.

static const char* log_level_to_klog_level ( int  level)
static

Definition at line 112 of file ocs_lnx.c.

module_exit ( ocs_exit  )
module_init ( ocs_init  )
MODULE_LICENSE ( "GPL"  )
MODULE_VERSION ( DRV_VERSION  )
const char* ocs_display_name ( void *  os)

Definition at line 86 of file ocs_lnx.c.

static void __exit ocs_exit ( void  )
static

driver unload entry point

Called when driver is unloaded. PCI devices are removed, and device class objects removed.

Returns
none

Definition at line 72 of file ocs_lnx.c.

static int __init ocs_init ( void  )
static

driver load entry point

Called when driver is loaded, device class DRV_NAME is created, and PCI devices are enumerated.

Returns
returns 0 for success, a negative error code value for failure.

Definition at line 37 of file ocs_lnx.c.

Variable Details

int logdest = 1

Definition at line 24 of file ocs_lnx.c.

int loglevel = 3

Definition at line 25 of file ocs_lnx.c.

const char ocs_copyright[] = "Copyright © 2013 Emulex. All rights reserved"
static

Copyright (C) 2013-2015 Emulex All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. The full GNU General Public License can be found at http://www.gnu.org/licenses/.

Written by: Chris Moore (chris.nosp@m..moo.nosp@m.re@em.nosp@m.ulex.nosp@m..com)

Emulex 3333 Susan Street Costa Mesa, CA 92626

Definition at line 22 of file ocs_lnx.c.

ocs_scsi_ini_template_t ocs_iscsi_ini_template

Definition at line 85 of file ocs_openiscsi_ini.c.