This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Max gerrit-no-reply at lists.osmocom.orgReview at https://gerrit.osmocom.org/4955 Add function to get max supported MS class It's useful for allocation tests. Change-Id: I31d503af700ec3364042ff7e661710953cacf9f8 Related: OS#2282 --- M src/mslot_class.c M src/mslot_class.h 2 files changed, 6 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/55/4955/1 diff --git a/src/mslot_class.c b/src/mslot_class.c index 6d7c09d..19fea3e 100644 --- a/src/mslot_class.c +++ b/src/mslot_class.c @@ -82,6 +82,11 @@ return &gprs_ms_multislot_class[index]; } +uint8_t mslot_class_max() +{ + return ARRAY_SIZE(gprs_ms_multislot_class); +} + uint8_t mslot_class_get_ta(uint8_t ms_cl) { return get_mslot_table(ms_cl)->ta; diff --git a/src/mslot_class.h b/src/mslot_class.h index f26bd64..cba9d58 100644 --- a/src/mslot_class.h +++ b/src/mslot_class.h @@ -44,3 +44,4 @@ uint8_t mslot_class_get_rx(uint8_t ms_cl); uint8_t mslot_class_get_sum(uint8_t ms_cl); uint8_t mslot_class_get_type(uint8_t ms_cl); +uint8_t mslot_class_max(); -- To view, visit https://gerrit.osmocom.org/4955 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I31d503af700ec3364042ff7e661710953cacf9f8 Gerrit-PatchSet: 1 Gerrit-Project: osmo-pcu Gerrit-Branch: master Gerrit-Owner: Max <msuraev at sysmocom.de>