Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
zcrypt_api.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/miscdevice.h>
#include <linux/fs.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/compat.h>
#include <linux/slab.h>
#include <linux/atomic.h>
#include <asm/uaccess.h>
#include <linux/hw_random.h>
#include <linux/debugfs.h>
#include <asm/debug.h>
#include "zcrypt_debug.h"
#include "zcrypt_api.h"

Go to the source code of this file.

Macros

#define LBUFSIZE   1200UL
 

Functions

 MODULE_AUTHOR ("IBM Corporation")
 
 MODULE_DESCRIPTION ("Cryptographic Coprocessor interface, ""Copyright IBM Corp. 2001, 2012")
 
 MODULE_LICENSE ("GPL")
 
 EXPORT_SYMBOL (zcrypt_rescan_req)
 
void zcrypt_device_get (struct zcrypt_device *zdev)
 
 EXPORT_SYMBOL (zcrypt_device_get)
 
int zcrypt_device_put (struct zcrypt_device *zdev)
 
 EXPORT_SYMBOL (zcrypt_device_put)
 
struct zcrypt_devicezcrypt_device_alloc (size_t max_response_size)
 
 EXPORT_SYMBOL (zcrypt_device_alloc)
 
void zcrypt_device_free (struct zcrypt_device *zdev)
 
 EXPORT_SYMBOL (zcrypt_device_free)
 
int zcrypt_device_register (struct zcrypt_device *zdev)
 
 EXPORT_SYMBOL (zcrypt_device_register)
 
void zcrypt_device_unregister (struct zcrypt_device *zdev)
 
 EXPORT_SYMBOL (zcrypt_device_unregister)
 
void zcrypt_msgtype_register (struct zcrypt_ops *zops)
 
 EXPORT_SYMBOL (zcrypt_msgtype_register)
 
void zcrypt_msgtype_unregister (struct zcrypt_ops *zops)
 
 EXPORT_SYMBOL (zcrypt_msgtype_unregister)
 
struct zcrypt_opszcrypt_msgtype_request (unsigned char *name, int variant)
 
 EXPORT_SYMBOL (zcrypt_msgtype_request)
 
void zcrypt_msgtype_release (struct zcrypt_ops *zops)
 
 EXPORT_SYMBOL (zcrypt_msgtype_release)
 
int __init zcrypt_debug_init (void)
 
void zcrypt_debug_exit (void)
 
int __init zcrypt_api_init (void)
 
void zcrypt_api_exit (void)
 
 module_init (zcrypt_api_init)
 
 module_exit (zcrypt_api_exit)
 

Variables

atomic_t zcrypt_rescan_req = ATOMIC_INIT(0)
 

Macro Definition Documentation

#define LBUFSIZE   1200UL

Function Documentation

EXPORT_SYMBOL ( zcrypt_rescan_req  )
EXPORT_SYMBOL ( zcrypt_device_get  )
EXPORT_SYMBOL ( zcrypt_device_put  )
EXPORT_SYMBOL ( zcrypt_device_alloc  )
EXPORT_SYMBOL ( zcrypt_device_free  )
EXPORT_SYMBOL ( zcrypt_device_register  )
EXPORT_SYMBOL ( zcrypt_device_unregister  )
EXPORT_SYMBOL ( zcrypt_msgtype_register  )
EXPORT_SYMBOL ( zcrypt_msgtype_unregister  )
EXPORT_SYMBOL ( zcrypt_msgtype_request  )
EXPORT_SYMBOL ( zcrypt_msgtype_release  )
MODULE_AUTHOR ( "IBM Corporation"  )
MODULE_DESCRIPTION ( "Cryptographic Coprocessor  interface,
""Copyright IBM Corp.  2001,
2012"   
)
module_exit ( zcrypt_api_exit  )
module_init ( zcrypt_api_init  )
MODULE_LICENSE ( "GPL"  )
void zcrypt_api_exit ( void  )

zcrypt_api_exit(): Module termination.

The module termination code.

Definition at line 1379 of file zcrypt_api.c.

int __init zcrypt_api_init ( void  )

zcrypt_api_init(): Module initialization.

The module initialization code.

Definition at line 1344 of file zcrypt_api.c.

void zcrypt_debug_exit ( void  )

Definition at line 1330 of file zcrypt_api.c.

int __init zcrypt_debug_init ( void  )

Definition at line 1315 of file zcrypt_api.c.

struct zcrypt_device* zcrypt_device_alloc ( size_t  max_response_size)
read

Definition at line 215 of file zcrypt_api.c.

void zcrypt_device_free ( struct zcrypt_device zdev)

Definition at line 237 of file zcrypt_api.c.

void zcrypt_device_get ( struct zcrypt_device zdev)

Definition at line 203 of file zcrypt_api.c.

int zcrypt_device_put ( struct zcrypt_device zdev)

Definition at line 209 of file zcrypt_api.c.

int zcrypt_device_register ( struct zcrypt_device zdev)

zcrypt_device_register() - Register a crypto device. : Pointer to a crypto device

Register a crypto device. Returns 0 if successful.

Definition at line 250 of file zcrypt_api.c.

void zcrypt_device_unregister ( struct zcrypt_device zdev)

zcrypt_device_unregister(): Unregister a crypto device. : Pointer to crypto device

Unregister a crypto device.

Definition at line 297 of file zcrypt_api.c.

void zcrypt_msgtype_register ( struct zcrypt_ops zops)

Definition at line 312 of file zcrypt_api.c.

void zcrypt_msgtype_release ( struct zcrypt_ops zops)

Definition at line 366 of file zcrypt_api.c.

struct zcrypt_ops* zcrypt_msgtype_request ( unsigned char name,
int  variant 
)
read

Definition at line 351 of file zcrypt_api.c.

void zcrypt_msgtype_unregister ( struct zcrypt_ops zops)

Definition at line 322 of file zcrypt_api.c.

Variable Documentation

atomic_t zcrypt_rescan_req = ATOMIC_INIT(0)

Definition at line 61 of file zcrypt_api.c.