/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ /* * Copyright (c) 2004 Topspin Communications. All rights reserved. * Copyright (c) 2005 Intel Corporation. All rights reserved. * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
*/
/** * ib_get_cached_pkey - Returns a cached PKey table entry * @device: The device to query. * @port_num: The port number of the device to query. * @index: The index into the cached PKey table to query. * @pkey: The PKey value found at the specified index. * * ib_get_cached_pkey() fetches the specified PKey table entry stored in * the local software cache.
*/ int ib_get_cached_pkey(struct ib_device *device_handle,
u32 port_num, int index,
u16 *pkey);
/** * ib_find_cached_pkey - Returns the PKey table index where a specified * PKey value occurs. * @device: The device to query. * @port_num: The port number of the device to search for the PKey. * @pkey: The PKey value to search for. * @index: 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.
*/ int ib_find_cached_pkey(struct ib_device *device,
u32 port_num,
u16 pkey,
u16 *index);
/** * ib_get_cached_lmc - Returns a cached lmc table entry * @device: The device to query. * @port_num: The port number of the device to query. * @lmc: 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.
*/ int ib_get_cached_lmc(struct ib_device *device,
u32 port_num,
u8 *lmc);
/** * ib_get_cached_port_state - Returns a cached port state table entry * @device: The device to query. * @port_num: The port number of the device to query. * @port_state: port_state for the specified port for that device. * * ib_get_cached_port_state() fetches the specified port_state table entry stored in * the local software cache.
*/ int ib_get_cached_port_state(struct ib_device *device,
u32 port_num, enum ib_port_state *port_active);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.