bsc: ts_for_each_lchan: Improve documentation

Change-Id: Id7c050087c14aae3f01c6d41d21cf861ff53621c
This commit is contained in:
Pau Espin 2018-11-28 16:37:37 +01:00
parent d3e8e0cf4c
commit 7ae0f9c271
1 changed files with 4 additions and 2 deletions

View File

@ -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 {