Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
cmb.h File Reference
#include <uapi/asm/cmb.h>

Go to the source code of this file.

Functions

int enable_cmf (struct ccw_device *cdev)
 
int disable_cmf (struct ccw_device *cdev)
 
u64 cmf_read (struct ccw_device *cdev, int index)
 
int cmf_readall (struct ccw_device *cdev, struct cmbdata *data)
 

Function Documentation

u64 cmf_read ( struct ccw_device cdev,
int  index 
)

cmf_read() - read one value from the current channel measurement block : the channel to be read : the index of the value to be read

Returns the value read or %0 if the value cannot be read.

Context: any

Definition at line 1271 of file cmf.c.

int cmf_readall ( struct ccw_device cdev,
struct cmbdata data 
)

cmf_readall() - read the current channel measurement block : the channel to be read : a pointer to a data block that will be filled

Returns %0 on success, a negative error value otherwise.

Context: any

Definition at line 1286 of file cmf.c.

int disable_cmf ( struct ccw_device cdev)

disable_cmf() - switch off the channel measurement for a specific device : The ccw device to be disabled

Returns %0 for success or a negative error value.

Context: non-atomic

Definition at line 1249 of file cmf.c.

int enable_cmf ( struct ccw_device cdev)

enable_cmf() - switch on the channel measurement for a specific device : The ccw device to be enabled

Returns %0 for success or a negative error value.

Context: non-atomic

Definition at line 1219 of file cmf.c.