[ofa-general] opensm/osm_port_t struct definition

Yevgeny Kliteynik kliteyn at dev.mellanox.co.il
Tue Aug 19 02:23:10 PDT 2008


Hi Sasha,

I have a general question/concern about osm_port_t:

typedef struct osm_port {
	cl_map_item_t map_item;
	cl_list_item_t list_item;
	...
} osm_port_t;

Here and there in the code I see some comments that
map_item and list_item should be first members of the
struct, which, I guess, means that same object can't be
member of both map and list.
Do we have a problem here?

-- Yevgeny



More information about the general mailing list