Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
cache.c File Reference
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include <rdma/ib_cache.h>
#include "core_priv.h"

Go to the source code of this file.

Data Structures

struct  ib_pkey_cache
 
struct  ib_gid_cache
 
struct  ib_update_work
 

Functions

int ib_get_cached_gid (struct ib_device *device, u8 port_num, int index, union ib_gid *gid)
 
 EXPORT_SYMBOL (ib_get_cached_gid)
 
int ib_find_cached_gid (struct ib_device *device, union ib_gid *gid, u8 *port_num, u16 *index)
 
 EXPORT_SYMBOL (ib_find_cached_gid)
 
int ib_get_cached_pkey (struct ib_device *device, u8 port_num, int index, u16 *pkey)
 
 EXPORT_SYMBOL (ib_get_cached_pkey)
 
int ib_find_cached_pkey (struct ib_device *device, u8 port_num, u16 pkey, u16 *index)
 
 EXPORT_SYMBOL (ib_find_cached_pkey)
 
int ib_find_exact_cached_pkey (struct ib_device *device, u8 port_num, u16 pkey, u16 *index)
 
 EXPORT_SYMBOL (ib_find_exact_cached_pkey)
 
int ib_get_cached_lmc (struct ib_device *device, u8 port_num, u8 *lmc)
 
 EXPORT_SYMBOL (ib_get_cached_lmc)
 
int __init ib_cache_setup (void)
 
void __exit ib_cache_cleanup (void)
 

Function Documentation

EXPORT_SYMBOL ( ib_get_cached_gid  )
EXPORT_SYMBOL ( ib_find_cached_gid  )
EXPORT_SYMBOL ( ib_get_cached_pkey  )
EXPORT_SYMBOL ( ib_find_cached_pkey  )
EXPORT_SYMBOL ( ib_find_exact_cached_pkey  )
EXPORT_SYMBOL ( ib_get_cached_lmc  )
void __exit ib_cache_cleanup ( void  )

Definition at line 436 of file cache.c.

int __init ib_cache_setup ( void  )

Definition at line 431 of file cache.c.

int ib_find_cached_gid ( struct ib_device device,
union ib_gid gid,
u8 port_num,
u16 index 
)

ib_find_cached_gid - Returns the port number and GID table index where a specified GID value occurs. : The device to query. : The GID value to search for. : The port number of the device where the GID value was found. : The index into the cached GID table where the GID was found. This parameter may be NULL.

ib_find_cached_gid() searches for the specified GID value in the local software cache.

Definition at line 99 of file cache.c.

int ib_find_cached_pkey ( struct ib_device device,
u8  port_num,
u16  pkey,
u16 index 
)

ib_find_cached_pkey - Returns the PKey table index where a specified PKey value occurs. : The device to query. : The port number of the device to search for the PKey. : The PKey value to search for. : The index into the cached PKey table where the PKey was found.

ib_find_cached_pkey() searches the specified PKey table in the local software cache.

Definition at line 161 of file cache.c.

int ib_find_exact_cached_pkey ( struct ib_device device,
u8  port_num,
u16  pkey,
u16 index 
)

ib_find_exact_cached_pkey - Returns the PKey table index where a specified PKey value occurs. Comparison uses the FULL 16 bits (incl membership bit) : The device to query. : The port number of the device to search for the PKey. : The PKey value to search for. : The index into the cached PKey table where the PKey was found.

ib_find_exact_cached_pkey() searches the specified PKey table in the local software cache.

Definition at line 202 of file cache.c.

int ib_get_cached_gid ( struct ib_device device,
u8  port_num,
int  index,
union ib_gid gid 
)

ib_get_cached_gid - Returns a cached GID table entry : The device to query. : The port number of the device to query. : The index into the cached GID table to query. : The GID value found at the specified index.

ib_get_cached_gid() fetches the specified GID table entry stored in the local software cache.

Definition at line 72 of file cache.c.

int ib_get_cached_lmc ( struct ib_device device,
u8  port_num,
u8 lmc 
)

ib_get_cached_lmc - Returns a cached lmc table entry : The device to query. : The port number of the device to query. : The lmc value for the specified port for that device.

ib_get_cached_lmc() fetches the specified lmc table entry stored in the local software cache.

Definition at line 234 of file cache.c.

int ib_get_cached_pkey ( struct ib_device device_handle,
u8  port_num,
int  index,
u16 pkey 
)

ib_get_cached_pkey - Returns a cached PKey table entry : The device to query. : The port number of the device to query. : The index into the cached PKey table to query. : The PKey value found at the specified index.

ib_get_cached_pkey() fetches the specified PKey table entry stored in the local software cache.

Definition at line 134 of file cache.c.