Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
exec-osm.c File Reference
#include <linux/module.h>
#include <linux/i2o.h>
#include <linux/delay.h>
#include <linux/workqueue.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/sched.h>
#include <asm/param.h>
#include "core.h"

Go to the source code of this file.

Data Structures

struct  i2o_exec_wait
 
struct  i2o_exec_lct_notify_work
 

Macros

#define OSM_NAME   "exec-osm"
 

Functions

int i2o_msg_post_wait_mem (struct i2o_controller *c, struct i2o_message *msg, unsigned long timeout, struct i2o_dma *dma)
 
int i2o_exec_lct_get (struct i2o_controller *c)
 
int __init i2o_exec_init (void)
 
void i2o_exec_exit (void)
 
 EXPORT_SYMBOL (i2o_msg_post_wait_mem)
 
 EXPORT_SYMBOL (i2o_exec_lct_get)
 

Variables

struct i2o_driver i2o_exec_driver
 

Macro Definition Documentation

#define OSM_NAME   "exec-osm"

Definition at line 40 of file exec-osm.c.

Function Documentation

EXPORT_SYMBOL ( i2o_msg_post_wait_mem  )
EXPORT_SYMBOL ( i2o_exec_lct_get  )
void i2o_exec_exit ( void  )

i2o_exec_exit - Removes the Exec OSM

Unregisters the Exec OSM from the I2O core.

Definition at line 606 of file exec-osm.c.

int __init i2o_exec_init ( void  )

i2o_exec_init - Registers the Exec OSM

Registers the Exec OSM in the I2O core.

Returns 0 on success or negative error code on failure.

Definition at line 596 of file exec-osm.c.

int i2o_exec_lct_get ( struct i2o_controller c)

i2o_exec_lct_get - Get the IOP's Logical Configuration Table : I2O controller from which the LCT should be fetched

Send a LCT NOTIFY request to the controller, and wait I2O_TIMEOUT_LCT_GET seconds until arrival of response. If the LCT is to large, retry it.

Returns 0 on success or negative error code on failure.

Definition at line 544 of file exec-osm.c.

int i2o_msg_post_wait_mem ( struct i2o_controller c,
struct i2o_message msg,
unsigned long  timeout,
struct i2o_dma dma 
)

i2o_msg_post_wait_mem - Post and wait a message with DMA buffers : controller : message to post : time in seconds to wait : i2o_dma struct of the DMA buffer to free on failure

This API allows an OSM to post a message and then be told whether or not the system received a successful reply. If the message times out then the value '-ETIMEDOUT' is returned. This is a special case. In this situation the message may (should) complete at an indefinite time in the future. When it completes it will use the memory buffer attached to the request. If -ETIMEDOUT is returned then the memory buffer must not be freed. Instead the event completion will free them for you. In all other cases the buffer are your problem.

Returns 0 on success, negative error code on timeout or positive error code from reply.

Definition at line 122 of file exec-osm.c.

Variable Documentation

struct i2o_driver i2o_exec_driver
Initial value:
= {
.name = OSM_NAME,
.reply = i2o_exec_reply,
.event = i2o_exec_event,
.classes = i2o_exec_class_id,
.driver = {
.probe = i2o_exec_probe,
.remove = i2o_exec_remove,
},
}

Definition at line 42 of file exec-osm.c.