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

Go to the source code of this file.

Functions

int ib_get_cached_gid (struct ib_device *device, u8 port_num, int index, union ib_gid *gid)
 
int ib_find_cached_gid (struct ib_device *device, union ib_gid *gid, u8 *port_num, u16 *index)
 
int ib_get_cached_pkey (struct ib_device *device_handle, u8 port_num, int index, u16 *pkey)
 
int ib_find_cached_pkey (struct ib_device *device, u8 port_num, u16 pkey, u16 *index)
 
int ib_find_exact_cached_pkey (struct ib_device *device, u8 port_num, u16 pkey, u16 *index)
 
int ib_get_cached_lmc (struct ib_device *device, u8 port_num, u8 *lmc)
 

Function Documentation

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.