From 7ae0f9c271fd403bab96897056eb2efe87b2adec Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Wed, 28 Nov 2018 16:37:37 +0100 Subject: bsc: ts_for_each_lchan: Improve documentation Change-Id: Id7c050087c14aae3f01c6d41d21cf861ff53621c --- include/osmocom/bsc/gsm_data.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/osmocom/bsc/gsm_data.h b/include/osmocom/bsc/gsm_data.h index 4a8b7be63..2f60e4dfe 100644 --- a/include/osmocom/bsc/gsm_data.h +++ b/include/osmocom/bsc/gsm_data.h @@ -467,13 +467,15 @@ struct gsm_encr { && lchan->nr < pchan_subslots(as_pchan); \ lchan++) -/* usage: +/* Iterate lchans that have an FSM allocated based on current PCHAN + * mode set in \ref ts. + * usage: * struct gsm_lchan *lchan; * struct gsm_bts_trx_ts *ts = get_some_timeslot(); * ts_for_each_lchan(lchan, ts) { * LOGPLCHAN(DMAIN, LOGL_DEBUG, "hello world\n"); * } - * Iterate only those lchans that have an FSM allocated. */ + */ #define ts_for_each_lchan(lchan, ts) ts_as_pchan_for_each_lchan(lchan, ts, (ts)->pchan_is) enum lchan_activate_mode { -- cgit v1.2.3