osm_helper.c match func to proto
PATCH 1/1 osm_helper.c match func to proto
Removed inet_ntop() (void*) cast per discussions; only prototype updates.
opensm/opensm/osm_helper.c +48 -39
@@ -780,10 +780,11 @@ static void dbg_get_capabilities_str(IN char *p_buf, IN const uint32_t buf_size,/********************************************************************** **********************************************************************/ -void osm_dump_port_info(IN osm_log_t * p_log, IN const ib_net64_t node_guid, +void osm_dump_port_info(IN osm_log_t * const p_log, + IN const ib_net64_t node_guid, IN const ib_net64_t port_guid, IN const uint8_t port_num, - IN const ib_port_info_t * p_pi, + IN const ib_port_info_t * const p_pi, IN const osm_log_level_t log_level) {if (osm_log_is_active (p_log, log_level)) {
@@ -870,8 +871,8 @@ void osm_dump_port_info(IN osm_log_t * p_log, IN const ib_net64_t node_guid,/********************************************************************** **********************************************************************/ -void osm_dump_portinfo_record(IN osm_log_t * p_log, - IN const ib_portinfo_record_t * p_pir, +void osm_dump_portinfo_record(IN osm_log_t * const p_log, + IN const ib_portinfo_record_t * const p_pir, IN const osm_log_level_t log_level) {if (osm_log_is_active (p_log, log_level)) {
@@ -956,8 +957,8 @@ void osm_dump_portinfo_record(IN osm_log_t * p_log,/********************************************************************** **********************************************************************/ -void osm_dump_guidinfo_record(IN osm_log_t * p_log, - IN const ib_guidinfo_record_t * p_gir, +void osm_dump_guidinfo_record(IN osm_log_t * const p_log, + IN const ib_guidinfo_record_t * const p_gir, IN const osm_log_level_t log_level) {if (osm_log_is_active (p_log, log_level)) {
@@ -995,7 +996,8 @@ void osm_dump_guidinfo_record(IN osm_log_t * p_log,/********************************************************************** **********************************************************************/ -void osm_dump_node_info(IN osm_log_t * p_log, IN const ib_node_info_t * p_ni, +void osm_dump_node_info(IN osm_log_t * const p_log, + IN const ib_node_info_t * const p_ni, IN const osm_log_level_t log_level) {if (osm_log_is_active (p_log, log_level)) {
@@ -1030,8 +1032,8 @@ void osm_dump_node_info(IN osm_log_t * p_log, IN const ib_node_info_t * p_ni,/********************************************************************** **********************************************************************/ -void osm_dump_node_record(IN osm_log_t * p_log, - IN const ib_node_record_t * p_nr, +void osm_dump_node_record(IN osm_log_t * const p_log, + IN const ib_node_record_t * const p_nr, IN const osm_log_level_t log_level) {if (osm_log_is_active (p_log, log_level)) {
@@ -1080,7 +1082,8 @@ void osm_dump_node_record(IN osm_log_t * p_log,/********************************************************************** **********************************************************************/ -void osm_dump_path_record(IN osm_log_t * p_log, IN const ib_path_rec_t * p_pr, +void osm_dump_path_record(IN osm_log_t * const p_log, + IN const ib_path_rec_t * const p_pr, IN const osm_log_level_t log_level) {if (osm_log_is_active (p_log, log_level)) {
@@ -1129,8 +1132,8 @@ void osm_dump_path_record(IN osm_log_t * p_log, IN const ib_path_rec_t * p_pr,/********************************************************************** **********************************************************************/ -void osm_dump_multipath_record(IN osm_log_t * p_log, - IN const ib_multipath_rec_t * p_mpr, +void osm_dump_multipath_record(IN osm_log_t * const p_log, + IN const ib_multipath_rec_t * const p_mpr, IN const osm_log_level_t log_level) {if (osm_log_is_active (p_log, log_level)) {
@@ -1193,7 +1196,8 @@ void osm_dump_multipath_record(IN osm_log_t * p_log,/********************************************************************** **********************************************************************/ -void osm_dump_mc_record(IN osm_log_t * p_log, IN const ib_member_rec_t * p_mcmr, +void osm_dump_mc_record(IN osm_log_t * const p_log, + IN const ib_member_rec_t * const p_mcmr, IN const osm_log_level_t log_level) {if (osm_log_is_active (p_log, log_level)) {
@@ -1231,8 +1235,8 @@ void osm_dump_mc_record(IN osm_log_t * p_log, IN const ib_member_rec_t * p_mcmr,/********************************************************************** **********************************************************************/ -void osm_dump_service_record(IN osm_log_t * p_log, - IN const ib_service_record_t * p_sr, +void osm_dump_service_record(IN osm_log_t * const p_log, + IN const ib_service_record_t * const p_sr, IN const osm_log_level_t log_level) {if (osm_log_is_active (p_log, log_level)) {
@@ -1332,8 +1336,8 @@ void osm_dump_service_record(IN osm_log_t * p_log,/********************************************************************** **********************************************************************/ -void osm_dump_inform_info(IN osm_log_t * p_log, - IN const ib_inform_info_t * p_ii, +void osm_dump_inform_info(IN osm_log_t * const p_log, + IN const ib_inform_info_t * const p_ii, IN const osm_log_level_t log_level) {if (osm_log_is_active (p_log, log_level)) {
@@ -1393,8 +1397,8 @@ void osm_dump_inform_info(IN osm_log_t * p_log,/********************************************************************** **********************************************************************/ -void osm_dump_inform_info_record(IN osm_log_t * p_log, - IN const ib_inform_info_record_t * p_iir, +void osm_dump_inform_info_record(IN osm_log_t * const p_log, + IN const ib_inform_info_record_t * const p_iir, IN const osm_log_level_t log_level) {if (osm_log_is_active (p_log, log_level)) {
@@ -1476,8 +1480,8 @@ void osm_dump_inform_info_record(IN osm_log_t * p_log,/********************************************************************** **********************************************************************/ -void osm_dump_link_record(IN osm_log_t * p_log, - IN const ib_link_record_t * p_lr, +void osm_dump_link_record(IN osm_log_t * const p_log, + IN const ib_link_record_t * const p_lr, IN const osm_log_level_t log_level) {if (osm_log_is_active (p_log, log_level)) {
@@ -1495,8 +1499,8 @@ void osm_dump_link_record(IN osm_log_t * p_log,/********************************************************************** **********************************************************************/ -void osm_dump_switch_info(IN osm_log_t * p_log, - IN const ib_switch_info_t * p_si, +void osm_dump_switch_info(IN osm_log_t * const p_log, + IN const ib_switch_info_t * const p_si, IN const osm_log_level_t log_level) {if (osm_log_is_active (p_log, log_level)) {
@@ -1530,8 +1534,8 @@ void osm_dump_switch_info(IN osm_log_t * p_log,/********************************************************************** **********************************************************************/ -void osm_dump_switch_info_record(IN osm_log_t * p_log, - IN const ib_switch_info_record_t * p_sir, +void osm_dump_switch_info_record(IN osm_log_t * const p_log, + IN const ib_switch_info_record_t * const p_sir, IN const osm_log_level_t log_level) {if (osm_log_is_active (p_log, log_level)) {
@@ -1568,9 +1572,9 @@ void osm_dump_switch_info_record(IN osm_log_t * p_log,/********************************************************************** **********************************************************************/ -void osm_dump_pkey_block(IN osm_log_t * p_log, IN uint64_t port_guid, +void osm_dump_pkey_block(IN osm_log_t * const p_log, IN uint64_t port_guid, IN uint16_t block_num, IN uint8_t port_num, - IN const ib_pkey_table_t * p_pkey_tbl, + IN const ib_pkey_table_t * const p_pkey_tbl, IN const osm_log_level_t log_level) {if (osm_log_is_active (p_log, log_level)) {
@@ -1592,9 +1596,9 @@ void osm_dump_pkey_block(IN osm_log_t * p_log, IN uint64_t port_guid,/********************************************************************** **********************************************************************/ -void osm_dump_slvl_map_table(IN osm_log_t * p_log, IN uint64_t port_guid, +void osm_dump_slvl_map_table(IN osm_log_t * const p_log, IN uint64_t port_guid, IN uint8_t in_port_num, IN uint8_t out_port_num, - IN const ib_slvl_table_t * p_slvl_tbl, + IN const ib_slvl_table_t * const p_slvl_tbl, IN const osm_log_level_t log_level) {if (osm_log_is_active (p_log, log_level)) {
@@ -1619,9 +1623,9 @@ void osm_dump_slvl_map_table(IN osm_log_t * p_log, IN uint64_t port_guid,/********************************************************************** **********************************************************************/ -void osm_dump_vl_arb_table(IN osm_log_t * p_log, IN uint64_t port_guid, +void osm_dump_vl_arb_table(IN osm_log_t * const p_log, IN uint64_t port_guid, IN uint8_t block_num, IN uint8_t port_num, - IN const ib_vl_arb_table_t * p_vla_tbl, + IN const ib_vl_arb_table_t * const p_vla_tbl, IN const osm_log_level_t log_level) {if (osm_log_is_active (p_log, log_level)) {
@@ -1645,7 +1649,8 @@ void osm_dump_vl_arb_table(IN osm_log_t * p_log, IN uint64_t port_guid,/********************************************************************** **********************************************************************/ -void osm_dump_sm_info(IN osm_log_t * p_log, IN const ib_sm_info_t * p_smi, +void osm_dump_sm_info(IN osm_log_t * const p_log, + IN const ib_sm_info_t * const p_smi, IN const osm_log_level_t log_level) {if (osm_log_is_active (p_log, log_level)) {
@@ -1666,8 +1671,8 @@ void osm_dump_sm_info(IN osm_log_t * p_log, IN const ib_sm_info_t * p_smi,/********************************************************************** **********************************************************************/ -void osm_dump_sm_info_record(IN osm_log_t * p_log, - IN const ib_sminfo_record_t * p_smir, +void osm_dump_sm_info_record(IN osm_log_t * const p_log, + IN const ib_sminfo_record_t * const p_smir, IN const osm_log_level_t log_level) {if (osm_log_is_active (p_log, log_level)) {
@@ -1694,7 +1699,7 @@ void osm_dump_sm_info_record(IN osm_log_t * p_log,/********************************************************************** **********************************************************************/ -void osm_dump_notice(IN osm_log_t * p_log, +void osm_dump_notice(IN osm_log_t * const p_log, IN const ib_mad_notice_attr_t * p_ntci, IN const osm_log_level_t log_level) {
@@ -1889,7 +1894,8 @@ void osm_dump_notice(IN osm_log_t * p_log,/********************************************************************** **********************************************************************/ -void osm_dump_dr_smp(IN osm_log_t * p_log, IN const ib_smp_t * p_smp, +void osm_dump_dr_smp(IN osm_log_t * const p_log, + IN const ib_smp_t * const p_smp, IN const osm_log_level_t log_level) {if (osm_log_is_active (p_log, log_level)) {
@@ -1996,7 +2002,8 @@ void osm_dump_dr_smp(IN osm_log_t * p_log, IN const ib_smp_t * p_smp,/********************************************************************** **********************************************************************/ -void osm_dump_sa_mad(IN osm_log_t * p_log, IN const ib_sa_mad_t * p_mad, +void osm_dump_sa_mad(IN osm_log_t * const p_log, + IN const ib_sa_mad_t * const p_mad, IN const osm_log_level_t log_level) {if (osm_log_is_active (p_log, log_level)) {
@@ -2059,7 +2066,8 @@ void osm_dump_sa_mad(IN osm_log_t * p_log, IN const ib_sa_mad_t * p_mad,/********************************************************************** **********************************************************************/ -void osm_dump_dr_path(IN osm_log_t * p_log, IN const osm_dr_path_t * p_path, +void osm_dump_dr_path(IN osm_log_t * const p_log, + IN const osm_dr_path_t * const p_path, IN const osm_log_level_t log_level) {if (osm_log_is_active (p_log, log_level)) {
@@ -2077,7 +2085,8 @@ void osm_dump_dr_path(IN osm_log_t * p_log, IN const osm_dr_path_t * p_path,/********************************************************************** **********************************************************************/ -void osm_dump_smp_dr_path(IN osm_log_t * p_log, IN const ib_smp_t * p_smp, +void osm_dump_smp_dr_path(IN osm_log_t * const p_log, + IN const ib_smp_t * const p_smp, IN const osm_log_level_t log_level) {if (osm_log_is_active (p_log, log_level)) {
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 3F6F638B8D880340AB536D29CD4C1E1912C86E895E-osO9UTpF0USkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org
Quoted 4 lines · Stan
Removed
inet_ntop()(void*) cast per discussions; only prototype updates.Signed-off-by stan smith <[email protected]>
Just pushed out "'const' removing" patch few minutes before. Maybe it will just work for you.
Sasha
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 11 lines · Sasha Khapyorsky
Quoted 5 lines · Stan
Removed
inet_ntop()(void*) cast per discussions; only prototype updates.Signed-off-by stan smith <[email protected]>Just pushed out "'const' removing" patch few minutes before. Maybe it will just work for you.
Sasha
Yes it did just work/compile for the changes in osm_helper.c & osm_helper.h.
Please advise when other .h files & friends are adjusted.
Stan.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH 1/1 opensm: remove meanless 'const' keywords in APIs
In APIs remove meanless 'const' keywords related to function parameter values. Such as:
type func(..., type * const ptr, ...)
type func(..., type const var, ... )
Make function prototypes and definitions to be consistent.
---
Quoted 2 lines · Stan
Please advise when other .h files & friends are adjusted.
There is. I probably missed some inconsistencies, but there should not be a many of such.
Sasha
opensm/include/opensm/osm_db.h | 17 ++-- opensm/include/opensm/osm_db_pack.h | 20 ++-- opensm/include/opensm/osm_inform.h | 19 ++-- opensm/include/opensm/osm_lid_mgr.h | 10 +- opensm/include/opensm/osm_log.h | 47 ++++----- opensm/include/opensm/osm_mad_pool.h | 30 +++--- opensm/include/opensm/osm_madw.h | 56 +++++------ opensm/include/opensm/osm_mcast_tbl.h | 53 ++++------ opensm/include/opensm/osm_mcm_port.h | 2 +- opensm/include/opensm/osm_multicast.h | 19 ++-- opensm/include/opensm/osm_node.h | 81 ++++++--------- opensm/include/opensm/osm_opensm.h | 26 ++--- opensm/include/opensm/osm_partition.h | 12 +- opensm/include/opensm/osm_path.h | 15 ++-- opensm/include/opensm/osm_perfmgr.h | 38 +++---- opensm/include/opensm/osm_pkey.h | 25 ++--- opensm/include/opensm/osm_port.h | 167 +++++++++++++----------------- opensm/include/opensm/osm_port_profile.h | 9 +- opensm/include/opensm/osm_qos_policy.h | 2 +- opensm/include/opensm/osm_remote_sm.h | 10 +- opensm/include/opensm/osm_router.h | 14 +-- opensm/include/opensm/osm_sa.h | 38 +++---- opensm/include/opensm/osm_sa_mad_ctrl.h | 29 +++--- opensm/include/opensm/osm_service.h | 19 ++-- opensm/include/opensm/osm_sm.h | 80 ++++++--------- opensm/include/opensm/osm_sm_mad_ctrl.h | 32 +++--- opensm/include/opensm/osm_subnet.h | 38 +++---- opensm/include/opensm/osm_switch.h | 152 ++++++++++++---------------- opensm/include/opensm/osm_ucast_mgr.h | 14 ++-- opensm/include/opensm/osm_vl15intf.h | 22 ++--- opensm/opensm/osm_db_files.c | 14 ++-- opensm/opensm/osm_db_pack.c | 8 +- opensm/opensm/osm_inform.c | 8 +- opensm/opensm/osm_lid_mgr.c | 21 ++-- opensm/opensm/osm_log.c | 30 +++--- opensm/opensm/osm_mad_pool.c | 25 ++--- opensm/opensm/osm_mcast_tbl.c | 42 +++----- opensm/opensm/osm_mcm_port.c | 2 +- opensm/opensm/osm_multicast.c | 4 +- opensm/opensm/osm_node.c | 51 ++++------ opensm/opensm/osm_opensm.c | 12 +-- opensm/opensm/osm_perfmgr.c | 2 +- opensm/opensm/osm_pkey.c | 4 +- opensm/opensm/osm_port.c | 6 +- opensm/opensm/osm_prtn.c | 14 +-- opensm/opensm/osm_qos_parser_y.y | 2 +- opensm/opensm/osm_remote_sm.c | 10 +- opensm/opensm/osm_router.c | 8 +- opensm/opensm/osm_sa.c | 44 +++----- opensm/opensm/osm_sa_mad_ctrl.c | 2 +- opensm/opensm/osm_service.c | 48 +++------ opensm/opensm/osm_sm.c | 4 +- opensm/opensm/osm_sm_mad_ctrl.c | 2 +- opensm/opensm/osm_subnet.c | 31 +++--- opensm/opensm/osm_switch.c | 68 +++++------- opensm/opensm/osm_ucast_mgr.c | 17 ++-- opensm/opensm/osm_vl15intf.c | 4 +- 57 files changed, 687 insertions(+), 892 deletions(-)
opensm/include/opensm/osm_db.h +7 -10
@@ -144,7 +144,7 @@ typedef struct osm_db {* * SYNOPSIS */ -void osm_db_construct(IN osm_db_t * const p_db); +void osm_db_construct(IN osm_db_t * p_db);/* * PARAMETERS * p_db
@@ -166,7 +166,7 @@ void osm_db_construct(IN osm_db_t * const p_db);* * SYNOPSIS */ -void osm_db_destroy(IN osm_db_t * const p_db); +void osm_db_destroy(IN osm_db_t * p_db);/* * PARAMETERS * p_db
@@ -185,7 +185,7 @@ void osm_db_destroy(IN osm_db_t * const p_db);* * SYNOPSIS */ -int osm_db_init(IN osm_db_t * const p_db, IN osm_log_t * p_log); +int osm_db_init(IN osm_db_t * p_db, IN osm_log_t * p_log);/* * PARAMETERS *
@@ -211,8 +211,7 @@ int osm_db_init(IN osm_db_t * const p_db, IN osm_log_t * p_log);* * SYNOPSIS */ -osm_db_domain_t *osm_db_domain_init(IN osm_db_t * const p_db, - IN char *domain_name); +osm_db_domain_t *osm_db_domain_init(IN osm_db_t * p_db, IN char *domain_name);/* * PARAMETERS *
@@ -344,7 +343,7 @@ int osm_db_keys(IN osm_db_domain_t * p_domain, OUT cl_list_t * p_key_list);* SYNOPSIS */ /* lookup value by key */ -char *osm_db_lookup(IN osm_db_domain_t * p_domain, IN char *const p_key); +char *osm_db_lookup(IN osm_db_domain_t * p_domain, IN char *p_key);/* * PARAMETERS *
@@ -371,9 +370,7 @@ char *osm_db_lookup(IN osm_db_domain_t * p_domain, IN char *const p_key);* * SYNOPSIS */ -int -osm_db_update(IN osm_db_domain_t * p_domain, - IN char *const p_key, IN char *const p_val); +int osm_db_update(IN osm_db_domain_t * p_domain, IN char *p_key, IN char *p_val);/* * PARAMETERS *
@@ -405,7 +402,7 @@ osm_db_update(IN osm_db_domain_t * p_domain,* * SYNOPSIS */ -int osm_db_delete(IN osm_db_domain_t * p_domain, IN char *const p_key); +int osm_db_delete(IN osm_db_domain_t * p_domain, IN char *p_key);/* * PARAMETERS *
opensm/include/opensm/osm_db_pack.h +8 -12
@@ -72,7 +72,7 @@ BEGIN_C_DECLS* * SYNOPSIS */ -static inline osm_db_domain_t *osm_db_guid2lid_init(IN osm_db_t * const p_db) +static inline osm_db_domain_t *osm_db_guid2lid_init(IN osm_db_t * p_db) {return (osm_db_domain_init (p_db,"guid2lid" )); }
@@ -122,9 +122,8 @@ typedef struct osm_db_guid_elem {* * SYNOPSIS */ -int -osm_db_guid2lid_guids(IN osm_db_domain_t * const p_g2l, - OUT cl_qlist_t * p_guid_list); +int osm_db_guid2lid_guids(IN osm_db_domain_t * p_g2l, + OUT cl_qlist_t * p_guid_list);/* * PARAMETERS * p_g2l
@@ -153,10 +152,8 @@ osm_db_guid2lid_guids(IN osm_db_domain_t * const p_g2l,* * SYNOPSIS */ -int -osm_db_guid2lid_get(IN osm_db_domain_t * const p_g2l, - IN uint64_t guid, - OUT uint16_t * p_min_lid, OUT uint16_t * p_max_lid); +int osm_db_guid2lid_get(IN osm_db_domain_t * p_g2l, IN uint64_t guid, + OUT uint16_t * p_min_lid, OUT uint16_t * p_max_lid);/* * PARAMETERS * p_g2l
@@ -188,9 +185,8 @@ osm_db_guid2lid_get(IN osm_db_domain_t * const p_g2l,* * SYNOPSIS */ -int -osm_db_guid2lid_set(IN osm_db_domain_t * const p_g2l, - IN uint64_t guid, IN uint16_t min_lid, IN uint16_t max_lid); +int osm_db_guid2lid_set(IN osm_db_domain_t * p_g2l, IN uint64_t guid, + IN uint16_t min_lid, IN uint16_t max_lid);/* * PARAMETERS * p_g2l
@@ -222,7 +218,7 @@ osm_db_guid2lid_set(IN osm_db_domain_t * const p_g2l,* * SYNOPSIS */ -int osm_db_guid2lid_delete(IN osm_db_domain_t * const p_g2l, IN uint64_t guid); +int osm_db_guid2lid_delete(IN osm_db_domain_t * p_g2l, IN uint64_t guid);/* * PARAMETERS * p_g2l
opensm/include/opensm/osm_inform.h +8 -11
@@ -155,7 +155,7 @@ osm_infr_t *osm_infr_new(IN const osm_infr_t * p_infr_rec);* * SYNOPSIS */ -void osm_infr_delete(IN osm_infr_t * const p_infr); +void osm_infr_delete(IN osm_infr_t * p_infr);/* * PARAMETERS * p_infr
@@ -176,7 +176,7 @@ void osm_infr_delete(IN osm_infr_t * const p_infr);*/ osm_infr_t *osm_infr_get_by_rec(IN osm_subn_t const *p_subn, IN osm_log_t * p_log, - IN osm_infr_t * const p_infr_rec); + IN osm_infr_t * p_infr_rec);/* * PARAMETERS * p_subn
@@ -194,13 +194,11 @@ osm_infr_t *osm_infr_get_by_rec(IN osm_subn_t const *p_subn,* Inform Record, osm_infr_new, osm_infr_delete *********/ -void -osm_infr_insert_to_db(IN osm_subn_t * p_subn, - IN osm_log_t * p_log, IN osm_infr_t * p_infr); +void osm_infr_insert_to_db(IN osm_subn_t * p_subn, IN osm_log_t * p_log, + IN osm_infr_t * p_infr); -void -osm_infr_remove_from_db(IN osm_subn_t * p_subn, - IN osm_log_t * p_log, IN osm_infr_t * p_infr); +void osm_infr_remove_from_db(IN osm_subn_t * p_subn, IN osm_log_t * p_log, + IN osm_infr_t * p_infr);/****f* OpenSM: Inform Record/osm_report_notice * NAME
@@ -216,9 +214,8 @@ osm_infr_remove_from_db(IN osm_subn_t * p_subn,* * SYNOPSIS */ -ib_api_status_t -osm_report_notice(IN osm_log_t * const p_log, - IN osm_subn_t * p_subn, IN ib_mad_notice_attr_t * p_ntc); +ib_api_status_t osm_report_notice(IN osm_log_t * p_log, IN osm_subn_t * p_subn, + IN ib_mad_notice_attr_t * p_ntc);/* * PARAMETERS * p_rcv
opensm/include/opensm/osm_lid_mgr.h +5 -5
@@ -143,7 +143,7 @@ typedef struct osm_lid_mgr {* * SYNOPSIS */ -void osm_lid_mgr_construct(IN osm_lid_mgr_t * const p_mgr); +void osm_lid_mgr_construct(IN osm_lid_mgr_t * p_mgr);/* * PARAMETERS * p_mgr
@@ -173,7 +173,7 @@ void osm_lid_mgr_construct(IN osm_lid_mgr_t * const p_mgr);* * SYNOPSIS */ -void osm_lid_mgr_destroy(IN osm_lid_mgr_t * const p_mgr); +void osm_lid_mgr_destroy(IN osm_lid_mgr_t * p_mgr);/* * PARAMETERS * p_mgr
@@ -205,7 +205,7 @@ void osm_lid_mgr_destroy(IN osm_lid_mgr_t * const p_mgr);* SYNOPSIS */ ib_api_status_t -osm_lid_mgr_init(IN osm_lid_mgr_t * const p_mgr, IN struct osm_sm * sm); +osm_lid_mgr_init(IN osm_lid_mgr_t * p_mgr, IN struct osm_sm * sm);/* * PARAMETERS * p_mgr
@@ -235,7 +235,7 @@ osm_lid_mgr_init(IN osm_lid_mgr_t * const p_mgr, IN struct osm_sm * sm);* * SYNOPSIS */ -int osm_lid_mgr_process_sm(IN osm_lid_mgr_t * const p_mgr); +int osm_lid_mgr_process_sm(IN osm_lid_mgr_t * p_mgr);/* * PARAMETERS * p_mgr
@@ -260,7 +260,7 @@ int osm_lid_mgr_process_sm(IN osm_lid_mgr_t * const p_mgr);* * SYNOPSIS */ -int osm_lid_mgr_process_subnet(IN osm_lid_mgr_t * const p_mgr); +int osm_lid_mgr_process_subnet(IN osm_lid_mgr_t * p_mgr);/* * PARAMETERS * p_mgr
opensm/include/opensm/osm_log.h +19 -28
100 lines not on this page · raw message
opensm/include/opensm/osm_mad_pool.h +14 -16
@@ -109,7 +109,7 @@ typedef struct osm_mad_pool {* * SYNOPSIS */ -void osm_mad_pool_construct(IN osm_mad_pool_t * const p_pool); +void osm_mad_pool_construct(IN osm_mad_pool_t * p_pool);/* * PARAMETERS * p_pool
@@ -138,7 +138,7 @@ void osm_mad_pool_construct(IN osm_mad_pool_t * const p_pool);* * SYNOPSIS */ -void osm_mad_pool_destroy(IN osm_mad_pool_t * const p_pool); +void osm_mad_pool_destroy(IN osm_mad_pool_t * p_pool);/* * PARAMETERS * p_pool
@@ -166,7 +166,7 @@ void osm_mad_pool_destroy(IN osm_mad_pool_t * const p_pool);* * SYNOPSIS */ -ib_api_status_t osm_mad_pool_init(IN osm_mad_pool_t * const p_pool); +ib_api_status_t osm_mad_pool_init(IN osm_mad_pool_t * p_pool);/* * PARAMETERS * p_pool
@@ -191,10 +191,10 @@ ib_api_status_t osm_mad_pool_init(IN osm_mad_pool_t * const p_pool);* * SYNOPSIS */ -osm_madw_t *osm_mad_pool_get(IN osm_mad_pool_t * const p_pool, +osm_madw_t *osm_mad_pool_get(IN osm_mad_pool_t * p_pool, IN osm_bind_handle_t h_bind, - IN const uint32_t total_size, - IN const osm_mad_addr_t * const p_mad_addr); + IN uint32_t total_size, + IN const osm_mad_addr_t * p_mad_addr);/* * PARAMETERS * p_pool
@@ -235,8 +235,7 @@ osm_madw_t *osm_mad_pool_get(IN osm_mad_pool_t * const p_pool,* * SYNOPSIS */ -void osm_mad_pool_put(IN osm_mad_pool_t * const p_pool, - IN osm_madw_t * const p_madw); +void osm_mad_pool_put(IN osm_mad_pool_t * p_pool, IN osm_madw_t * p_madw);/* * PARAMETERS * p_pool
@@ -266,12 +265,11 @@ void osm_mad_pool_put(IN osm_mad_pool_t * const p_pool,* * SYNOPSIS */ -osm_madw_t *osm_mad_pool_get_wrapper(IN osm_mad_pool_t * const p_pool, +osm_madw_t *osm_mad_pool_get_wrapper(IN osm_mad_pool_t * p_pool, IN osm_bind_handle_t h_bind, - IN const uint32_t total_size, - IN const ib_mad_t * const p_mad, - IN const osm_mad_addr_t * -const p_mad_addr); + IN uint32_t total_size, + IN const ib_mad_t * p_mad, + IN const osm_mad_addr_t * p_mad_addr);/* * PARAMETERS * p_pool
@@ -316,7 +314,7 @@ osm_madw_t *osm_mad_pool_get_wrapper(IN osm_mad_pool_t * const p_pool,* * SYNOPSIS */ -osm_madw_t *osm_mad_pool_get_wrapper_raw(IN osm_mad_pool_t * const p_pool); +osm_madw_t *osm_mad_pool_get_wrapper_raw(IN osm_mad_pool_t * p_pool);/* * PARAMETERS * p_pool
@@ -347,9 +345,9 @@ osm_madw_t *osm_mad_pool_get_wrapper_raw(IN osm_mad_pool_t * const p_pool);* SYNOPSIS */ static inline uint32_t -osm_mad_pool_get_outstanding(IN const osm_mad_pool_t * const p_pool) +osm_mad_pool_get_outstanding(IN const osm_mad_pool_t * p_pool) { -return (p_pool->mads_out); +return p_pool->mads_out; }/*
opensm/include/opensm/osm_madw.h +26 -30
182 lines not on this page · raw message
opensm/include/opensm/osm_mcast_tbl.h +22 -31
126 lines not on this page · raw message
opensm/include/opensm/osm_mcm_port.h +1 -1
@@ -154,7 +154,7 @@ osm_mcm_port_t *osm_mcm_port_new(IN osm_port_t * port, IN struct osm_mgrp *mgrp,* * SYNOPSIS */ -void osm_mcm_port_delete(IN osm_mcm_port_t * const p_mcm); +void osm_mcm_port_delete(IN osm_mcm_port_t * p_mcm);/* * PARAMETERS * p_mcm
opensm/include/opensm/osm_multicast.h +9 -10
@@ -142,7 +142,7 @@ typedef struct osm_mgrp {* * SYNOPSIS */ -osm_mgrp_t *osm_mgrp_new(IN const ib_net16_t mlid, IN ib_member_rec_t * mcmr); +osm_mgrp_t *osm_mgrp_new(IN ib_net16_t mlid, IN ib_member_rec_t * mcmr);/* * PARAMETERS * mlid
@@ -170,7 +170,7 @@ osm_mgrp_t *osm_mgrp_new(IN const ib_net16_t mlid, IN ib_member_rec_t * mcmr);* * SYNOPSIS */ -void osm_mgrp_delete(IN osm_mgrp_t * const p_mgrp); +void osm_mgrp_delete(IN osm_mgrp_t * p_mgrp);/* * PARAMETERS * p_mgrp
@@ -194,9 +194,8 @@ void osm_mgrp_delete(IN osm_mgrp_t * const p_mgrp);* * SYNOPSIS */ -static inline boolean_t -osm_mgrp_is_guid(IN const osm_mgrp_t * const p_mgrp, - IN const ib_net64_t port_guid) +static inline boolean_t osm_mgrp_is_guid(IN const osm_mgrp_t * p_mgrp, + IN ib_net64_t port_guid) {return (cl_qmap_get (&p_mgrp->mcm_port_tbl, port_guid) !=cl_qmap_end (&p_mgrp->mcm_port_tbl));
@@ -229,7 +228,7 @@ osm_mgrp_is_guid(IN const osm_mgrp_t * const p_mgrp,* * SYNOPSIS */ -static inline boolean_t osm_mgrp_is_empty(IN const osm_mgrp_t * const p_mgrp) +static inline boolean_t osm_mgrp_is_empty(IN const osm_mgrp_t * p_mgrp) {return (cl_qmap_count (&p_mgrp->mcm_port_tbl) ==0 ); }
@@ -258,9 +257,9 @@ static inline boolean_t osm_mgrp_is_empty(IN const osm_mgrp_t * const p_mgrp)* * SYNOPSIS */ -static inline ib_net16_t osm_mgrp_get_mlid(IN const osm_mgrp_t * const p_mgrp) +static inline ib_net16_t osm_mgrp_get_mlid(IN const osm_mgrp_t * p_mgrp) { -return (p_mgrp->mlid); +return p_mgrp->mlid; }/*
@@ -321,8 +320,8 @@ osm_mcm_port_t *osm_mgrp_add_port(osm_subn_t *subn, osm_log_t *log,* * SYNOPSIS */ -osm_mcm_port_t *osm_mgrp_get_mcm_port(IN const osm_mgrp_t * const p_mgrp, - IN const ib_net64_t port_guid); +osm_mcm_port_t *osm_mgrp_get_mcm_port(IN const osm_mgrp_t * p_mgrp, + IN ib_net64_t port_guid);/* * PARAMETERS * p_mgrp
opensm/include/opensm/osm_node.h +34 -47
184 lines not on this page · raw message
opensm/include/opensm/osm_opensm.h +11 -15
@@ -246,7 +246,7 @@ typedef struct osm_opensm {* * SYNOPSIS */ -void osm_opensm_construct(IN osm_opensm_t * const p_osm); +void osm_opensm_construct(IN osm_opensm_t * p_osm);/* * PARAMETERS * p_osm
@@ -275,7 +275,7 @@ void osm_opensm_construct(IN osm_opensm_t * const p_osm);* * SYNOPSIS */ -void osm_opensm_destroy(IN osm_opensm_t * const p_osm); +void osm_opensm_destroy(IN osm_opensm_t * p_osm);/* * PARAMETERS * p_osm
@@ -303,9 +303,8 @@ void osm_opensm_destroy(IN osm_opensm_t * const p_osm);* * SYNOPSIS */ -ib_api_status_t -osm_opensm_init(IN osm_opensm_t * const p_osm, - IN const osm_subn_opt_t * const p_opt); +ib_api_status_t osm_opensm_init(IN osm_opensm_t * p_osm, + IN const osm_subn_opt_t * p_opt);/* * PARAMETERS * p_osm
@@ -333,7 +332,7 @@ osm_opensm_init(IN osm_opensm_t * const p_osm,* * SYNOPSIS */ -static inline void osm_opensm_sweep(IN osm_opensm_t * const p_osm) +static inline void osm_opensm_sweep(IN osm_opensm_t * p_osm) {osm_sm_sweep (&p_osm->sm); }
@@ -363,9 +362,8 @@ static inline void osm_opensm_sweep(IN osm_opensm_t * const p_osm)* * SYNOPSIS */ -static inline void -osm_opensm_set_log_flags(IN osm_opensm_t * const p_osm, - IN const osm_log_level_t log_flags) +static inline void osm_opensm_set_log_flags(IN osm_opensm_t * p_osm, + IN osm_log_level_t log_flags) {osm_log_set_level (&p_osm->log, log_flags); }
@@ -395,8 +393,7 @@ osm_opensm_set_log_flags(IN osm_opensm_t * const p_osm,* * SYNOPSIS */ -ib_api_status_t -osm_opensm_bind(IN osm_opensm_t * const p_osm, IN const ib_net64_t guid); +ib_api_status_t osm_opensm_bind(IN osm_opensm_t * p_osm, IN ib_net64_t guid);/* * PARAMETERS * p_osm
@@ -424,11 +421,10 @@ osm_opensm_bind(IN osm_opensm_t * const p_osm, IN const ib_net64_t guid);* SYNOPSIS */ static inline cl_status_t -osm_opensm_wait_for_subnet_up(IN osm_opensm_t * const p_osm, - IN uint32_t const wait_us, - IN boolean_t const interruptible) +osm_opensm_wait_for_subnet_up(IN osm_opensm_t * p_osm, IN uint32_t wait_us, + IN boolean_t interruptible) { -return (osm_sm_wait_for_subnet_up (&p_osm->sm, wait_us, interruptible)); +return osm_sm_wait_for_subnet_up (&p_osm->sm, wait_us, interruptible); }/*
opensm/include/opensm/osm_partition.h +6 -6
@@ -138,7 +138,7 @@ typedef struct osm_prtn {* * SYNOPSIS */ -void osm_prtn_delete(IN OUT osm_prtn_t ** const pp_prtn); +void osm_prtn_delete(IN OUT osm_prtn_t ** pp_prtn);/* * PARAMETERS * pp_prtn
@@ -164,7 +164,7 @@ void osm_prtn_delete(IN OUT osm_prtn_t ** const pp_prtn);* * SYNOPSIS */ -osm_prtn_t *osm_prtn_new(IN const char *name, IN const uint16_t pkey); +osm_prtn_t *osm_prtn_new(IN const char *name, IN uint16_t pkey);/* * PARAMETERS * name
@@ -192,8 +192,8 @@ osm_prtn_t *osm_prtn_new(IN const char *name, IN const uint16_t pkey);* * SYNOPSIS */ -static inline boolean_t osm_prtn_is_guid(IN const osm_prtn_t * const p_prtn, - IN const ib_net64_t guid) +static inline boolean_t osm_prtn_is_guid(IN const osm_prtn_t * p_prtn, + IN ib_net64_t guid) {return (cl_map_get (&p_prtn->full_guid_tbl, guid) !=NULL ) || (cl_map_get (&p_prtn->part_guid_tbl, guid) !=NULL );
@@ -225,8 +225,8 @@ static inline boolean_t osm_prtn_is_guid(IN const osm_prtn_t * const p_prtn,* * SYNOPSIS */ -ib_api_status_t osm_prtn_make_partitions(IN osm_log_t * const p_log, - IN osm_subn_t * const p_subn); +ib_api_status_t osm_prtn_make_partitions(IN osm_log_t * p_log, + IN osm_subn_t * p_subn);/* * PARAMETERS * p_log
opensm/include/opensm/osm_path.h +7 -8
@@ -107,7 +107,7 @@ typedef struct osm_dr_path {* * SYNOPSIS */ -static inline void osm_dr_path_construct(IN osm_dr_path_t * const p_path) +static inline void osm_dr_path_construct(IN osm_dr_path_t * p_path) {/* The first location in the path array is reserved. */ memset (p_path,0 ,sizeof (*p_path));
@@ -146,9 +146,8 @@ static inline void osm_dr_path_construct(IN osm_dr_path_t * const p_path)* SYNOPSIS */ static inline void -osm_dr_path_init(IN osm_dr_path_t * const p_path, - IN const osm_bind_handle_t h_bind, - IN const uint8_t hop_count, +osm_dr_path_init(IN osm_dr_path_t * p_path, IN osm_bind_handle_t h_bind, + IN uint8_t hop_count, IN const uint8_t path[IB_SUBNET_PATH_HOPS_MAX]) {/* The first location in the path array is reserved. */
@@ -189,8 +188,8 @@ osm_dr_path_init(IN osm_dr_path_t * const p_path,* * SYNOPSIS */ -static inline int -osm_dr_path_extend(IN osm_dr_path_t * const p_path, IN const uint8_t port_num) +static inline int osm_dr_path_extend(IN osm_dr_path_t * p_path, + IN uint8_t port_num) { p_path->hop_count++;
@@ -230,9 +229,9 @@ osm_dr_path_extend(IN osm_dr_path_t * const p_path, IN const uint8_t port_num)* SYNOPSIS */ static inline osm_bind_handle_t -osm_dr_path_get_bind_handle(IN const osm_dr_path_t * const p_path) +osm_dr_path_get_bind_handle(IN const osm_dr_path_t * p_path) { -return (p_path->h_bind); +return p_path->h_bind; }/*
opensm/include/opensm/osm_perfmgr.h +18 -20
@@ -152,8 +152,8 @@ typedef struct osm_perfmgr {*********/ /****f* OpenSM: Creation Functions */ -void osm_perfmgr_shutdown (osm_perfmgr_t *const p_perfmgr); -void osm_perfmgr_destroy (osm_perfmgr_t *const p_perfmgr); +void osm_perfmgr_shutdown (osm_perfmgr_t * p_perfmgr); +void osm_perfmgr_destroy (osm_perfmgr_t * p_perfmgr);/****f* OpenSM: Inline accessor functions */ inline static void osm_perfmgr_set_state(osm_perfmgr_t * p_perfmgr,
@@ -164,42 +164,41 @@ inline static void osm_perfmgr_set_state(osm_perfmgr_t * p_perfmgr,osm_sm_signal (p_perfmgr->sm,OSM_SIGNAL_PERFMGR_SWEEP ); } -inline static osm_perfmgr_state_t osm_perfmgr_get_state (osm_perfmgr_t - * p_perfmgr) +inline static osm_perfmgr_state_t osm_perfmgr_get_state (osm_perfmgr_t * perfmgr) { -return (p_perfmgr->state); +return perfmgr->state; }inline static char *osm_perfmgr_get_state_str (osm_perfmgr_t * p_perfmgr) {switch (p_perfmgr->state) {case PERFMGR_STATE_DISABLE : -return ("Disabled" ); +return "Disabled" ;break ;case PERFMGR_STATE_ENABLED : -return ("Enabled" ); +return "Enabled" ;break ;case PERFMGR_STATE_NO_DB : -return ("No Database" ); +return "No Database" ;break ; } -return ("UNKNOWN" ); +return "UNKNOWN" ; }inline static char *osm_perfmgr_get_sweep_state_str (osm_perfmgr_t * perfmgr) {switch (perfmgr->sweep_state) {case PERFMGR_SWEEP_SLEEP : -return ("Sleeping" ); +return "Sleeping" ;break ;case PERFMGR_SWEEP_ACTIVE : -return ("Active" ); +return "Active" ;break ;case PERFMGR_SWEEP_SUSPENDED : -return ("Suspended" ); +return "Suspended" ;break ; } -return ("UNKNOWN" ); +return "UNKNOWN" ; } inline static void osm_perfmgr_set_sweep_time_s(osm_perfmgr_t * p_perfmgr,
@@ -211,24 +210,23 @@ inline static void osm_perfmgr_set_sweep_time_s(osm_perfmgr_t * p_perfmgr,inline static uint16_t osm_perfmgr_get_sweep_time_s (osm_perfmgr_t * p_perfmgr) { -return (p_perfmgr->sweep_time_s); +return p_perfmgr->sweep_time_s; }void osm_perfmgr_clear_counters (osm_perfmgr_t * p_perfmgr);void osm_perfmgr_dump_counters (osm_perfmgr_t * p_perfmgr,perfmgr_db_dump_t dump_type); -void osm_perfmgr_print_counters (osm_perfmgr_t *pm,char *nodename, -FILE *fp); +void osm_perfmgr_print_counters (osm_perfmgr_t *pm,char *nodename,FILE *fp); -ib_api_status_t osm_perfmgr_bind (osm_perfmgr_t *const p_perfmgr, -const ib_net64_t port_guid); +ib_api_status_t osm_perfmgr_bind (osm_perfmgr_t * p_perfmgr, +ib_net64_t port_guid);void osm_perfmgr_process (osm_perfmgr_t * pm);/****f* OpenSM: PerfMgr/osm_perfmgr_init */ -ib_api_status_t osm_perfmgr_init (osm_perfmgr_t *const perfmgr, +ib_api_status_t osm_perfmgr_init (osm_perfmgr_t * perfmgr,struct osm_opensm *osm, -const osm_subn_opt_t *const p_opt); +const osm_subn_opt_t * p_opt);/* * PARAMETERS * perfmgr
opensm/include/opensm/osm_pkey.h +11 -14
@@ -439,9 +439,9 @@ osm_pkey_tbl_set(IN osm_pkey_tbl_t * p_pkey_tbl,* * SYNOPSIS */ -boolean_t osm_physp_share_this_pkey(IN const struct osm_physp *const p_physp1, - IN const struct osm_physp *const p_physp2, - IN const ib_net16_t pkey); +boolean_t osm_physp_share_this_pkey(IN const struct osm_physp * p_physp1, + IN const struct osm_physp * p_physp2, + IN ib_net16_t pkey);/* * PARAMETERS *
@@ -471,10 +471,8 @@ boolean_t osm_physp_share_this_pkey(IN const struct osm_physp *const p_physp1,* * SYNOPSIS */ -ib_net16_t osm_physp_find_common_pkey(IN const struct osm_physp *const - p_physp1, - IN const struct osm_physp *const - p_physp2); +ib_net16_t osm_physp_find_common_pkey(IN const struct osm_physp *p_physp1, + IN const struct osm_physp *p_physp2);/* * PARAMETERS *
@@ -517,8 +515,8 @@ ib_net16_t osm_physp_find_common_pkey(IN const struct osm_physp *const* SYNOPSIS */ boolean_t osm_physp_share_pkey(IN osm_log_t * p_log, - IN const struct osm_physp *const p_physp_1, - IN const struct osm_physp *const p_physp_2); + IN const struct osm_physp * p_physp_1, + IN const struct osm_physp * p_physp_2);/* * PARAMETERS
@@ -564,8 +562,8 @@ boolean_t osm_physp_share_pkey(IN osm_log_t * p_log,* SYNOPSIS */ boolean_t osm_port_share_pkey(IN osm_log_t * p_log, - IN const struct osm_port *const p_port_1, - IN const struct osm_port *const p_port_2); + IN const struct osm_port * p_port_1, + IN const struct osm_port * p_port_2);/* * PARAMETERS
@@ -610,9 +608,8 @@ boolean_t osm_port_share_pkey(IN osm_log_t * p_log,* * SYNOPSIS */ -boolean_t osm_physp_has_pkey(IN osm_log_t * p_log, - IN const ib_net16_t pkey, - IN const struct osm_physp *const p_physp); +boolean_t osm_physp_has_pkey(IN osm_log_t * p_log, IN ib_net16_t pkey, + IN const struct osm_physp *p_physp);/* * PARAMETERS
opensm/include/opensm/osm_port.h +73 -94
436 lines not on this page · raw message
opensm/include/opensm/osm_port_profile.h +4 -5
@@ -129,7 +129,7 @@ typedef long osm_port_mask_t[32 / sizeof(long)];* * SYNOPSIS */ -static inline void osm_port_prof_construct(IN osm_port_profile_t * const p_prof) +static inline void osm_port_prof_construct(IN osm_port_profile_t * p_prof) {CL_ASSERT (p_prof);memset (p_prof,0 ,sizeof (*p_prof));
@@ -157,8 +157,7 @@ static inline void osm_port_prof_construct(IN osm_port_profile_t * const p_prof)* * SYNOPSIS */ -static inline void -osm_port_prof_path_count_inc(IN osm_port_profile_t * const p_prof) +static inline void osm_port_prof_path_count_inc(IN osm_port_profile_t * p_prof) {CL_ASSERT (p_prof); p_prof->num_paths++;
@@ -186,9 +185,9 @@ osm_port_prof_path_count_inc(IN osm_port_profile_t * const p_prof)* SYNOPSIS */ static inline uint32_t -osm_port_prof_path_count_get(IN const osm_port_profile_t * const p_prof) +osm_port_prof_path_count_get(IN const osm_port_profile_t * p_prof) { -return (p_prof->num_paths); +return p_prof->num_paths; }/* * PARAMETERS
opensm/include/opensm/osm_qos_policy.h +1 -1
@@ -197,7 +197,7 @@ osm_qos_level_t * osm_qos_policy_get_qos_level_by_mpr(/***************************************************/ -int osm_qos_parse_policy_file(IN osm_subn_t * const p_subn); +int osm_qos_parse_policy_file(IN osm_subn_t * p_subn);/***************************************************/
opensm/include/opensm/osm_remote_sm.h +4 -6
@@ -112,7 +112,7 @@ typedef struct osm_remote_sm {* * SYNOPSIS */ -void osm_remote_sm_construct(IN osm_remote_sm_t * const p_sm); +void osm_remote_sm_construct(IN osm_remote_sm_t * p_sm);/* * PARAMETERS * p_sm
@@ -141,7 +141,7 @@ void osm_remote_sm_construct(IN osm_remote_sm_t * const p_sm);* * SYNOPSIS */ -void osm_remote_sm_destroy(IN osm_remote_sm_t * const p_sm); +void osm_remote_sm_destroy(IN osm_remote_sm_t * p_sm);/* * PARAMETERS * p_sm
@@ -169,10 +169,8 @@ void osm_remote_sm_destroy(IN osm_remote_sm_t * const p_sm);* * SYNOPSIS */ -void -osm_remote_sm_init(IN osm_remote_sm_t * const p_sm, - IN const osm_port_t * const p_port, - IN const ib_sm_info_t * const p_smi); +void osm_remote_sm_init(IN osm_remote_sm_t * p_sm, IN const osm_port_t * p_port, + IN const ib_sm_info_t * p_smi);/* * PARAMETERS * p_sm
opensm/include/opensm/osm_router.h +6 -8
@@ -116,7 +116,7 @@ typedef struct osm_router {* * SYNOPSIS */ -void osm_router_delete(IN OUT osm_router_t ** const pp_rtr); +void osm_router_delete(IN OUT osm_router_t ** pp_rtr);/* * PARAMETERS * p_rtr
@@ -140,7 +140,7 @@ void osm_router_delete(IN OUT osm_router_t ** const pp_rtr);* * SYNOPSIS */ -osm_router_t *osm_router_new(IN osm_port_t * const p_port); +osm_router_t *osm_router_new(IN osm_port_t * p_port);/* * PARAMETERS * p_node
@@ -164,10 +164,9 @@ osm_router_t *osm_router_new(IN osm_port_t * const p_port);* * SYNOPSIS */ -static inline osm_port_t *osm_router_get_port_ptr(IN const osm_router_t * -const p_rtr) +static inline osm_port_t *osm_router_get_port_ptr(IN const osm_router_t * p_rtr) { -return (p_rtr->p_port); +return p_rtr->p_port; }/*
@@ -193,10 +192,9 @@ static inline osm_port_t *osm_router_get_port_ptr(IN const osm_router_t ** * SYNOPSIS */ -static inline osm_node_t *osm_router_get_node_ptr(IN const osm_router_t * -const p_rtr) +static inline osm_node_t *osm_router_get_node_ptr(IN const osm_router_t * p_rtr) { -return (p_rtr->p_port->p_node); +return p_rtr->p_port->p_node; }/*
opensm/include/opensm/osm_sa.h +16 -22
@@ -191,7 +191,7 @@ typedef struct osm_sa {* * SYNOPSIS */ -void osm_sa_construct(IN osm_sa_t * const p_sa); +void osm_sa_construct(IN osm_sa_t * p_sa);/* * PARAMETERS * p_sa
@@ -220,7 +220,7 @@ void osm_sa_construct(IN osm_sa_t * const p_sa);* * SYNOPSIS */ -void osm_sa_shutdown(IN osm_sa_t * const p_sa); +void osm_sa_shutdown(IN osm_sa_t * p_sa);/* * PARAMETERS * p_sa
@@ -243,7 +243,7 @@ void osm_sa_shutdown(IN osm_sa_t * const p_sa);* * SYNOPSIS */ -void osm_sa_destroy(IN osm_sa_t * const p_sa); +void osm_sa_destroy(IN osm_sa_t * p_sa);/* * PARAMETERS * p_sa
@@ -271,15 +271,12 @@ void osm_sa_destroy(IN osm_sa_t * const p_sa);* * SYNOPSIS */ -ib_api_status_t osm_sa_init(IN osm_sm_t * const p_sm, - IN osm_sa_t * const p_sa, - IN osm_subn_t * const p_subn, - IN osm_vendor_t * const p_vendor, - IN osm_mad_pool_t * const p_mad_pool, - IN osm_log_t * const p_log, - IN osm_stats_t * const p_stats, - IN cl_dispatcher_t * const p_disp, - IN cl_plock_t * const p_lock); +ib_api_status_t osm_sa_init(IN osm_sm_t * p_sm, IN osm_sa_t * p_sa, + IN osm_subn_t * p_subn, IN osm_vendor_t * p_vendor, + IN osm_mad_pool_t * p_mad_pool, + IN osm_log_t * p_log, IN osm_stats_t * p_stats, + IN cl_dispatcher_t * p_disp, + IN cl_plock_t * p_lock);/* * PARAMETERS * p_sa
@@ -325,8 +322,7 @@ ib_api_status_t osm_sa_init(IN osm_sm_t * const p_sm,* * SYNOPSIS */ -ib_api_status_t -osm_sa_bind(IN osm_sa_t * const p_sa, IN const ib_net64_t port_guid); +ib_api_status_t osm_sa_bind(IN osm_sa_t * p_sa, IN ib_net64_t port_guid);/* * PARAMETERS * p_sa
@@ -354,8 +350,8 @@ osm_sa_bind(IN osm_sa_t * const p_sa, IN const ib_net64_t port_guid);* * SYNOPSIS */ -ib_api_status_t osm_sa_send(osm_sa_t *sa, IN osm_madw_t * const p_madw, - IN boolean_t const resp_expected); +ib_api_status_t osm_sa_send(osm_sa_t *sa, IN osm_madw_t * p_madw, + IN boolean_t resp_expected);/****f* IBA Base: Types/osm_sa_send_error * NAME
@@ -367,8 +363,8 @@ ib_api_status_t osm_sa_send(osm_sa_t *sa, IN osm_madw_t * const p_madw,* * SYNOPSIS */ -void osm_sa_send_error(IN osm_sa_t * sa, IN const osm_madw_t * const p_madw, - IN const ib_net16_t sa_status); +void osm_sa_send_error(IN osm_sa_t * sa, IN const osm_madw_t * p_madw, + IN ib_net16_t sa_status);/* * PARAMETERS * sa
@@ -470,10 +466,8 @@ int osm_sa_db_file_load(struct osm_opensm *p_osm);*/ ib_api_status_t -osm_mcmr_rcv_find_or_create_new_mgrp(IN osm_sa_t * sa, - IN uint64_t comp_mask, - IN ib_member_rec_t * -const p_recvd_mcmember_rec, +osm_mcmr_rcv_find_or_create_new_mgrp(IN osm_sa_t * sa, IN uint64_t comp_mask, + IN ib_member_rec_t * p_recvd_mcmember_rec, OUT osm_mgrp_t ** pp_mgrp);/* * PARAMETERS
opensm/include/opensm/osm_sa_mad_ctrl.h +14 -15
@@ -142,7 +142,7 @@ typedef struct osm_sa_mad_ctrl {* * SYNOPSIS */ -void osm_sa_mad_ctrl_construct(IN osm_sa_mad_ctrl_t * const p_ctrl); +void osm_sa_mad_ctrl_construct(IN osm_sa_mad_ctrl_t * p_ctrl);/* * PARAMETERS * p_ctrl
@@ -173,7 +173,7 @@ void osm_sa_mad_ctrl_construct(IN osm_sa_mad_ctrl_t * const p_ctrl);* * SYNOPSIS */ -void osm_sa_mad_ctrl_destroy(IN osm_sa_mad_ctrl_t * const p_ctrl); +void osm_sa_mad_ctrl_destroy(IN osm_sa_mad_ctrl_t * p_ctrl);/* * PARAMETERS * p_ctrl
@@ -204,14 +204,14 @@ void osm_sa_mad_ctrl_destroy(IN osm_sa_mad_ctrl_t * const p_ctrl);* * SYNOPSIS */ -ib_api_status_t osm_sa_mad_ctrl_init(IN osm_sa_mad_ctrl_t * const p_ctrl, +ib_api_status_t osm_sa_mad_ctrl_init(IN osm_sa_mad_ctrl_t * p_ctrl, IN struct osm_sa * sa, - IN osm_mad_pool_t * const p_mad_pool, - IN osm_vendor_t * const p_vendor, - IN osm_subn_t * const p_subn, - IN osm_log_t * const p_log, - IN osm_stats_t * const p_stats, - IN cl_dispatcher_t * const p_disp); + IN osm_mad_pool_t * p_mad_pool, + IN osm_vendor_t * p_vendor, + IN osm_subn_t * p_subn, + IN osm_log_t * p_log, + IN osm_stats_t * p_stats, + IN cl_dispatcher_t * p_disp);/* * PARAMETERS * p_ctrl
@@ -256,9 +256,8 @@ ib_api_status_t osm_sa_mad_ctrl_init(IN osm_sa_mad_ctrl_t * const p_ctrl,* * SYNOPSIS */ -ib_api_status_t -osm_sa_mad_ctrl_bind(IN osm_sa_mad_ctrl_t * const p_ctrl, - IN const ib_net64_t port_guid); +ib_api_status_t osm_sa_mad_ctrl_bind(IN osm_sa_mad_ctrl_t * p_ctrl, + IN ib_net64_t port_guid);/* * PARAMETERS * p_ctrl
@@ -287,7 +286,7 @@ osm_sa_mad_ctrl_bind(IN osm_sa_mad_ctrl_t * const p_ctrl,* * SYNOPSIS */ -ib_api_status_t osm_sa_mad_ctrl_unbind(IN osm_sa_mad_ctrl_t * const p_ctrl); +ib_api_status_t osm_sa_mad_ctrl_unbind(IN osm_sa_mad_ctrl_t * p_ctrl);/* * PARAMETERS * p_ctrl
@@ -313,9 +312,9 @@ ib_api_status_t osm_sa_mad_ctrl_unbind(IN osm_sa_mad_ctrl_t * const p_ctrl);* SYNOPSIS */ static inline osm_bind_handle_t -osm_sa_mad_ctrl_get_bind_handle(IN const osm_sa_mad_ctrl_t * const p_ctrl) +osm_sa_mad_ctrl_get_bind_handle(IN const osm_sa_mad_ctrl_t * p_ctrl) { -return (p_ctrl->h_bind); +return p_ctrl->h_bind; }/*
opensm/include/opensm/osm_service.h +8 -11
@@ -146,9 +146,8 @@ osm_svcr_t *osm_svcr_new(IN const ib_service_record_t * p_svc_rec);* * SYNOPSIS */ -void -osm_svcr_init(IN osm_svcr_t * const p_svcr, - IN const ib_service_record_t * p_svc_rec); +void osm_svcr_init(IN osm_svcr_t * p_svcr, + IN const ib_service_record_t * p_svc_rec);/* * PARAMETERS * p_svc_rec
@@ -169,7 +168,7 @@ osm_svcr_init(IN osm_svcr_t * const p_svcr,* * SYNOPSIS */ -void osm_svcr_delete(IN osm_svcr_t * const p_svcr); +void osm_svcr_delete(IN osm_svcr_t * p_svcr);/* * PARAMETERS * p_svc_rec
@@ -181,14 +180,12 @@ void osm_svcr_delete(IN osm_svcr_t * const p_svcr); osm_svcr_t *osm_svcr_get_by_rid(IN osm_subn_t const *p_subn, IN osm_log_t * p_log, - IN ib_service_record_t * const p_svc_rec); + IN ib_service_record_t * p_svc_rec); -void -osm_svcr_insert_to_db(IN osm_subn_t * p_subn, - IN osm_log_t * p_log, IN osm_svcr_t * p_svcr); -void -osm_svcr_remove_from_db(IN osm_subn_t * p_subn, - IN osm_log_t * p_log, IN osm_svcr_t * p_svcr); +void osm_svcr_insert_to_db(IN osm_subn_t * p_subn, IN osm_log_t * p_log, + IN osm_svcr_t * p_svcr); +void osm_svcr_remove_from_db(IN osm_subn_t * p_subn, IN osm_log_t * p_log, + IN osm_svcr_t * p_svcr); END_C_DECLS#endif /* _OSM_SVCR_H_ */
opensm/include/opensm/osm_sm.h +33 -47
153 lines not on this page · raw message
opensm/include/opensm/osm_sm_mad_ctrl.h +15 -17
@@ -147,7 +147,7 @@ typedef struct osm_sm_mad_ctrl {* * SYNOPSIS */ -void osm_sm_mad_ctrl_construct(IN osm_sm_mad_ctrl_t * const p_ctrl); +void osm_sm_mad_ctrl_construct(IN osm_sm_mad_ctrl_t * p_ctrl);/* * PARAMETERS * p_ctrl
@@ -178,7 +178,7 @@ void osm_sm_mad_ctrl_construct(IN osm_sm_mad_ctrl_t * const p_ctrl);* * SYNOPSIS */ -void osm_sm_mad_ctrl_destroy(IN osm_sm_mad_ctrl_t * const p_ctrl); +void osm_sm_mad_ctrl_destroy(IN osm_sm_mad_ctrl_t * p_ctrl);/* * PARAMETERS * p_ctrl
@@ -209,16 +209,15 @@ void osm_sm_mad_ctrl_destroy(IN osm_sm_mad_ctrl_t * const p_ctrl);* * SYNOPSIS */ -ib_api_status_t -osm_sm_mad_ctrl_init(IN osm_sm_mad_ctrl_t * const p_ctrl, - IN osm_subn_t * const p_subn, - IN osm_mad_pool_t * const p_mad_pool, - IN osm_vl15_t * const p_vl15, - IN osm_vendor_t * const p_vendor, - IN osm_log_t * const p_log, - IN osm_stats_t * const p_stats, - IN cl_plock_t * const p_lock, - IN cl_dispatcher_t * const p_disp); +ib_api_status_t osm_sm_mad_ctrl_init(IN osm_sm_mad_ctrl_t * p_ctrl, + IN osm_subn_t * p_subn, + IN osm_mad_pool_t * p_mad_pool, + IN osm_vl15_t * p_vl15, + IN osm_vendor_t * p_vendor, + IN osm_log_t * p_log, + IN osm_stats_t * p_stats, + IN cl_plock_t * p_lock, + IN cl_dispatcher_t * p_disp);/* * PARAMETERS * p_ctrl
@@ -266,9 +265,8 @@ osm_sm_mad_ctrl_init(IN osm_sm_mad_ctrl_t * const p_ctrl,* * SYNOPSIS */ -ib_api_status_t -osm_sm_mad_ctrl_bind(IN osm_sm_mad_ctrl_t * const p_ctrl, - IN const ib_net64_t port_guid); +ib_api_status_t osm_sm_mad_ctrl_bind(IN osm_sm_mad_ctrl_t * p_ctrl, + IN ib_net64_t port_guid);/* * PARAMETERS * p_ctrl
@@ -298,9 +296,9 @@ osm_sm_mad_ctrl_bind(IN osm_sm_mad_ctrl_t * const p_ctrl,* SYNOPSIS */ static inline osm_bind_handle_t -osm_sm_mad_ctrl_get_bind_handle(IN const osm_sm_mad_ctrl_t * const p_ctrl) +osm_sm_mad_ctrl_get_bind_handle(IN const osm_sm_mad_ctrl_t * p_ctrl) { -return (p_ctrl->h_bind); +return p_ctrl->h_bind; }/*
opensm/include/opensm/osm_subnet.h +18 -20
@@ -651,7 +651,7 @@ typedef struct osm_subn {* * SYNOPSIS */ -void osm_subn_construct(IN osm_subn_t * const p_subn); +void osm_subn_construct(IN osm_subn_t * p_subn);/* * PARAMETERS * p_subn
@@ -680,7 +680,7 @@ void osm_subn_construct(IN osm_subn_t * const p_subn);* * SYNOPSIS */ -void osm_subn_destroy(IN osm_subn_t * const p_subn); +void osm_subn_destroy(IN osm_subn_t * p_subn);/* * PARAMETERS * p_subn
@@ -708,10 +708,9 @@ void osm_subn_destroy(IN osm_subn_t * const p_subn);* * SYNOPSIS */ -ib_api_status_t -osm_subn_init(IN osm_subn_t * const p_subn, - IN struct osm_opensm *const p_osm, - IN const osm_subn_opt_t * const p_opt); +ib_api_status_t osm_subn_init(IN osm_subn_t * p_subn, + IN struct osm_opensm *p_osm, + IN const osm_subn_opt_t * p_opt);/* * PARAMETERS * p_subn
@@ -752,11 +751,10 @@ struct osm_mgrp;* * SYNOPSIS */ -ib_api_status_t -osm_get_gid_by_mad_addr(IN struct osm_log *p_log, - IN const osm_subn_t * p_subn, - IN struct osm_mad_addr *p_mad_addr, - OUT ib_gid_t * p_gid); +ib_api_status_t osm_get_gid_by_mad_addr(IN struct osm_log *p_log, + IN const osm_subn_t * p_subn, + IN struct osm_mad_addr *p_mad_addr, + OUT ib_gid_t * p_gid);/* * PARAMETERS * p_log
@@ -860,7 +858,7 @@ struct osm_port *osm_get_port_by_mad_addr(IN struct osm_log *p_log,* SYNOPSIS */ struct osm_switch *osm_get_switch_by_guid(IN const osm_subn_t * p_subn, - IN uint64_t guid); + IN uint64_t guid);/* * PARAMETERS * p_subn
@@ -889,7 +887,7 @@ struct osm_switch *osm_get_switch_by_guid(IN const osm_subn_t * p_subn,* SYNOPSIS */ struct osm_node *osm_get_node_by_guid(IN osm_subn_t const *p_subn, - IN uint64_t guid); + IN uint64_t guid);/* * PARAMETERS * p_subn
@@ -918,7 +916,7 @@ struct osm_node *osm_get_node_by_guid(IN osm_subn_t const *p_subn,* SYNOPSIS */ struct osm_port *osm_get_port_by_guid(IN osm_subn_t const *p_subn, - IN ib_net64_t guid); + IN ib_net64_t guid);/* * PARAMETERS * p_subn
@@ -1032,7 +1030,7 @@ struct osm_physp *osm_get_physp_by_mad_addr(IN struct osm_log *p_log,* * SYNOPSIS */ -void osm_subn_set_default_opt(IN osm_subn_opt_t * const p_opt); +void osm_subn_set_default_opt(IN osm_subn_opt_t * p_opt);/* * PARAMETERS *
@@ -1058,7 +1056,7 @@ void osm_subn_set_default_opt(IN osm_subn_opt_t * const p_opt);* * SYNOPSIS */ -int osm_subn_parse_conf_file (char *conf_file,osm_subn_opt_t *const p_opt); +int osm_subn_parse_conf_file (char *conf_file,osm_subn_opt_t * p_opt);/* * PARAMETERS *
@@ -1080,7 +1078,7 @@ int osm_subn_parse_conf_file(char *conf_file, osm_subn_opt_t * const p_opt);* * SYNOPSIS */ -int osm_subn_rescan_conf_files(IN osm_subn_t * const p_subn); +int osm_subn_rescan_conf_files(IN osm_subn_t * p_subn);/* * PARAMETERS *
@@ -1102,7 +1100,7 @@ int osm_subn_rescan_conf_files(IN osm_subn_t * const p_subn);* * SYNOPSIS */ -int osm_subn_output_conf(FILE *out, IN osm_subn_opt_t * const p_opt); +int osm_subn_output_conf(FILE *out, IN osm_subn_opt_t * p_opt);/* * PARAMETERS *
@@ -1125,7 +1123,7 @@ int osm_subn_output_conf(FILE *out, IN osm_subn_opt_t * const p_opt);* * SYNOPSIS */ -int osm_subn_write_conf_file(char *file_name, IN osm_subn_opt_t * const p_opt); +int osm_subn_write_conf_file(char *file_name, IN osm_subn_opt_t * p_opt);/* * PARAMETERS *
@@ -1139,7 +1137,7 @@ int osm_subn_write_conf_file(char *file_name, IN osm_subn_opt_t * const p_opt);* Assumes the conf file is part of the cache dir which defaults to * OSM_DEFAULT_CACHE_DIR or OSM_CACHE_DIR the name is opensm.opts *********/ -int osm_subn_verify_config (osm_subn_opt_t *const p_opt); +int osm_subn_verify_config (osm_subn_opt_t * p_opt); END_C_DECLS#endif /* _OSM_SUBNET_H_ */
opensm/include/opensm/osm_switch.h +65 -87
339 lines not on this page · raw message
opensm/include/opensm/osm_ucast_mgr.h +7 -7
@@ -146,7 +146,7 @@ typedef struct osm_ucast_mgr {* * SYNOPSIS */ -void osm_ucast_mgr_construct(IN osm_ucast_mgr_t * const p_mgr); +void osm_ucast_mgr_construct(IN osm_ucast_mgr_t * p_mgr);/* * PARAMETERS * p_mgr
@@ -176,7 +176,7 @@ void osm_ucast_mgr_construct(IN osm_ucast_mgr_t * const p_mgr);* * SYNOPSIS */ -void osm_ucast_mgr_destroy(IN osm_ucast_mgr_t * const p_mgr); +void osm_ucast_mgr_destroy(IN osm_ucast_mgr_t * p_mgr);/* * PARAMETERS * p_mgr
@@ -207,8 +207,8 @@ void osm_ucast_mgr_destroy(IN osm_ucast_mgr_t * const p_mgr);* * SYNOPSIS */ -ib_api_status_t -osm_ucast_mgr_init(IN osm_ucast_mgr_t * const p_mgr, IN struct osm_sm * sm); +ib_api_status_t osm_ucast_mgr_init(IN osm_ucast_mgr_t * p_mgr, + IN struct osm_sm * sm);/* * PARAMETERS * p_mgr
@@ -238,7 +238,7 @@ osm_ucast_mgr_init(IN osm_ucast_mgr_t * const p_mgr, IN struct osm_sm * sm);* * SYNOPSIS */ -void osm_ucast_mgr_set_fwd_tables(IN osm_ucast_mgr_t * const p_mgr); +void osm_ucast_mgr_set_fwd_tables(IN osm_ucast_mgr_t * p_mgr);/* * PARAMETERS * p_mgr
@@ -257,7 +257,7 @@ void osm_ucast_mgr_set_fwd_tables(IN osm_ucast_mgr_t * const p_mgr);* * SYNOPSIS */ -int osm_ucast_mgr_build_lid_matrices(IN osm_ucast_mgr_t * const p_mgr); +int osm_ucast_mgr_build_lid_matrices(IN osm_ucast_mgr_t * p_mgr);/* * PARAMETERS * p_mgr
@@ -280,7 +280,7 @@ int osm_ucast_mgr_build_lid_matrices(IN osm_ucast_mgr_t * const p_mgr);* * SYNOPSIS */ -int osm_ucast_mgr_process(IN osm_ucast_mgr_t * const p_mgr); +int osm_ucast_mgr_process(IN osm_ucast_mgr_t * p_mgr);/* * PARAMETERS * p_mgr
opensm/include/opensm/osm_vl15intf.h +8 -14
@@ -176,7 +176,7 @@ typedef struct osm_vl15 {* * SYNOPSIS */ -void osm_vl15_construct(IN osm_vl15_t * const p_vl15); +void osm_vl15_construct(IN osm_vl15_t * p_vl15);/* * PARAMETERS * p_vl15
@@ -205,8 +205,7 @@ void osm_vl15_construct(IN osm_vl15_t * const p_vl15);* * SYNOPSIS */ -void -osm_vl15_destroy(IN osm_vl15_t * const p_vl15, IN struct osm_mad_pool *p_pool); +void osm_vl15_destroy(IN osm_vl15_t * p_vl15, IN struct osm_mad_pool *p_pool);/* * PARAMETERS * p_vl15
@@ -242,12 +241,9 @@ osm_vl15_destroy(IN osm_vl15_t * const p_vl15, IN struct osm_mad_pool *p_pool);* * SYNOPSIS */ -ib_api_status_t -osm_vl15_init(IN osm_vl15_t * const p_vl15, - IN osm_vendor_t * const p_vend, - IN osm_log_t * const p_log, - IN osm_stats_t * const p_stats, - IN const int32_t max_wire_smps); +ib_api_status_t osm_vl15_init(IN osm_vl15_t * p_vl15, IN osm_vendor_t * p_vend, + IN osm_log_t * p_log, IN osm_stats_t * p_stats, + IN int32_t max_wire_smps);/* * PARAMETERS * p_vl15
@@ -284,7 +280,7 @@ osm_vl15_init(IN osm_vl15_t * const p_vl15,* * SYNOPSIS */ -void osm_vl15_post(IN osm_vl15_t * const p_vl15, IN osm_madw_t * const p_madw); +void osm_vl15_post(IN osm_vl15_t * p_vl15, IN osm_madw_t * p_madw);/* * PARAMETERS * p_vl15
@@ -313,7 +309,7 @@ void osm_vl15_post(IN osm_vl15_t * const p_vl15, IN osm_madw_t * const p_madw);* * SYNOPSIS */ -void osm_vl15_poll(IN osm_vl15_t * const p_vl); +void osm_vl15_poll(IN osm_vl15_t * p_vl);/* * PARAMETERS * p_vl15
@@ -343,9 +339,7 @@ void osm_vl15_poll(IN osm_vl15_t * const p_vl);* * SYNOPSIS */ -void -osm_vl15_shutdown(IN osm_vl15_t * const p_vl, - IN osm_mad_pool_t * const p_mad_pool); +void osm_vl15_shutdown(IN osm_vl15_t * p_vl, IN osm_mad_pool_t * p_mad_pool);/* * PARAMETERS * p_vl15
opensm/opensm/osm_db_files.c +7 -7
@@ -119,7 +119,7 @@ typedef struct osm_db_imp {/*************************************************************************** ***************************************************************************/ -void osm_db_construct(IN osm_db_t * const p_db) +void osm_db_construct(IN osm_db_t * p_db) {memset (p_db,0 ,sizeof (osm_db_t));cl_list_construct (&p_db->domains);
@@ -143,7 +143,7 @@ void osm_db_domain_destroy(IN osm_db_domain_t * p_db_domain)/*************************************************************************** ***************************************************************************/ -void osm_db_destroy(IN osm_db_t * const p_db) +void osm_db_destroy(IN osm_db_t * p_db) {osm_db_domain_t *p_domain;
@@ -157,7 +157,7 @@ void osm_db_destroy(IN osm_db_t * const p_db)/*************************************************************************** ***************************************************************************/ -int osm_db_init(IN osm_db_t * const p_db, IN osm_log_t * p_log) +int osm_db_init(IN osm_db_t * p_db, IN osm_log_t * p_log) {osm_db_imp_t *p_db_imp;struct stat dstat;
@@ -201,7 +201,7 @@ int osm_db_init(IN osm_db_t * const p_db, IN osm_log_t * p_log)/*************************************************************************** ***************************************************************************/ -osm_db_domain_t *osm_db_domain_init(IN osm_db_t * const p_db, IN char *domain_name) +osm_db_domain_t *osm_db_domain_init(IN osm_db_t * p_db, IN char *domain_name) {osm_db_domain_t *p_domain;osm_db_domain_imp_t *p_domain_imp;
@@ -537,7 +537,7 @@ int osm_db_keys(IN osm_db_domain_t * p_domain, OUT cl_list_t * p_key_list)/*************************************************************************** ***************************************************************************/ -char *osm_db_lookup(IN osm_db_domain_t * p_domain, IN char * const p_key) +char *osm_db_lookup(IN osm_db_domain_t * p_domain, IN char *p_key) {osm_db_domain_imp_t *p_domain_imp = (osm_db_domain_imp_t *) p_domain->p_domain_imp;
@@ -555,7 +555,7 @@ char *osm_db_lookup(IN osm_db_domain_t * p_domain, IN char * const p_key)/*************************************************************************** ***************************************************************************/ -int osm_db_update(IN osm_db_domain_t * p_domain, IN char * const p_key, IN char * const p_val) +int osm_db_update(IN osm_db_domain_t * p_domain, IN char *p_key, IN char *p_val) {osm_log_t *p_log = p_domain->p_db->p_log; osm_db_domain_imp_t *p_domain_imp =
@@ -595,7 +595,7 @@ int osm_db_update(IN osm_db_domain_t * p_domain, IN char * const p_key, IN char/*************************************************************************** ***************************************************************************/ -int osm_db_delete(IN osm_db_domain_t * p_domain, IN char * const p_key) +int osm_db_delete(IN osm_db_domain_t * p_domain, IN char *p_key) {osm_log_t *p_log = p_domain->p_db->p_log; osm_db_domain_imp_t *p_domain_imp =
opensm/opensm/osm_db_pack.c +4 -4
@@ -83,7 +83,7 @@ static inline int unpack_lids(IN char *p_lid_str, OUT uint16_t * p_min_lid,return 0 ; } -int osm_db_guid2lid_guids(IN osm_db_domain_t * const p_g2l, +int osm_db_guid2lid_guids(IN osm_db_domain_t * p_g2l, OUT cl_qlist_t * p_guid_list) {char *p_key;
@@ -109,7 +109,7 @@ int osm_db_guid2lid_guids(IN osm_db_domain_t * const p_g2l,return 0 ; } -int osm_db_guid2lid_get(IN osm_db_domain_t * const p_g2l, IN uint64_t guid, +int osm_db_guid2lid_get(IN osm_db_domain_t * p_g2l, IN uint64_t guid, OUT uint16_t * p_min_lid, OUT uint16_t * p_max_lid) {char guid_str[20 ];
@@ -131,7 +131,7 @@ int osm_db_guid2lid_get(IN osm_db_domain_t * const p_g2l, IN uint64_t guid,return 0 ; } -int osm_db_guid2lid_set(IN osm_db_domain_t * const p_g2l, IN uint64_t guid, +int osm_db_guid2lid_set(IN osm_db_domain_t * p_g2l, IN uint64_t guid, IN uint16_t min_lid, IN uint16_t max_lid) {char guid_str[20 ];
@@ -143,7 +143,7 @@ int osm_db_guid2lid_set(IN osm_db_domain_t * const p_g2l, IN uint64_t guid,return (osm_db_update (p_g2l, guid_str, lid_str)); } -int osm_db_guid2lid_delete(IN osm_db_domain_t * const p_g2l, IN uint64_t guid) +int osm_db_guid2lid_delete(IN osm_db_domain_t * p_g2l, IN uint64_t guid) {char guid_str[20 ];pack_guid (guid, guid_str);
opensm/opensm/osm_inform.c +4 -4
@@ -61,7 +61,7 @@ typedef struct osm_infr_match_ctxt {/********************************************************************** **********************************************************************/ -void osm_infr_delete(IN osm_infr_t * const p_infr) +void osm_infr_delete(IN osm_infr_t * p_infr) {free (p_infr); }
@@ -83,7 +83,7 @@ osm_infr_t *osm_infr_new(IN const osm_infr_t * p_infr_rec)/********************************************************************** **********************************************************************/ -static void dump_all_informs(IN osm_subn_t const *p_subn, IN osm_log_t * p_log) +static void dump_all_informs(IN const osm_subn_t * p_subn, IN osm_log_t * p_log) {cl_list_item_t *p_list_item;
@@ -214,7 +214,7 @@ Exit:**********************************************************************/ osm_infr_t *osm_infr_get_by_rec(IN osm_subn_t const *p_subn, IN osm_log_t * p_log, - IN osm_infr_t * const p_infr_rec) + IN osm_infr_t * p_infr_rec) {cl_list_item_t *p_list_item;
@@ -572,7 +572,7 @@ static void log_notice(osm_log_t * log, osm_log_level_t level, sizeof gid_str)); } -ib_api_status_t osm_report_notice(IN osm_log_t * const p_log, IN osm_subn_t * p_subn, +ib_api_status_t osm_report_notice(IN osm_log_t * p_log, IN osm_subn_t * p_subn, IN ib_mad_notice_attr_t * p_ntc) {osm_infr_match_ctxt_t context;
opensm/opensm/osm_lid_mgr.c +10 -11
@@ -106,14 +106,14 @@ typedef struct osm_lid_mgr_range {/********************************************************************** **********************************************************************/ -void osm_lid_mgr_construct(IN osm_lid_mgr_t * const p_mgr) +void osm_lid_mgr_construct(IN osm_lid_mgr_t * p_mgr) {memset (p_mgr,0 ,sizeof (*p_mgr)); }/********************************************************************** **********************************************************************/ -void osm_lid_mgr_destroy(IN osm_lid_mgr_t * const p_mgr) +void osm_lid_mgr_destroy(IN osm_lid_mgr_t * p_mgr) {cl_list_item_t *p_item;
@@ -224,7 +224,7 @@ Exit:/********************************************************************** **********************************************************************/ -ib_api_status_t osm_lid_mgr_init(IN osm_lid_mgr_t * const p_mgr, IN osm_sm_t * sm) +ib_api_status_t osm_lid_mgr_init(IN osm_lid_mgr_t * p_mgr, IN osm_sm_t * sm) {ib_api_status_t status =IB_SUCCESS ;
@@ -585,11 +585,11 @@ AfterScanningLids:check if the given range of lids is free **********************************************************************/ static boolean_t lid_mgr_is_range_not_persistent(IN osm_lid_mgr_t * p_mgr, - IN const uint16_t lid, - IN const uint16_t num_lids) + IN uint16_t lid, + IN uint16_t num_lids) {uint16_t i; -const uint8_t start_lid = (uint8_t ) (1 << p_mgr->p_subn->opt.lmc); +uint8_t start_lid = (uint8_t ) (1 << p_mgr->p_subn->opt.lmc);if (lid < start_lid)return FALSE;
@@ -605,7 +605,7 @@ static boolean_t lid_mgr_is_range_not_persistent(IN osm_lid_mgr_t * p_mgr,find a free lid range **********************************************************************/ static void lid_mgr_find_free_lid_range(IN osm_lid_mgr_t * p_mgr, - IN const uint8_t num_lids, + IN uint8_t num_lids, OUT uint16_t * p_min_lid, OUT uint16_t * p_max_lid) {
@@ -823,8 +823,7 @@ static void lid_mgr_set_remote_pi_state_to_init(IN osm_lid_mgr_t * p_mgr,**********************************************************************/ static int lid_mgr_set_physp_pi(IN osm_lid_mgr_t * p_mgr, IN osm_port_t * p_port, - IN osm_physp_t * p_physp, - IN ib_net16_t const lid) + IN osm_physp_t * p_physp, IN ib_net16_t lid) {uint8_t payload[IB_SMP_DATA_SIZE ];ib_port_info_t *p_pi = (ib_port_info_t *) payload;
@@ -1145,7 +1144,7 @@ Exit:/********************************************************************** **********************************************************************/ -int osm_lid_mgr_process_sm(IN osm_lid_mgr_t * const p_mgr) +int osm_lid_mgr_process_sm(IN osm_lid_mgr_t * p_mgr) {int ret;
@@ -1173,7 +1172,7 @@ int osm_lid_mgr_process_sm(IN osm_lid_mgr_t * const p_mgr)1.2 if a change is required send the port info 2 if any change send the signal PENDING... **********************************************************************/ -int osm_lid_mgr_process_subnet(IN osm_lid_mgr_t * const p_mgr) +int osm_lid_mgr_process_subnet(IN osm_lid_mgr_t * p_mgr) {cl_qmap_t *p_port_guid_tbl;osm_port_t *p_port;
opensm/opensm/osm_log.c +13 -17
@@ -80,7 +80,7 @@ void OsmReportState(IN const char *p_str);#ifndef WIN32 -static void truncate_log_file (osm_log_t *const p_log) +static void truncate_log_file (osm_log_t * p_log) {int fd =fileno (p_log->out_port);if (ftruncate (fd,0 ) <0 )
@@ -94,15 +94,15 @@ static void truncate_log_file(osm_log_t * const p_log)#else /* Windows */ -static void truncate_log_file (osm_log_t *const p_log) +static void truncate_log_file (osm_log_t * p_log) {fprintf (stderr,"truncate_log_file: cannot truncate on windows system (yet)\n" ); }#endif /* ndef WIN32 */ -void osm_log(IN osm_log_t * const p_log, - IN const osm_log_level_t verbosity, IN const char *p_str, ...) +void osm_log(IN osm_log_t * p_log, IN osm_log_level_t verbosity, + IN const char *p_str, ...) {char buffer[LOG_ENTRY_SIZE_MAX ];va_list args;
@@ -198,8 +198,8 @@ _retry:cl_spinlock_release (&p_log->lock); } -void osm_log_raw(IN osm_log_t * const p_log, - IN const osm_log_level_t verbosity, IN const char *p_buf) +void osm_log_raw(IN osm_log_t * p_log, IN osm_log_level_t verbosity, + IN const char *p_buf) {if (p_log->level & verbosity) {cl_spinlock_acquire (&p_log->lock);
@@ -296,12 +296,10 @@ int osm_log_reopen_file(osm_log_t * p_log)return ret; } -ib_api_status_t osm_log_init_v2(IN osm_log_t * const p_log, - IN const boolean_t flush, - IN const uint8_t log_flags, - IN const char *log_file, - IN const unsigned long max_size, - IN const boolean_t accum_log_file) +ib_api_status_t osm_log_init_v2(IN osm_log_t * p_log, IN boolean_t flush, + IN uint8_t log_flags, IN const char *log_file, +IN unsigned long max_size, + IN boolean_t accum_log_file) { p_log->level = log_flags; p_log->flush = flush;
@@ -326,11 +324,9 @@ ib_api_status_t osm_log_init_v2(IN osm_log_t * const p_log,return IB_ERROR ; } -ib_api_status_t osm_log_init(IN osm_log_t * const p_log, - IN const boolean_t flush, - IN const uint8_t log_flags, - IN const char *log_file, - IN const boolean_t accum_log_file) +ib_api_status_t osm_log_init(IN osm_log_t * p_log, IN boolean_t flush, + IN uint8_t log_flags, IN const char *log_file, + IN boolean_t accum_log_file) {return osm_log_init_v2 (p_log, flush, log_flags, log_file,0 , accum_log_file);
opensm/opensm/osm_mad_pool.c +12 -13
@@ -52,7 +52,7 @@/********************************************************************** **********************************************************************/ -void osm_mad_pool_construct(IN osm_mad_pool_t * const p_pool) +void osm_mad_pool_construct(IN osm_mad_pool_t * p_pool) {CL_ASSERT (p_pool);
@@ -61,14 +61,14 @@ void osm_mad_pool_construct(IN osm_mad_pool_t * const p_pool)/********************************************************************** **********************************************************************/
Lines of this file are not shown. View the raw message.
opensm/opensm/osm_mcast_tbl.c +17 -25
42 lines not on this page · raw message
opensm/opensm/osm_node.c +20 -31
51 lines not on this page · raw message
opensm/opensm/osm_sa.c +17 -27
44 lines not on this page · raw message
opensm/opensm/osm_service.c +18 -30
48 lines not on this page · raw message
opensm/opensm/osm_switch.c +29 -39
68 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.6.5.rc1
Part of the diff is not shown here. View the raw message.
PATCH v2 1/1 opensm: remove meanless 'const' keywords in APIs
In APIs remove meanless 'const' keywords related to function parameter values. Such as:
type func(..., type * const ptr, ...)
type func(..., type const var, ... )
Make function prototypes and definitions to be consistent.
---
V2: add few missed 'const' removing in function definitions in *.c files to be consistent with its prototypes.
opensm/include/opensm/osm_db.h | 17 ++-- opensm/include/opensm/osm_db_pack.h | 20 ++-- opensm/include/opensm/osm_inform.h | 19 ++-- opensm/include/opensm/osm_lid_mgr.h | 10 +- opensm/include/opensm/osm_log.h | 47 ++++----- opensm/include/opensm/osm_mad_pool.h | 30 +++--- opensm/include/opensm/osm_madw.h | 56 +++++------ opensm/include/opensm/osm_mcast_tbl.h | 53 ++++------ opensm/include/opensm/osm_mcm_port.h | 2 +- opensm/include/opensm/osm_multicast.h | 19 ++-- opensm/include/opensm/osm_node.h | 81 ++++++--------- opensm/include/opensm/osm_opensm.h | 26 ++--- opensm/include/opensm/osm_partition.h | 12 +- opensm/include/opensm/osm_path.h | 15 ++-- opensm/include/opensm/osm_perfmgr.h | 38 +++---- opensm/include/opensm/osm_pkey.h | 25 ++--- opensm/include/opensm/osm_port.h | 167 +++++++++++++----------------- opensm/include/opensm/osm_port_profile.h | 9 +- opensm/include/opensm/osm_qos_policy.h | 2 +- opensm/include/opensm/osm_remote_sm.h | 10 +- opensm/include/opensm/osm_router.h | 14 +-- opensm/include/opensm/osm_sa.h | 38 +++---- opensm/include/opensm/osm_sa_mad_ctrl.h | 29 +++--- opensm/include/opensm/osm_service.h | 19 ++-- opensm/include/opensm/osm_sm.h | 80 ++++++--------- opensm/include/opensm/osm_sm_mad_ctrl.h | 32 +++--- opensm/include/opensm/osm_subnet.h | 38 +++---- opensm/include/opensm/osm_switch.h | 152 ++++++++++++---------------- opensm/include/opensm/osm_ucast_mgr.h | 14 ++-- opensm/include/opensm/osm_vl15intf.h | 22 ++--- opensm/opensm/osm_db_files.c | 14 ++-- opensm/opensm/osm_db_pack.c | 8 +- opensm/opensm/osm_inform.c | 8 +- opensm/opensm/osm_lid_mgr.c | 21 ++-- opensm/opensm/osm_log.c | 30 +++--- opensm/opensm/osm_mad_pool.c | 25 ++--- opensm/opensm/osm_mcast_tbl.c | 42 +++----- opensm/opensm/osm_mcm_port.c | 2 +- opensm/opensm/osm_multicast.c | 4 +- opensm/opensm/osm_node.c | 51 ++++------ opensm/opensm/osm_opensm.c | 12 +-- opensm/opensm/osm_perfmgr.c | 2 +- opensm/opensm/osm_pkey.c | 4 +- opensm/opensm/osm_port.c | 6 +- opensm/opensm/osm_prtn.c | 14 +-- opensm/opensm/osm_qos_parser_y.y | 2 +- opensm/opensm/osm_remote_sm.c | 10 +- opensm/opensm/osm_req.c | 28 ++--- opensm/opensm/osm_resp.c | 22 ++-- opensm/opensm/osm_router.c | 8 +- opensm/opensm/osm_sa.c | 44 +++----- opensm/opensm/osm_sa_mad_ctrl.c | 2 +- opensm/opensm/osm_sa_mcmember_record.c | 2 +- opensm/opensm/osm_service.c | 48 +++------ opensm/opensm/osm_sm.c | 4 +- opensm/opensm/osm_sm_mad_ctrl.c | 2 +- opensm/opensm/osm_subnet.c | 31 +++--- opensm/opensm/osm_switch.c | 68 +++++------- opensm/opensm/osm_ucast_mgr.c | 17 ++-- opensm/opensm/osm_vl15intf.c | 4 +- 60 files changed, 710 insertions(+), 921 deletions(-)
opensm/include/opensm/osm_db.h +7 -10
@@ -144,7 +144,7 @@ typedef struct osm_db {* * SYNOPSIS */ -void osm_db_construct(IN osm_db_t * const p_db); +void osm_db_construct(IN osm_db_t * p_db);/* * PARAMETERS * p_db
@@ -166,7 +166,7 @@ void osm_db_construct(IN osm_db_t * const p_db);* * SYNOPSIS */ -void osm_db_destroy(IN osm_db_t * const p_db); +void osm_db_destroy(IN osm_db_t * p_db);/* * PARAMETERS * p_db
@@ -185,7 +185,7 @@ void osm_db_destroy(IN osm_db_t * const p_db);* * SYNOPSIS */ -int osm_db_init(IN osm_db_t * const p_db, IN osm_log_t * p_log); +int osm_db_init(IN osm_db_t * p_db, IN osm_log_t * p_log);/* * PARAMETERS *
@@ -211,8 +211,7 @@ int osm_db_init(IN osm_db_t * const p_db, IN osm_log_t * p_log);* * SYNOPSIS */ -osm_db_domain_t *osm_db_domain_init(IN osm_db_t * const p_db, - IN char *domain_name); +osm_db_domain_t *osm_db_domain_init(IN osm_db_t * p_db, IN char *domain_name);/* * PARAMETERS *
@@ -344,7 +343,7 @@ int osm_db_keys(IN osm_db_domain_t * p_domain, OUT cl_list_t * p_key_list);* SYNOPSIS */ /* lookup value by key */ -char *osm_db_lookup(IN osm_db_domain_t * p_domain, IN char *const p_key); +char *osm_db_lookup(IN osm_db_domain_t * p_domain, IN char *p_key);/* * PARAMETERS *
@@ -371,9 +370,7 @@ char *osm_db_lookup(IN osm_db_domain_t * p_domain, IN char *const p_key);* * SYNOPSIS */ -int -osm_db_update(IN osm_db_domain_t * p_domain, - IN char *const p_key, IN char *const p_val); +int osm_db_update(IN osm_db_domain_t * p_domain, IN char *p_key, IN char *p_val);/* * PARAMETERS *
@@ -405,7 +402,7 @@ osm_db_update(IN osm_db_domain_t * p_domain,* * SYNOPSIS */ -int osm_db_delete(IN osm_db_domain_t * p_domain, IN char *const p_key); +int osm_db_delete(IN osm_db_domain_t * p_domain, IN char *p_key);/* * PARAMETERS *
opensm/include/opensm/osm_db_pack.h +8 -12
@@ -72,7 +72,7 @@ BEGIN_C_DECLS* * SYNOPSIS */ -static inline osm_db_domain_t *osm_db_guid2lid_init(IN osm_db_t * const p_db) +static inline osm_db_domain_t *osm_db_guid2lid_init(IN osm_db_t * p_db) {return (osm_db_domain_init (p_db,"guid2lid" )); }
@@ -122,9 +122,8 @@ typedef struct osm_db_guid_elem {* * SYNOPSIS */ -int -osm_db_guid2lid_guids(IN osm_db_domain_t * const p_g2l, - OUT cl_qlist_t * p_guid_list); +int osm_db_guid2lid_guids(IN osm_db_domain_t * p_g2l, + OUT cl_qlist_t * p_guid_list);/* * PARAMETERS * p_g2l
@@ -153,10 +152,8 @@ osm_db_guid2lid_guids(IN osm_db_domain_t * const p_g2l,* * SYNOPSIS */ -int -osm_db_guid2lid_get(IN osm_db_domain_t * const p_g2l, - IN uint64_t guid, - OUT uint16_t * p_min_lid, OUT uint16_t * p_max_lid); +int osm_db_guid2lid_get(IN osm_db_domain_t * p_g2l, IN uint64_t guid, + OUT uint16_t * p_min_lid, OUT uint16_t * p_max_lid);/* * PARAMETERS * p_g2l
@@ -188,9 +185,8 @@ osm_db_guid2lid_get(IN osm_db_domain_t * const p_g2l,* * SYNOPSIS */ -int -osm_db_guid2lid_set(IN osm_db_domain_t * const p_g2l, - IN uint64_t guid, IN uint16_t min_lid, IN uint16_t max_lid); +int osm_db_guid2lid_set(IN osm_db_domain_t * p_g2l, IN uint64_t guid, + IN uint16_t min_lid, IN uint16_t max_lid);/* * PARAMETERS * p_g2l
@@ -222,7 +218,7 @@ osm_db_guid2lid_set(IN osm_db_domain_t * const p_g2l,* * SYNOPSIS */ -int osm_db_guid2lid_delete(IN osm_db_domain_t * const p_g2l, IN uint64_t guid); +int osm_db_guid2lid_delete(IN osm_db_domain_t * p_g2l, IN uint64_t guid);/* * PARAMETERS * p_g2l
opensm/include/opensm/osm_inform.h +8 -11
@@ -155,7 +155,7 @@ osm_infr_t *osm_infr_new(IN const osm_infr_t * p_infr_rec);* * SYNOPSIS */ -void osm_infr_delete(IN osm_infr_t * const p_infr); +void osm_infr_delete(IN osm_infr_t * p_infr);/* * PARAMETERS * p_infr
@@ -176,7 +176,7 @@ void osm_infr_delete(IN osm_infr_t * const p_infr);*/ osm_infr_t *osm_infr_get_by_rec(IN osm_subn_t const *p_subn, IN osm_log_t * p_log, - IN osm_infr_t * const p_infr_rec); + IN osm_infr_t * p_infr_rec);/* * PARAMETERS * p_subn
@@ -194,13 +194,11 @@ osm_infr_t *osm_infr_get_by_rec(IN osm_subn_t const *p_subn,* Inform Record, osm_infr_new, osm_infr_delete *********/ -void -osm_infr_insert_to_db(IN osm_subn_t * p_subn, - IN osm_log_t * p_log, IN osm_infr_t * p_infr); +void osm_infr_insert_to_db(IN osm_subn_t * p_subn, IN osm_log_t * p_log, + IN osm_infr_t * p_infr); -void -osm_infr_remove_from_db(IN osm_subn_t * p_subn, - IN osm_log_t * p_log, IN osm_infr_t * p_infr); +void osm_infr_remove_from_db(IN osm_subn_t * p_subn, IN osm_log_t * p_log, + IN osm_infr_t * p_infr);/****f* OpenSM: Inform Record/osm_report_notice * NAME
@@ -216,9 +214,8 @@ osm_infr_remove_from_db(IN osm_subn_t * p_subn,* * SYNOPSIS */ -ib_api_status_t -osm_report_notice(IN osm_log_t * const p_log, - IN osm_subn_t * p_subn, IN ib_mad_notice_attr_t * p_ntc); +ib_api_status_t osm_report_notice(IN osm_log_t * p_log, IN osm_subn_t * p_subn, + IN ib_mad_notice_attr_t * p_ntc);/* * PARAMETERS * p_rcv
opensm/include/opensm/osm_lid_mgr.h +5 -5
@@ -143,7 +143,7 @@ typedef struct osm_lid_mgr {* * SYNOPSIS */ -void osm_lid_mgr_construct(IN osm_lid_mgr_t * const p_mgr); +void osm_lid_mgr_construct(IN osm_lid_mgr_t * p_mgr);/* * PARAMETERS * p_mgr
@@ -173,7 +173,7 @@ void osm_lid_mgr_construct(IN osm_lid_mgr_t * const p_mgr);* * SYNOPSIS */ -void osm_lid_mgr_destroy(IN osm_lid_mgr_t * const p_mgr); +void osm_lid_mgr_destroy(IN osm_lid_mgr_t * p_mgr);/* * PARAMETERS * p_mgr
@@ -205,7 +205,7 @@ void osm_lid_mgr_destroy(IN osm_lid_mgr_t * const p_mgr);* SYNOPSIS */ ib_api_status_t -osm_lid_mgr_init(IN osm_lid_mgr_t * const p_mgr, IN struct osm_sm * sm); +osm_lid_mgr_init(IN osm_lid_mgr_t * p_mgr, IN struct osm_sm * sm);/* * PARAMETERS * p_mgr
@@ -235,7 +235,7 @@ osm_lid_mgr_init(IN osm_lid_mgr_t * const p_mgr, IN struct osm_sm * sm);* * SYNOPSIS */ -int osm_lid_mgr_process_sm(IN osm_lid_mgr_t * const p_mgr); +int osm_lid_mgr_process_sm(IN osm_lid_mgr_t * p_mgr);/* * PARAMETERS * p_mgr
@@ -260,7 +260,7 @@ int osm_lid_mgr_process_sm(IN osm_lid_mgr_t * const p_mgr);* * SYNOPSIS */ -int osm_lid_mgr_process_subnet(IN osm_lid_mgr_t * const p_mgr); +int osm_lid_mgr_process_subnet(IN osm_lid_mgr_t * p_mgr);/* * PARAMETERS * p_mgr
opensm/include/opensm/osm_log.h +19 -28
100 lines not on this page · raw message
opensm/include/opensm/osm_mad_pool.h +14 -16
@@ -109,7 +109,7 @@ typedef struct osm_mad_pool {* * SYNOPSIS */ -void osm_mad_pool_construct(IN osm_mad_pool_t * const p_pool); +void osm_mad_pool_construct(IN osm_mad_pool_t * p_pool);/* * PARAMETERS * p_pool
@@ -138,7 +138,7 @@ void osm_mad_pool_construct(IN osm_mad_pool_t * const p_pool);* * SYNOPSIS */ -void osm_mad_pool_destroy(IN osm_mad_pool_t * const p_pool); +void osm_mad_pool_destroy(IN osm_mad_pool_t * p_pool);/* * PARAMETERS * p_pool
@@ -166,7 +166,7 @@ void osm_mad_pool_destroy(IN osm_mad_pool_t * const p_pool);* * SYNOPSIS */ -ib_api_status_t osm_mad_pool_init(IN osm_mad_pool_t * const p_pool); +ib_api_status_t osm_mad_pool_init(IN osm_mad_pool_t * p_pool);/* * PARAMETERS * p_pool
@@ -191,10 +191,10 @@ ib_api_status_t osm_mad_pool_init(IN osm_mad_pool_t * const p_pool);* * SYNOPSIS */ -osm_madw_t *osm_mad_pool_get(IN osm_mad_pool_t * const p_pool, +osm_madw_t *osm_mad_pool_get(IN osm_mad_pool_t * p_pool, IN osm_bind_handle_t h_bind, - IN const uint32_t total_size, - IN const osm_mad_addr_t * const p_mad_addr); + IN uint32_t total_size, + IN const osm_mad_addr_t * p_mad_addr);/* * PARAMETERS * p_pool
@@ -235,8 +235,7 @@ osm_madw_t *osm_mad_pool_get(IN osm_mad_pool_t * const p_pool,* * SYNOPSIS */ -void osm_mad_pool_put(IN osm_mad_pool_t * const p_pool, - IN osm_madw_t * const p_madw); +void osm_mad_pool_put(IN osm_mad_pool_t * p_pool, IN osm_madw_t * p_madw);/* * PARAMETERS * p_pool
@@ -266,12 +265,11 @@ void osm_mad_pool_put(IN osm_mad_pool_t * const p_pool,* * SYNOPSIS */ -osm_madw_t *osm_mad_pool_get_wrapper(IN osm_mad_pool_t * const p_pool, +osm_madw_t *osm_mad_pool_get_wrapper(IN osm_mad_pool_t * p_pool, IN osm_bind_handle_t h_bind, - IN const uint32_t total_size, - IN const ib_mad_t * const p_mad, - IN const osm_mad_addr_t * -const p_mad_addr); + IN uint32_t total_size, + IN const ib_mad_t * p_mad, + IN const osm_mad_addr_t * p_mad_addr);/* * PARAMETERS * p_pool
@@ -316,7 +314,7 @@ osm_madw_t *osm_mad_pool_get_wrapper(IN osm_mad_pool_t * const p_pool,* * SYNOPSIS */ -osm_madw_t *osm_mad_pool_get_wrapper_raw(IN osm_mad_pool_t * const p_pool); +osm_madw_t *osm_mad_pool_get_wrapper_raw(IN osm_mad_pool_t * p_pool);/* * PARAMETERS * p_pool
@@ -347,9 +345,9 @@ osm_madw_t *osm_mad_pool_get_wrapper_raw(IN osm_mad_pool_t * const p_pool);* SYNOPSIS */ static inline uint32_t -osm_mad_pool_get_outstanding(IN const osm_mad_pool_t * const p_pool) +osm_mad_pool_get_outstanding(IN const osm_mad_pool_t * p_pool) { -return (p_pool->mads_out); +return p_pool->mads_out; }/*
opensm/include/opensm/osm_madw.h +26 -30
182 lines not on this page · raw message
opensm/include/opensm/osm_mcast_tbl.h +22 -31
126 lines not on this page · raw message
opensm/include/opensm/osm_mcm_port.h +1 -1
@@ -154,7 +154,7 @@ osm_mcm_port_t *osm_mcm_port_new(IN osm_port_t * port, IN struct osm_mgrp *mgrp,* * SYNOPSIS */ -void osm_mcm_port_delete(IN osm_mcm_port_t * const p_mcm); +void osm_mcm_port_delete(IN osm_mcm_port_t * p_mcm);/* * PARAMETERS * p_mcm
opensm/include/opensm/osm_multicast.h +9 -10
@@ -142,7 +142,7 @@ typedef struct osm_mgrp {* * SYNOPSIS */ -osm_mgrp_t *osm_mgrp_new(IN const ib_net16_t mlid, IN ib_member_rec_t * mcmr); +osm_mgrp_t *osm_mgrp_new(IN ib_net16_t mlid, IN ib_member_rec_t * mcmr);/* * PARAMETERS * mlid
@@ -170,7 +170,7 @@ osm_mgrp_t *osm_mgrp_new(IN const ib_net16_t mlid, IN ib_member_rec_t * mcmr);* * SYNOPSIS */ -void osm_mgrp_delete(IN osm_mgrp_t * const p_mgrp); +void osm_mgrp_delete(IN osm_mgrp_t * p_mgrp);/* * PARAMETERS * p_mgrp
@@ -194,9 +194,8 @@ void osm_mgrp_delete(IN osm_mgrp_t * const p_mgrp);* * SYNOPSIS */ -static inline boolean_t -osm_mgrp_is_guid(IN const osm_mgrp_t * const p_mgrp, - IN const ib_net64_t port_guid) +static inline boolean_t osm_mgrp_is_guid(IN const osm_mgrp_t * p_mgrp, + IN ib_net64_t port_guid) {return (cl_qmap_get (&p_mgrp->mcm_port_tbl, port_guid) !=cl_qmap_end (&p_mgrp->mcm_port_tbl));
@@ -229,7 +228,7 @@ osm_mgrp_is_guid(IN const osm_mgrp_t * const p_mgrp,* * SYNOPSIS */ -static inline boolean_t osm_mgrp_is_empty(IN const osm_mgrp_t * const p_mgrp) +static inline boolean_t osm_mgrp_is_empty(IN const osm_mgrp_t * p_mgrp) {return (cl_qmap_count (&p_mgrp->mcm_port_tbl) ==0 ); }
@@ -258,9 +257,9 @@ static inline boolean_t osm_mgrp_is_empty(IN const osm_mgrp_t * const p_mgrp)* * SYNOPSIS */ -static inline ib_net16_t osm_mgrp_get_mlid(IN const osm_mgrp_t * const p_mgrp) +static inline ib_net16_t osm_mgrp_get_mlid(IN const osm_mgrp_t * p_mgrp) { -return (p_mgrp->mlid); +return p_mgrp->mlid; }/*
@@ -321,8 +320,8 @@ osm_mcm_port_t *osm_mgrp_add_port(osm_subn_t *subn, osm_log_t *log,* * SYNOPSIS */ -osm_mcm_port_t *osm_mgrp_get_mcm_port(IN const osm_mgrp_t * const p_mgrp, - IN const ib_net64_t port_guid); +osm_mcm_port_t *osm_mgrp_get_mcm_port(IN const osm_mgrp_t * p_mgrp, + IN ib_net64_t port_guid);/* * PARAMETERS * p_mgrp
opensm/include/opensm/osm_node.h +34 -47
184 lines not on this page · raw message
opensm/include/opensm/osm_opensm.h +11 -15
@@ -246,7 +246,7 @@ typedef struct osm_opensm {* * SYNOPSIS */ -void osm_opensm_construct(IN osm_opensm_t * const p_osm); +void osm_opensm_construct(IN osm_opensm_t * p_osm);/* * PARAMETERS * p_osm
@@ -275,7 +275,7 @@ void osm_opensm_construct(IN osm_opensm_t * const p_osm);* * SYNOPSIS */ -void osm_opensm_destroy(IN osm_opensm_t * const p_osm); +void osm_opensm_destroy(IN osm_opensm_t * p_osm);/* * PARAMETERS * p_osm
@@ -303,9 +303,8 @@ void osm_opensm_destroy(IN osm_opensm_t * const p_osm);* * SYNOPSIS */ -ib_api_status_t -osm_opensm_init(IN osm_opensm_t * const p_osm, - IN const osm_subn_opt_t * const p_opt); +ib_api_status_t osm_opensm_init(IN osm_opensm_t * p_osm, + IN const osm_subn_opt_t * p_opt);/* * PARAMETERS * p_osm
@@ -333,7 +332,7 @@ osm_opensm_init(IN osm_opensm_t * const p_osm,* * SYNOPSIS */ -static inline void osm_opensm_sweep(IN osm_opensm_t * const p_osm) +static inline void osm_opensm_sweep(IN osm_opensm_t * p_osm) {osm_sm_sweep (&p_osm->sm); }
@@ -363,9 +362,8 @@ static inline void osm_opensm_sweep(IN osm_opensm_t * const p_osm)* * SYNOPSIS */ -static inline void -osm_opensm_set_log_flags(IN osm_opensm_t * const p_osm, - IN const osm_log_level_t log_flags) +static inline void osm_opensm_set_log_flags(IN osm_opensm_t * p_osm, + IN osm_log_level_t log_flags) {osm_log_set_level (&p_osm->log, log_flags); }
@@ -395,8 +393,7 @@ osm_opensm_set_log_flags(IN osm_opensm_t * const p_osm,* * SYNOPSIS */ -ib_api_status_t -osm_opensm_bind(IN osm_opensm_t * const p_osm, IN const ib_net64_t guid); +ib_api_status_t osm_opensm_bind(IN osm_opensm_t * p_osm, IN ib_net64_t guid);/* * PARAMETERS * p_osm
@@ -424,11 +421,10 @@ osm_opensm_bind(IN osm_opensm_t * const p_osm, IN const ib_net64_t guid);* SYNOPSIS */ static inline cl_status_t -osm_opensm_wait_for_subnet_up(IN osm_opensm_t * const p_osm, - IN uint32_t const wait_us, - IN boolean_t const interruptible) +osm_opensm_wait_for_subnet_up(IN osm_opensm_t * p_osm, IN uint32_t wait_us, + IN boolean_t interruptible) { -return (osm_sm_wait_for_subnet_up (&p_osm->sm, wait_us, interruptible)); +return osm_sm_wait_for_subnet_up (&p_osm->sm, wait_us, interruptible); }/*
opensm/include/opensm/osm_partition.h +6 -6
@@ -138,7 +138,7 @@ typedef struct osm_prtn {* * SYNOPSIS */ -void osm_prtn_delete(IN OUT osm_prtn_t ** const pp_prtn); +void osm_prtn_delete(IN OUT osm_prtn_t ** pp_prtn);/* * PARAMETERS * pp_prtn
@@ -164,7 +164,7 @@ void osm_prtn_delete(IN OUT osm_prtn_t ** const pp_prtn);* * SYNOPSIS */ -osm_prtn_t *osm_prtn_new(IN const char *name, IN const uint16_t pkey); +osm_prtn_t *osm_prtn_new(IN const char *name, IN uint16_t pkey);/* * PARAMETERS * name
@@ -192,8 +192,8 @@ osm_prtn_t *osm_prtn_new(IN const char *name, IN const uint16_t pkey);* * SYNOPSIS */ -static inline boolean_t osm_prtn_is_guid(IN const osm_prtn_t * const p_prtn, - IN const ib_net64_t guid) +static inline boolean_t osm_prtn_is_guid(IN const osm_prtn_t * p_prtn, + IN ib_net64_t guid) {return (cl_map_get (&p_prtn->full_guid_tbl, guid) !=NULL ) || (cl_map_get (&p_prtn->part_guid_tbl, guid) !=NULL );
@@ -225,8 +225,8 @@ static inline boolean_t osm_prtn_is_guid(IN const osm_prtn_t * const p_prtn,* * SYNOPSIS */ -ib_api_status_t osm_prtn_make_partitions(IN osm_log_t * const p_log, - IN osm_subn_t * const p_subn); +ib_api_status_t osm_prtn_make_partitions(IN osm_log_t * p_log, + IN osm_subn_t * p_subn);/* * PARAMETERS * p_log
opensm/include/opensm/osm_path.h +7 -8
@@ -107,7 +107,7 @@ typedef struct osm_dr_path {* * SYNOPSIS */ -static inline void osm_dr_path_construct(IN osm_dr_path_t * const p_path) +static inline void osm_dr_path_construct(IN osm_dr_path_t * p_path) {/* The first location in the path array is reserved. */ memset (p_path,0 ,sizeof (*p_path));
@@ -146,9 +146,8 @@ static inline void osm_dr_path_construct(IN osm_dr_path_t * const p_path)* SYNOPSIS */ static inline void -osm_dr_path_init(IN osm_dr_path_t * const p_path, - IN const osm_bind_handle_t h_bind, - IN const uint8_t hop_count, +osm_dr_path_init(IN osm_dr_path_t * p_path, IN osm_bind_handle_t h_bind, + IN uint8_t hop_count, IN const uint8_t path[IB_SUBNET_PATH_HOPS_MAX]) {/* The first location in the path array is reserved. */
@@ -189,8 +188,8 @@ osm_dr_path_init(IN osm_dr_path_t * const p_path,* * SYNOPSIS */ -static inline int -osm_dr_path_extend(IN osm_dr_path_t * const p_path, IN const uint8_t port_num) +static inline int osm_dr_path_extend(IN osm_dr_path_t * p_path, + IN uint8_t port_num) { p_path->hop_count++;
@@ -230,9 +229,9 @@ osm_dr_path_extend(IN osm_dr_path_t * const p_path, IN const uint8_t port_num)* SYNOPSIS */ static inline osm_bind_handle_t -osm_dr_path_get_bind_handle(IN const osm_dr_path_t * const p_path) +osm_dr_path_get_bind_handle(IN const osm_dr_path_t * p_path) { -return (p_path->h_bind); +return p_path->h_bind; }/*
opensm/include/opensm/osm_perfmgr.h +18 -20
@@ -152,8 +152,8 @@ typedef struct osm_perfmgr {*********/ /****f* OpenSM: Creation Functions */ -void osm_perfmgr_shutdown (osm_perfmgr_t *const p_perfmgr); -void osm_perfmgr_destroy (osm_perfmgr_t *const p_perfmgr); +void osm_perfmgr_shutdown (osm_perfmgr_t * p_perfmgr); +void osm_perfmgr_destroy (osm_perfmgr_t * p_perfmgr);/****f* OpenSM: Inline accessor functions */ inline static void osm_perfmgr_set_state(osm_perfmgr_t * p_perfmgr,
@@ -164,42 +164,41 @@ inline static void osm_perfmgr_set_state(osm_perfmgr_t * p_perfmgr,osm_sm_signal (p_perfmgr->sm,OSM_SIGNAL_PERFMGR_SWEEP ); } -inline static osm_perfmgr_state_t osm_perfmgr_get_state (osm_perfmgr_t - * p_perfmgr) +inline static osm_perfmgr_state_t osm_perfmgr_get_state (osm_perfmgr_t * perfmgr) { -return (p_perfmgr->state); +return perfmgr->state; }inline static char *osm_perfmgr_get_state_str (osm_perfmgr_t * p_perfmgr) {switch (p_perfmgr->state) {case PERFMGR_STATE_DISABLE : -return ("Disabled" ); +return "Disabled" ;break ;case PERFMGR_STATE_ENABLED : -return ("Enabled" ); +return "Enabled" ;break ;case PERFMGR_STATE_NO_DB : -return ("No Database" ); +return "No Database" ;break ; } -return ("UNKNOWN" ); +return "UNKNOWN" ; }inline static char *osm_perfmgr_get_sweep_state_str (osm_perfmgr_t * perfmgr) {switch (perfmgr->sweep_state) {case PERFMGR_SWEEP_SLEEP : -return ("Sleeping" ); +return "Sleeping" ;break ;case PERFMGR_SWEEP_ACTIVE : -return ("Active" ); +return "Active" ;break ;case PERFMGR_SWEEP_SUSPENDED : -return ("Suspended" ); +return "Suspended" ;break ; } -return ("UNKNOWN" ); +return "UNKNOWN" ; } inline static void osm_perfmgr_set_sweep_time_s(osm_perfmgr_t * p_perfmgr,
@@ -211,24 +210,23 @@ inline static void osm_perfmgr_set_sweep_time_s(osm_perfmgr_t * p_perfmgr,inline static uint16_t osm_perfmgr_get_sweep_time_s (osm_perfmgr_t * p_perfmgr) { -return (p_perfmgr->sweep_time_s); +return p_perfmgr->sweep_time_s; }void osm_perfmgr_clear_counters (osm_perfmgr_t * p_perfmgr);void osm_perfmgr_dump_counters (osm_perfmgr_t * p_perfmgr,perfmgr_db_dump_t dump_type); -void osm_perfmgr_print_counters (osm_perfmgr_t *pm,char *nodename, -FILE *fp); +void osm_perfmgr_print_counters (osm_perfmgr_t *pm,char *nodename,FILE *fp); -ib_api_status_t osm_perfmgr_bind (osm_perfmgr_t *const p_perfmgr, -const ib_net64_t port_guid); +ib_api_status_t osm_perfmgr_bind (osm_perfmgr_t * p_perfmgr, +ib_net64_t port_guid);void osm_perfmgr_process (osm_perfmgr_t * pm);/****f* OpenSM: PerfMgr/osm_perfmgr_init */ -ib_api_status_t osm_perfmgr_init (osm_perfmgr_t *const perfmgr, +ib_api_status_t osm_perfmgr_init (osm_perfmgr_t * perfmgr,struct osm_opensm *osm, -const osm_subn_opt_t *const p_opt); +const osm_subn_opt_t * p_opt);/* * PARAMETERS * perfmgr
opensm/include/opensm/osm_pkey.h +11 -14
@@ -439,9 +439,9 @@ osm_pkey_tbl_set(IN osm_pkey_tbl_t * p_pkey_tbl,* * SYNOPSIS */ -boolean_t osm_physp_share_this_pkey(IN const struct osm_physp *const p_physp1, - IN const struct osm_physp *const p_physp2, - IN const ib_net16_t pkey); +boolean_t osm_physp_share_this_pkey(IN const struct osm_physp * p_physp1, + IN const struct osm_physp * p_physp2, + IN ib_net16_t pkey);/* * PARAMETERS *
@@ -471,10 +471,8 @@ boolean_t osm_physp_share_this_pkey(IN const struct osm_physp *const p_physp1,* * SYNOPSIS */ -ib_net16_t osm_physp_find_common_pkey(IN const struct osm_physp *const - p_physp1, - IN const struct osm_physp *const - p_physp2); +ib_net16_t osm_physp_find_common_pkey(IN const struct osm_physp *p_physp1, + IN const struct osm_physp *p_physp2);/* * PARAMETERS *
@@ -517,8 +515,8 @@ ib_net16_t osm_physp_find_common_pkey(IN const struct osm_physp *const* SYNOPSIS */ boolean_t osm_physp_share_pkey(IN osm_log_t * p_log, - IN const struct osm_physp *const p_physp_1, - IN const struct osm_physp *const p_physp_2); + IN const struct osm_physp * p_physp_1, + IN const struct osm_physp * p_physp_2);/* * PARAMETERS
@@ -564,8 +562,8 @@ boolean_t osm_physp_share_pkey(IN osm_log_t * p_log,* SYNOPSIS */ boolean_t osm_port_share_pkey(IN osm_log_t * p_log, - IN const struct osm_port *const p_port_1, - IN const struct osm_port *const p_port_2); + IN const struct osm_port * p_port_1, + IN const struct osm_port * p_port_2);/* * PARAMETERS
@@ -610,9 +608,8 @@ boolean_t osm_port_share_pkey(IN osm_log_t * p_log,* * SYNOPSIS */ -boolean_t osm_physp_has_pkey(IN osm_log_t * p_log, - IN const ib_net16_t pkey, - IN const struct osm_physp *const p_physp); +boolean_t osm_physp_has_pkey(IN osm_log_t * p_log, IN ib_net16_t pkey, + IN const struct osm_physp *p_physp);/* * PARAMETERS
opensm/include/opensm/osm_port.h +73 -94
436 lines not on this page · raw message
opensm/include/opensm/osm_port_profile.h +4 -5
@@ -129,7 +129,7 @@ typedef long osm_port_mask_t[32 / sizeof(long)];* * SYNOPSIS */ -static inline void osm_port_prof_construct(IN osm_port_profile_t * const p_prof) +static inline void osm_port_prof_construct(IN osm_port_profile_t * p_prof) {CL_ASSERT (p_prof);memset (p_prof,0 ,sizeof (*p_prof));
@@ -157,8 +157,7 @@ static inline void osm_port_prof_construct(IN osm_port_profile_t * const p_prof)* * SYNOPSIS */ -static inline void -osm_port_prof_path_count_inc(IN osm_port_profile_t * const p_prof) +static inline void osm_port_prof_path_count_inc(IN osm_port_profile_t * p_prof) {CL_ASSERT (p_prof); p_prof->num_paths++;
@@ -186,9 +185,9 @@ osm_port_prof_path_count_inc(IN osm_port_profile_t * const p_prof)* SYNOPSIS */ static inline uint32_t -osm_port_prof_path_count_get(IN const osm_port_profile_t * const p_prof) +osm_port_prof_path_count_get(IN const osm_port_profile_t * p_prof) { -return (p_prof->num_paths); +return p_prof->num_paths; }/* * PARAMETERS
opensm/include/opensm/osm_qos_policy.h +1 -1
@@ -197,7 +197,7 @@ osm_qos_level_t * osm_qos_policy_get_qos_level_by_mpr(/***************************************************/ -int osm_qos_parse_policy_file(IN osm_subn_t * const p_subn); +int osm_qos_parse_policy_file(IN osm_subn_t * p_subn);/***************************************************/
opensm/include/opensm/osm_remote_sm.h +4 -6
@@ -112,7 +112,7 @@ typedef struct osm_remote_sm {* * SYNOPSIS */ -void osm_remote_sm_construct(IN osm_remote_sm_t * const p_sm); +void osm_remote_sm_construct(IN osm_remote_sm_t * p_sm);/* * PARAMETERS * p_sm
@@ -141,7 +141,7 @@ void osm_remote_sm_construct(IN osm_remote_sm_t * const p_sm);* * SYNOPSIS */ -void osm_remote_sm_destroy(IN osm_remote_sm_t * const p_sm); +void osm_remote_sm_destroy(IN osm_remote_sm_t * p_sm);/* * PARAMETERS * p_sm
@@ -169,10 +169,8 @@ void osm_remote_sm_destroy(IN osm_remote_sm_t * const p_sm);* * SYNOPSIS */ -void -osm_remote_sm_init(IN osm_remote_sm_t * const p_sm, - IN const osm_port_t * const p_port, - IN const ib_sm_info_t * const p_smi); +void osm_remote_sm_init(IN osm_remote_sm_t * p_sm, IN const osm_port_t * p_port, + IN const ib_sm_info_t * p_smi);/* * PARAMETERS * p_sm
opensm/include/opensm/osm_router.h +6 -8
@@ -116,7 +116,7 @@ typedef struct osm_router {* * SYNOPSIS */ -void osm_router_delete(IN OUT osm_router_t ** const pp_rtr); +void osm_router_delete(IN OUT osm_router_t ** pp_rtr);/* * PARAMETERS * p_rtr
@@ -140,7 +140,7 @@ void osm_router_delete(IN OUT osm_router_t ** const pp_rtr);* * SYNOPSIS */ -osm_router_t *osm_router_new(IN osm_port_t * const p_port); +osm_router_t *osm_router_new(IN osm_port_t * p_port);/* * PARAMETERS * p_node
@@ -164,10 +164,9 @@ osm_router_t *osm_router_new(IN osm_port_t * const p_port);* * SYNOPSIS */ -static inline osm_port_t *osm_router_get_port_ptr(IN const osm_router_t * -const p_rtr) +static inline osm_port_t *osm_router_get_port_ptr(IN const osm_router_t * p_rtr) { -return (p_rtr->p_port); +return p_rtr->p_port; }/*
@@ -193,10 +192,9 @@ static inline osm_port_t *osm_router_get_port_ptr(IN const osm_router_t ** * SYNOPSIS */ -static inline osm_node_t *osm_router_get_node_ptr(IN const osm_router_t * -const p_rtr) +static inline osm_node_t *osm_router_get_node_ptr(IN const osm_router_t * p_rtr) { -return (p_rtr->p_port->p_node); +return p_rtr->p_port->p_node; }/*
opensm/include/opensm/osm_sa.h +16 -22
@@ -191,7 +191,7 @@ typedef struct osm_sa {* * SYNOPSIS */ -void osm_sa_construct(IN osm_sa_t * const p_sa); +void osm_sa_construct(IN osm_sa_t * p_sa);/* * PARAMETERS * p_sa
@@ -220,7 +220,7 @@ void osm_sa_construct(IN osm_sa_t * const p_sa);* * SYNOPSIS */ -void osm_sa_shutdown(IN osm_sa_t * const p_sa); +void osm_sa_shutdown(IN osm_sa_t * p_sa);/* * PARAMETERS * p_sa
@@ -243,7 +243,7 @@ void osm_sa_shutdown(IN osm_sa_t * const p_sa);* * SYNOPSIS */ -void osm_sa_destroy(IN osm_sa_t * const p_sa); +void osm_sa_destroy(IN osm_sa_t * p_sa);/* * PARAMETERS * p_sa
@@ -271,15 +271,12 @@ void osm_sa_destroy(IN osm_sa_t * const p_sa);* * SYNOPSIS */ -ib_api_status_t osm_sa_init(IN osm_sm_t * const p_sm, - IN osm_sa_t * const p_sa, - IN osm_subn_t * const p_subn, - IN osm_vendor_t * const p_vendor, - IN osm_mad_pool_t * const p_mad_pool, - IN osm_log_t * const p_log, - IN osm_stats_t * const p_stats, - IN cl_dispatcher_t * const p_disp, - IN cl_plock_t * const p_lock); +ib_api_status_t osm_sa_init(IN osm_sm_t * p_sm, IN osm_sa_t * p_sa, + IN osm_subn_t * p_subn, IN osm_vendor_t * p_vendor, + IN osm_mad_pool_t * p_mad_pool, + IN osm_log_t * p_log, IN osm_stats_t * p_stats, + IN cl_dispatcher_t * p_disp, + IN cl_plock_t * p_lock);/* * PARAMETERS * p_sa
@@ -325,8 +322,7 @@ ib_api_status_t osm_sa_init(IN osm_sm_t * const p_sm,* * SYNOPSIS */ -ib_api_status_t -osm_sa_bind(IN osm_sa_t * const p_sa, IN const ib_net64_t port_guid); +ib_api_status_t osm_sa_bind(IN osm_sa_t * p_sa, IN ib_net64_t port_guid);/* * PARAMETERS * p_sa
@@ -354,8 +350,8 @@ osm_sa_bind(IN osm_sa_t * const p_sa, IN const ib_net64_t port_guid);* * SYNOPSIS */ -ib_api_status_t osm_sa_send(osm_sa_t *sa, IN osm_madw_t * const p_madw, - IN boolean_t const resp_expected); +ib_api_status_t osm_sa_send(osm_sa_t *sa, IN osm_madw_t * p_madw, + IN boolean_t resp_expected);/****f* IBA Base: Types/osm_sa_send_error * NAME
@@ -367,8 +363,8 @@ ib_api_status_t osm_sa_send(osm_sa_t *sa, IN osm_madw_t * const p_madw,* * SYNOPSIS */ -void osm_sa_send_error(IN osm_sa_t * sa, IN const osm_madw_t * const p_madw, - IN const ib_net16_t sa_status); +void osm_sa_send_error(IN osm_sa_t * sa, IN const osm_madw_t * p_madw, + IN ib_net16_t sa_status);/* * PARAMETERS * sa
@@ -470,10 +466,8 @@ int osm_sa_db_file_load(struct osm_opensm *p_osm);*/ ib_api_status_t -osm_mcmr_rcv_find_or_create_new_mgrp(IN osm_sa_t * sa, - IN uint64_t comp_mask, - IN ib_member_rec_t * -const p_recvd_mcmember_rec, +osm_mcmr_rcv_find_or_create_new_mgrp(IN osm_sa_t * sa, IN ib_net64_t comp_mask, + IN ib_member_rec_t * p_recvd_mcmember_rec, OUT osm_mgrp_t ** pp_mgrp);/* * PARAMETERS
opensm/include/opensm/osm_sa_mad_ctrl.h +14 -15
@@ -142,7 +142,7 @@ typedef struct osm_sa_mad_ctrl {* * SYNOPSIS */ -void osm_sa_mad_ctrl_construct(IN osm_sa_mad_ctrl_t * const p_ctrl); +void osm_sa_mad_ctrl_construct(IN osm_sa_mad_ctrl_t * p_ctrl);/* * PARAMETERS * p_ctrl
@@ -173,7 +173,7 @@ void osm_sa_mad_ctrl_construct(IN osm_sa_mad_ctrl_t * const p_ctrl);* * SYNOPSIS */ -void osm_sa_mad_ctrl_destroy(IN osm_sa_mad_ctrl_t * const p_ctrl); +void osm_sa_mad_ctrl_destroy(IN osm_sa_mad_ctrl_t * p_ctrl);/* * PARAMETERS * p_ctrl
@@ -204,14 +204,14 @@ void osm_sa_mad_ctrl_destroy(IN osm_sa_mad_ctrl_t * const p_ctrl);* * SYNOPSIS */ -ib_api_status_t osm_sa_mad_ctrl_init(IN osm_sa_mad_ctrl_t * const p_ctrl, +ib_api_status_t osm_sa_mad_ctrl_init(IN osm_sa_mad_ctrl_t * p_ctrl, IN struct osm_sa * sa, - IN osm_mad_pool_t * const p_mad_pool, - IN osm_vendor_t * const p_vendor, - IN osm_subn_t * const p_subn, - IN osm_log_t * const p_log, - IN osm_stats_t * const p_stats, - IN cl_dispatcher_t * const p_disp); + IN osm_mad_pool_t * p_mad_pool, + IN osm_vendor_t * p_vendor, + IN osm_subn_t * p_subn, + IN osm_log_t * p_log, + IN osm_stats_t * p_stats, + IN cl_dispatcher_t * p_disp);/* * PARAMETERS * p_ctrl
@@ -256,9 +256,8 @@ ib_api_status_t osm_sa_mad_ctrl_init(IN osm_sa_mad_ctrl_t * const p_ctrl,* * SYNOPSIS */ -ib_api_status_t -osm_sa_mad_ctrl_bind(IN osm_sa_mad_ctrl_t * const p_ctrl, - IN const ib_net64_t port_guid); +ib_api_status_t osm_sa_mad_ctrl_bind(IN osm_sa_mad_ctrl_t * p_ctrl, + IN ib_net64_t port_guid);/* * PARAMETERS * p_ctrl
@@ -287,7 +286,7 @@ osm_sa_mad_ctrl_bind(IN osm_sa_mad_ctrl_t * const p_ctrl,* * SYNOPSIS */ -ib_api_status_t osm_sa_mad_ctrl_unbind(IN osm_sa_mad_ctrl_t * const p_ctrl); +ib_api_status_t osm_sa_mad_ctrl_unbind(IN osm_sa_mad_ctrl_t * p_ctrl);/* * PARAMETERS * p_ctrl
@@ -313,9 +312,9 @@ ib_api_status_t osm_sa_mad_ctrl_unbind(IN osm_sa_mad_ctrl_t * const p_ctrl);* SYNOPSIS */ static inline osm_bind_handle_t -osm_sa_mad_ctrl_get_bind_handle(IN const osm_sa_mad_ctrl_t * const p_ctrl) +osm_sa_mad_ctrl_get_bind_handle(IN const osm_sa_mad_ctrl_t * p_ctrl) { -return (p_ctrl->h_bind); +return p_ctrl->h_bind; }/*
opensm/include/opensm/osm_service.h +8 -11
@@ -146,9 +146,8 @@ osm_svcr_t *osm_svcr_new(IN const ib_service_record_t * p_svc_rec);* * SYNOPSIS */ -void -osm_svcr_init(IN osm_svcr_t * const p_svcr, - IN const ib_service_record_t * p_svc_rec); +void osm_svcr_init(IN osm_svcr_t * p_svcr, + IN const ib_service_record_t * p_svc_rec);/* * PARAMETERS * p_svc_rec
@@ -169,7 +168,7 @@ osm_svcr_init(IN osm_svcr_t * const p_svcr,* * SYNOPSIS */ -void osm_svcr_delete(IN osm_svcr_t * const p_svcr); +void osm_svcr_delete(IN osm_svcr_t * p_svcr);/* * PARAMETERS * p_svc_rec
@@ -181,14 +180,12 @@ void osm_svcr_delete(IN osm_svcr_t * const p_svcr); osm_svcr_t *osm_svcr_get_by_rid(IN osm_subn_t const *p_subn, IN osm_log_t * p_log, - IN ib_service_record_t * const p_svc_rec); + IN ib_service_record_t * p_svc_rec); -void -osm_svcr_insert_to_db(IN osm_subn_t * p_subn, - IN osm_log_t * p_log, IN osm_svcr_t * p_svcr); -void -osm_svcr_remove_from_db(IN osm_subn_t * p_subn, - IN osm_log_t * p_log, IN osm_svcr_t * p_svcr); +void osm_svcr_insert_to_db(IN osm_subn_t * p_subn, IN osm_log_t * p_log, + IN osm_svcr_t * p_svcr); +void osm_svcr_remove_from_db(IN osm_subn_t * p_subn, IN osm_log_t * p_log, + IN osm_svcr_t * p_svcr); END_C_DECLS#endif /* _OSM_SVCR_H_ */
opensm/include/opensm/osm_sm.h +33 -47
153 lines not on this page · raw message
opensm/include/opensm/osm_sm_mad_ctrl.h +15 -17
@@ -147,7 +147,7 @@ typedef struct osm_sm_mad_ctrl {* * SYNOPSIS */ -void osm_sm_mad_ctrl_construct(IN osm_sm_mad_ctrl_t * const p_ctrl); +void osm_sm_mad_ctrl_construct(IN osm_sm_mad_ctrl_t * p_ctrl);/* * PARAMETERS * p_ctrl
@@ -178,7 +178,7 @@ void osm_sm_mad_ctrl_construct(IN osm_sm_mad_ctrl_t * const p_ctrl);* * SYNOPSIS */ -void osm_sm_mad_ctrl_destroy(IN osm_sm_mad_ctrl_t * const p_ctrl); +void osm_sm_mad_ctrl_destroy(IN osm_sm_mad_ctrl_t * p_ctrl);/* * PARAMETERS * p_ctrl
@@ -209,16 +209,15 @@ void osm_sm_mad_ctrl_destroy(IN osm_sm_mad_ctrl_t * const p_ctrl);* * SYNOPSIS */ -ib_api_status_t -osm_sm_mad_ctrl_init(IN osm_sm_mad_ctrl_t * const p_ctrl, - IN osm_subn_t * const p_subn, - IN osm_mad_pool_t * const p_mad_pool, - IN osm_vl15_t * const p_vl15, - IN osm_vendor_t * const p_vendor, - IN osm_log_t * const p_log, - IN osm_stats_t * const p_stats, - IN cl_plock_t * const p_lock, - IN cl_dispatcher_t * const p_disp); +ib_api_status_t osm_sm_mad_ctrl_init(IN osm_sm_mad_ctrl_t * p_ctrl, + IN osm_subn_t * p_subn, + IN osm_mad_pool_t * p_mad_pool, + IN osm_vl15_t * p_vl15, + IN osm_vendor_t * p_vendor, + IN osm_log_t * p_log, + IN osm_stats_t * p_stats, + IN cl_plock_t * p_lock, + IN cl_dispatcher_t * p_disp);/* * PARAMETERS * p_ctrl
@@ -266,9 +265,8 @@ osm_sm_mad_ctrl_init(IN osm_sm_mad_ctrl_t * const p_ctrl,* * SYNOPSIS */ -ib_api_status_t -osm_sm_mad_ctrl_bind(IN osm_sm_mad_ctrl_t * const p_ctrl, - IN const ib_net64_t port_guid); +ib_api_status_t osm_sm_mad_ctrl_bind(IN osm_sm_mad_ctrl_t * p_ctrl, + IN ib_net64_t port_guid);/* * PARAMETERS * p_ctrl
@@ -298,9 +296,9 @@ osm_sm_mad_ctrl_bind(IN osm_sm_mad_ctrl_t * const p_ctrl,* SYNOPSIS */ static inline osm_bind_handle_t -osm_sm_mad_ctrl_get_bind_handle(IN const osm_sm_mad_ctrl_t * const p_ctrl) +osm_sm_mad_ctrl_get_bind_handle(IN const osm_sm_mad_ctrl_t * p_ctrl) { -return (p_ctrl->h_bind); +return p_ctrl->h_bind; }/*
opensm/include/opensm/osm_subnet.h +18 -20
@@ -651,7 +651,7 @@ typedef struct osm_subn {* * SYNOPSIS */ -void osm_subn_construct(IN osm_subn_t * const p_subn); +void osm_subn_construct(IN osm_subn_t * p_subn);/* * PARAMETERS * p_subn
@@ -680,7 +680,7 @@ void osm_subn_construct(IN osm_subn_t * const p_subn);* * SYNOPSIS */ -void osm_subn_destroy(IN osm_subn_t * const p_subn); +void osm_subn_destroy(IN osm_subn_t * p_subn);/* * PARAMETERS * p_subn
@@ -708,10 +708,9 @@ void osm_subn_destroy(IN osm_subn_t * const p_subn);* * SYNOPSIS */ -ib_api_status_t -osm_subn_init(IN osm_subn_t * const p_subn, - IN struct osm_opensm *const p_osm, - IN const osm_subn_opt_t * const p_opt); +ib_api_status_t osm_subn_init(IN osm_subn_t * p_subn, + IN struct osm_opensm *p_osm, + IN const osm_subn_opt_t * p_opt);/* * PARAMETERS * p_subn
@@ -752,11 +751,10 @@ struct osm_mgrp;* * SYNOPSIS */ -ib_api_status_t -osm_get_gid_by_mad_addr(IN struct osm_log *p_log, - IN const osm_subn_t * p_subn, - IN struct osm_mad_addr *p_mad_addr, - OUT ib_gid_t * p_gid); +ib_api_status_t osm_get_gid_by_mad_addr(IN struct osm_log *p_log, + IN const osm_subn_t * p_subn, + IN struct osm_mad_addr *p_mad_addr, + OUT ib_gid_t * p_gid);/* * PARAMETERS * p_log
@@ -860,7 +858,7 @@ struct osm_port *osm_get_port_by_mad_addr(IN struct osm_log *p_log,* SYNOPSIS */ struct osm_switch *osm_get_switch_by_guid(IN const osm_subn_t * p_subn, - IN uint64_t guid); + IN uint64_t guid);/* * PARAMETERS * p_subn
@@ -889,7 +887,7 @@ struct osm_switch *osm_get_switch_by_guid(IN const osm_subn_t * p_subn,* SYNOPSIS */ struct osm_node *osm_get_node_by_guid(IN osm_subn_t const *p_subn, - IN uint64_t guid); + IN uint64_t guid);/* * PARAMETERS * p_subn
@@ -918,7 +916,7 @@ struct osm_node *osm_get_node_by_guid(IN osm_subn_t const *p_subn,* SYNOPSIS */ struct osm_port *osm_get_port_by_guid(IN osm_subn_t const *p_subn, - IN ib_net64_t guid); + IN ib_net64_t guid);/* * PARAMETERS * p_subn
@@ -1032,7 +1030,7 @@ struct osm_physp *osm_get_physp_by_mad_addr(IN struct osm_log *p_log,* * SYNOPSIS */ -void osm_subn_set_default_opt(IN osm_subn_opt_t * const p_opt); +void osm_subn_set_default_opt(IN osm_subn_opt_t * p_opt);/* * PARAMETERS *
@@ -1058,7 +1056,7 @@ void osm_subn_set_default_opt(IN osm_subn_opt_t * const p_opt);* * SYNOPSIS */ -int osm_subn_parse_conf_file (char *conf_file,osm_subn_opt_t *const p_opt); +int osm_subn_parse_conf_file (char *conf_file,osm_subn_opt_t * p_opt);/* * PARAMETERS *
@@ -1080,7 +1078,7 @@ int osm_subn_parse_conf_file(char *conf_file, osm_subn_opt_t * const p_opt);* * SYNOPSIS */ -int osm_subn_rescan_conf_files(IN osm_subn_t * const p_subn); +int osm_subn_rescan_conf_files(IN osm_subn_t * p_subn);/* * PARAMETERS *
@@ -1102,7 +1100,7 @@ int osm_subn_rescan_conf_files(IN osm_subn_t * const p_subn);* * SYNOPSIS */ -int osm_subn_output_conf(FILE *out, IN osm_subn_opt_t * const p_opt); +int osm_subn_output_conf(FILE *out, IN osm_subn_opt_t * p_opt);/* * PARAMETERS *
@@ -1125,7 +1123,7 @@ int osm_subn_output_conf(FILE *out, IN osm_subn_opt_t * const p_opt);* * SYNOPSIS */ -int osm_subn_write_conf_file(char *file_name, IN osm_subn_opt_t * const p_opt); +int osm_subn_write_conf_file(char *file_name, IN osm_subn_opt_t * p_opt);/* * PARAMETERS *
@@ -1139,7 +1137,7 @@ int osm_subn_write_conf_file(char *file_name, IN osm_subn_opt_t * const p_opt);* Assumes the conf file is part of the cache dir which defaults to * OSM_DEFAULT_CACHE_DIR or OSM_CACHE_DIR the name is opensm.opts *********/ -int osm_subn_verify_config (osm_subn_opt_t *const p_opt); +int osm_subn_verify_config (osm_subn_opt_t * p_opt); END_C_DECLS#endif /* _OSM_SUBNET_H_ */
opensm/include/opensm/osm_switch.h +65 -87
339 lines not on this page · raw message
opensm/include/opensm/osm_ucast_mgr.h +7 -7
@@ -146,7 +146,7 @@ typedef struct osm_ucast_mgr {* * SYNOPSIS */ -void osm_ucast_mgr_construct(IN osm_ucast_mgr_t * const p_mgr); +void osm_ucast_mgr_construct(IN osm_ucast_mgr_t * p_mgr);/* * PARAMETERS * p_mgr
@@ -176,7 +176,7 @@ void osm_ucast_mgr_construct(IN osm_ucast_mgr_t * const p_mgr);* * SYNOPSIS */ -void osm_ucast_mgr_destroy(IN osm_ucast_mgr_t * const p_mgr); +void osm_ucast_mgr_destroy(IN osm_ucast_mgr_t * p_mgr);/* * PARAMETERS * p_mgr
@@ -207,8 +207,8 @@ void osm_ucast_mgr_destroy(IN osm_ucast_mgr_t * const p_mgr);* * SYNOPSIS */ -ib_api_status_t -osm_ucast_mgr_init(IN osm_ucast_mgr_t * const p_mgr, IN struct osm_sm * sm); +ib_api_status_t osm_ucast_mgr_init(IN osm_ucast_mgr_t * p_mgr, + IN struct osm_sm * sm);/* * PARAMETERS * p_mgr
@@ -238,7 +238,7 @@ osm_ucast_mgr_init(IN osm_ucast_mgr_t * const p_mgr, IN struct osm_sm * sm);* * SYNOPSIS */ -void osm_ucast_mgr_set_fwd_tables(IN osm_ucast_mgr_t * const p_mgr); +void osm_ucast_mgr_set_fwd_tables(IN osm_ucast_mgr_t * p_mgr);/* * PARAMETERS * p_mgr
@@ -257,7 +257,7 @@ void osm_ucast_mgr_set_fwd_tables(IN osm_ucast_mgr_t * const p_mgr);* * SYNOPSIS */ -int osm_ucast_mgr_build_lid_matrices(IN osm_ucast_mgr_t * const p_mgr); +int osm_ucast_mgr_build_lid_matrices(IN osm_ucast_mgr_t * p_mgr);/* * PARAMETERS * p_mgr
@@ -280,7 +280,7 @@ int osm_ucast_mgr_build_lid_matrices(IN osm_ucast_mgr_t * const p_mgr);* * SYNOPSIS */ -int osm_ucast_mgr_process(IN osm_ucast_mgr_t * const p_mgr); +int osm_ucast_mgr_process(IN osm_ucast_mgr_t * p_mgr);/* * PARAMETERS * p_mgr
opensm/include/opensm/osm_vl15intf.h +8 -14
@@ -176,7 +176,7 @@ typedef struct osm_vl15 {* * SYNOPSIS */ -void osm_vl15_construct(IN osm_vl15_t * const p_vl15); +void osm_vl15_construct(IN osm_vl15_t * p_vl15);/* * PARAMETERS * p_vl15
@@ -205,8 +205,7 @@ void osm_vl15_construct(IN osm_vl15_t * const p_vl15);* * SYNOPSIS */ -void -osm_vl15_destroy(IN osm_vl15_t * const p_vl15, IN struct osm_mad_pool *p_pool); +void osm_vl15_destroy(IN osm_vl15_t * p_vl15, IN struct osm_mad_pool *p_pool);/* * PARAMETERS * p_vl15
@@ -242,12 +241,9 @@ osm_vl15_destroy(IN osm_vl15_t * const p_vl15, IN struct osm_mad_pool *p_pool);* * SYNOPSIS */ -ib_api_status_t -osm_vl15_init(IN osm_vl15_t * const p_vl15, - IN osm_vendor_t * const p_vend, - IN osm_log_t * const p_log, - IN osm_stats_t * const p_stats, - IN const int32_t max_wire_smps); +ib_api_status_t osm_vl15_init(IN osm_vl15_t * p_vl15, IN osm_vendor_t * p_vend, + IN osm_log_t * p_log, IN osm_stats_t * p_stats, + IN int32_t max_wire_smps);/* * PARAMETERS * p_vl15
@@ -284,7 +280,7 @@ osm_vl15_init(IN osm_vl15_t * const p_vl15,* * SYNOPSIS */ -void osm_vl15_post(IN osm_vl15_t * const p_vl15, IN osm_madw_t * const p_madw); +void osm_vl15_post(IN osm_vl15_t * p_vl15, IN osm_madw_t * p_madw);/* * PARAMETERS * p_vl15
@@ -313,7 +309,7 @@ void osm_vl15_post(IN osm_vl15_t * const p_vl15, IN osm_madw_t * const p_madw);* * SYNOPSIS */ -void osm_vl15_poll(IN osm_vl15_t * const p_vl); +void osm_vl15_poll(IN osm_vl15_t * p_vl);/* * PARAMETERS * p_vl15
@@ -343,9 +339,7 @@ void osm_vl15_poll(IN osm_vl15_t * const p_vl);* * SYNOPSIS */ -void -osm_vl15_shutdown(IN osm_vl15_t * const p_vl, - IN osm_mad_pool_t * const p_mad_pool); +void osm_vl15_shutdown(IN osm_vl15_t * p_vl, IN osm_mad_pool_t * p_mad_pool);/* * PARAMETERS * p_vl15
opensm/opensm/osm_db_files.c +7 -7
@@ -119,7 +119,7 @@ typedef struct osm_db_imp {/*************************************************************************** ***************************************************************************/ -void osm_db_construct(IN osm_db_t * const p_db) +void osm_db_construct(IN osm_db_t * p_db) {memset (p_db,0 ,sizeof (osm_db_t));cl_list_construct (&p_db->domains);
@@ -143,7 +143,7 @@ void osm_db_domain_destroy(IN osm_db_domain_t * p_db_domain)/*************************************************************************** ***************************************************************************/ -void osm_db_destroy(IN osm_db_t * const p_db) +void osm_db_destroy(IN osm_db_t * p_db) {osm_db_domain_t *p_domain;
@@ -157,7 +157,7 @@ void osm_db_destroy(IN osm_db_t * const p_db)/*************************************************************************** ***************************************************************************/ -int osm_db_init(IN osm_db_t * const p_db, IN osm_log_t * p_log) +int osm_db_init(IN osm_db_t * p_db, IN osm_log_t * p_log) {osm_db_imp_t *p_db_imp;struct stat dstat;
@@ -201,7 +201,7 @@ int osm_db_init(IN osm_db_t * const p_db, IN osm_log_t * p_log)/*************************************************************************** ***************************************************************************/ -osm_db_domain_t *osm_db_domain_init(IN osm_db_t * const p_db, IN char *domain_name) +osm_db_domain_t *osm_db_domain_init(IN osm_db_t * p_db, IN char *domain_name) {osm_db_domain_t *p_domain;osm_db_domain_imp_t *p_domain_imp;
@@ -537,7 +537,7 @@ int osm_db_keys(IN osm_db_domain_t * p_domain, OUT cl_list_t * p_key_list)/*************************************************************************** ***************************************************************************/ -char *osm_db_lookup(IN osm_db_domain_t * p_domain, IN char * const p_key) +char *osm_db_lookup(IN osm_db_domain_t * p_domain, IN char *p_key) {osm_db_domain_imp_t *p_domain_imp = (osm_db_domain_imp_t *) p_domain->p_domain_imp;
@@ -555,7 +555,7 @@ char *osm_db_lookup(IN osm_db_domain_t * p_domain, IN char * const p_key)/*************************************************************************** ***************************************************************************/ -int osm_db_update(IN osm_db_domain_t * p_domain, IN char * const p_key, IN char * const p_val) +int osm_db_update(IN osm_db_domain_t * p_domain, IN char *p_key, IN char *p_val) {osm_log_t *p_log = p_domain->p_db->p_log; osm_db_domain_imp_t *p_domain_imp =
@@ -595,7 +595,7 @@ int osm_db_update(IN osm_db_domain_t * p_domain, IN char * const p_key, IN char/*************************************************************************** ***************************************************************************/ -int osm_db_delete(IN osm_db_domain_t * p_domain, IN char * const p_key) +int osm_db_delete(IN osm_db_domain_t * p_domain, IN char *p_key) {osm_log_t *p_log = p_domain->p_db->p_log; osm_db_domain_imp_t *p_domain_imp =
opensm/opensm/osm_db_pack.c +4 -4
@@ -83,7 +83,7 @@ static inline int unpack_lids(IN char *p_lid_str, OUT uint16_t * p_min_lid,return 0 ; } -int osm_db_guid2lid_guids(IN osm_db_domain_t * const p_g2l, +int osm_db_guid2lid_guids(IN osm_db_domain_t * p_g2l, OUT cl_qlist_t * p_guid_list) {char *p_key;
@@ -109,7 +109,7 @@ int osm_db_guid2lid_guids(IN osm_db_domain_t * const p_g2l,return 0 ; } -int osm_db_guid2lid_get(IN osm_db_domain_t * const p_g2l, IN uint64_t guid, +int osm_db_guid2lid_get(IN osm_db_domain_t * p_g2l, IN uint64_t guid, OUT uint16_t * p_min_lid, OUT uint16_t * p_max_lid) {char guid_str[20 ];
@@ -131,7 +131,7 @@ int osm_db_guid2lid_get(IN osm_db_domain_t * const p_g2l, IN uint64_t guid,return 0 ; } -int osm_db_guid2lid_set(IN osm_db_domain_t * const p_g2l, IN uint64_t guid, +int osm_db_guid2lid_set(IN osm_db_domain_t * p_g2l, IN uint64_t guid, IN uint16_t min_lid, IN uint16_t max_lid) {char guid_str[20 ];
@@ -143,7 +143,7 @@ int osm_db_guid2lid_set(IN osm_db_domain_t * const p_g2l, IN uint64_t guid,return (osm_db_update (p_g2l, guid_str, lid_str)); } -int osm_db_guid2lid_delete(IN osm_db_domain_t * const p_g2l, IN uint64_t guid) +int osm_db_guid2lid_delete(IN osm_db_domain_t * p_g2l, IN uint64_t guid) {char guid_str[20 ];pack_guid (guid, guid_str);
opensm/opensm/osm_inform.c +4 -4
@@ -61,7 +61,7 @@ typedef struct osm_infr_match_ctxt {/********************************************************************** **********************************************************************/ -void osm_infr_delete(IN osm_infr_t * const p_infr) +void osm_infr_delete(IN osm_infr_t * p_infr) {free (p_infr); }
@@ -83,7 +83,7 @@ osm_infr_t *osm_infr_new(IN const osm_infr_t * p_infr_rec)/********************************************************************** **********************************************************************/ -static void dump_all_informs(IN osm_subn_t const *p_subn, IN osm_log_t * p_log) +static void dump_all_informs(IN const osm_subn_t * p_subn, IN osm_log_t * p_log) {cl_list_item_t *p_list_item;
@@ -214,7 +214,7 @@ Exit:**********************************************************************/ osm_infr_t *osm_infr_get_by_rec(IN osm_subn_t const *p_subn, IN osm_log_t * p_log, - IN osm_infr_t * const p_infr_rec) + IN osm_infr_t * p_infr_rec) {cl_list_item_t *p_list_item;
@@ -572,7 +572,7 @@ static void log_notice(osm_log_t * log, osm_log_level_t level, sizeof gid_str)); } -ib_api_status_t osm_report_notice(IN osm_log_t * const p_log, IN osm_subn_t * p_subn, +ib_api_status_t osm_report_notice(IN osm_log_t * p_log, IN osm_subn_t * p_subn, IN ib_mad_notice_attr_t * p_ntc) {osm_infr_match_ctxt_t context;
opensm/opensm/osm_lid_mgr.c +10 -11
@@ -106,14 +106,14 @@ typedef struct osm_lid_mgr_range {/********************************************************************** **********************************************************************/ -void osm_lid_mgr_construct(IN osm_lid_mgr_t * const p_mgr) +void osm_lid_mgr_construct(IN osm_lid_mgr_t * p_mgr) {memset (p_mgr,0 ,sizeof (*p_mgr)); }/********************************************************************** **********************************************************************/ -void osm_lid_mgr_destroy(IN osm_lid_mgr_t * const p_mgr) +void osm_lid_mgr_destroy(IN osm_lid_mgr_t * p_mgr) {cl_list_item_t *p_item;
@@ -224,7 +224,7 @@ Exit:/********************************************************************** **********************************************************************/ -ib_api_status_t osm_lid_mgr_init(IN osm_lid_mgr_t * const p_mgr, IN osm_sm_t * sm) +ib_api_status_t osm_lid_mgr_init(IN osm_lid_mgr_t * p_mgr, IN osm_sm_t * sm) {ib_api_status_t status =IB_SUCCESS ;
@@ -585,11 +585,11 @@ AfterScanningLids:check if the given range of lids is free **********************************************************************/ static boolean_t lid_mgr_is_range_not_persistent(IN osm_lid_mgr_t * p_mgr, - IN const uint16_t lid, - IN const uint16_t num_lids) + IN uint16_t lid, + IN uint16_t num_lids) {uint16_t i; -const uint8_t start_lid = (uint8_t ) (1 << p_mgr->p_subn->opt.lmc); +uint8_t start_lid = (uint8_t ) (1 << p_mgr->p_subn->opt.lmc);if (lid < start_lid)return FALSE;
@@ -605,7 +605,7 @@ static boolean_t lid_mgr_is_range_not_persistent(IN osm_lid_mgr_t * p_mgr,find a free lid range **********************************************************************/ static void lid_mgr_find_free_lid_range(IN osm_lid_mgr_t * p_mgr, - IN const uint8_t num_lids, + IN uint8_t num_lids, OUT uint16_t * p_min_lid, OUT uint16_t * p_max_lid) {
@@ -823,8 +823,7 @@ static void lid_mgr_set_remote_pi_state_to_init(IN osm_lid_mgr_t * p_mgr,**********************************************************************/ static int lid_mgr_set_physp_pi(IN osm_lid_mgr_t * p_mgr, IN osm_port_t * p_port, - IN osm_physp_t * p_physp, - IN ib_net16_t const lid) + IN osm_physp_t * p_physp, IN ib_net16_t lid) {uint8_t payload[IB_SMP_DATA_SIZE ];ib_port_info_t *p_pi = (ib_port_info_t *) payload;
@@ -1145,7 +1144,7 @@ Exit:/********************************************************************** **********************************************************************/ -int osm_lid_mgr_process_sm(IN osm_lid_mgr_t * const p_mgr) +int osm_lid_mgr_process_sm(IN osm_lid_mgr_t * p_mgr) {int ret;
@@ -1173,7 +1172,7 @@ int osm_lid_mgr_process_sm(IN osm_lid_mgr_t * const p_mgr)1.2 if a change is required send the port info 2 if any change send the signal PENDING... **********************************************************************/ -int osm_lid_mgr_process_subnet(IN osm_lid_mgr_t * const p_mgr) +int osm_lid_mgr_process_subnet(IN osm_lid_mgr_t * p_mgr) {cl_qmap_t *p_port_guid_tbl;osm_port_t *p_port;
opensm/opensm/osm_log.c +13 -17
@@ -80,7 +80,7 @@ void OsmReportState(IN const char *p_str);#ifndef WIN32 -static void truncate_log_file (osm_log_t *const p_log) +static void truncate_log_file (osm_log_t * p_log) {int fd =fileno (p_log->out_port);if (ftruncate (fd,0 ) <0 )
@@ -94,15 +94,15 @@ static void truncate_log_file(osm_log_t * const p_log)#else /* Windows */ -static void truncate_log_file (osm_log_t *const p_log) +static void truncate_log_file (osm_log_t * p_log) {fprintf (stderr,"truncate_log_file: cannot truncate on windows system (yet)\n" ); }#endif /* ndef WIN32 */ -void osm_log(IN osm_log_t * const p_log, - IN const osm_log_level_t verbosity, IN const char *p_str, ...) +void osm_log(IN osm_log_t * p_log, IN osm_log_level_t verbosity, + IN const char *p_str, ...) {char buffer[LOG_ENTRY_SIZE_MAX ];va_list args;
@@ -198,8 +198,8 @@ _retry:cl_spinlock_release (&p_log->lock); } -void osm_log_raw(IN osm_log_t * const p_log, - IN const osm_log_level_t verbosity, IN const char *p_buf) +void osm_log_raw(IN osm_log_t * p_log, IN osm_log_level_t verbosity, + IN const char *p_buf) {if (p_log->level & verbosity) {cl_spinlock_acquire (&p_log->lock);
@@ -296,12 +296,10 @@ int osm_log_reopen_file(osm_log_t * p_log)return ret; } -ib_api_status_t osm_log_init_v2(IN osm_log_t * const p_log, - IN const boolean_t flush, - IN const uint8_t log_flags, - IN const char *log_file, - IN const unsigned long max_size, - IN const boolean_t accum_log_file) +ib_api_status_t osm_log_init_v2(IN osm_log_t * p_log, IN boolean_t flush, + IN uint8_t log_flags, IN const char *log_file, +IN unsigned long max_size, + IN boolean_t accum_log_file) { p_log->level = log_flags; p_log->flush = flush;
@@ -326,11 +324,9 @@ ib_api_status_t osm_log_init_v2(IN osm_log_t * const p_log,return IB_ERROR ; } -ib_api_status_t osm_log_init(IN osm_log_t * const p_log, - IN const boolean_t flush, - IN const uint8_t log_flags, - IN const char *log_file, - IN const boolean_t accum_log_file) +ib_api_status_t osm_log_init(IN osm_log_t * p_log, IN boolean_t flush, + IN uint8_t log_flags, IN const char *log_file, + IN boolean_t accum_log_file) {return osm_log_init_v2 (p_log, flush, log_flags, log_file,0 , accum_log_file);
opensm/opensm/osm_mad_pool.c +12 -13
@@ -52,7 +52,7 @@/********************************************************************** **********************************************************************/ -void osm_mad_pool_construct(IN osm_mad_pool_t * const p_pool) +void osm_mad_pool_construct(IN osm_mad_pool_t * p_pool) {CL_ASSERT (p_pool);
@@ -61,14 +61,14 @@ void osm_mad_pool_construct(IN osm_mad_pool_t * const p_pool)/********************************************************************** **********************************************************************/
Lines of this file are not shown. View the raw message.
opensm/opensm/osm_mcast_tbl.c +17 -25
42 lines not on this page · raw message
opensm/opensm/osm_node.c +20 -31
51 lines not on this page · raw message
opensm/opensm/osm_sa.c +17 -27
44 lines not on this page · raw message
opensm/opensm/osm_service.c +18 -30
48 lines not on this page · raw message
opensm/opensm/osm_switch.c +29 -39
68 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.6.5.rc1
Part of the diff is not shown here. View the raw message.