Change in libosmocore[master]: i460: Add back-pointer from sub-channel to timeslot

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/.

laforge gerrit-no-reply at lists.osmocom.org
Sun Aug 2 09:58:04 UTC 2020


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/19501 )


Change subject: i460: Add back-pointer from sub-channel to timeslot
......................................................................

i460: Add back-pointer from sub-channel to timeslot

A user may want to walk back from a sub-channel to the timeslot
to which it belongs.

Change-Id: Id6e5e208c5daa63fd23ac719d62314622b5d0ed9
---
M include/osmocom/gsm/i460_mux.h
M src/gsm/i460_mux.c
2 files changed, 2 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/01/19501/1

diff --git a/include/osmocom/gsm/i460_mux.h b/include/osmocom/gsm/i460_mux.h
index dd752db..e7ea9bd 100644
--- a/include/osmocom/gsm/i460_mux.h
+++ b/include/osmocom/gsm/i460_mux.h
@@ -62,6 +62,7 @@
 };
 
 struct osmo_i460_subchan {
+	struct osmo_i460_timeslot *ts;	/* back-pointer */
 	enum osmo_i460_rate rate;		/* 8/16/32/64k */
 	uint8_t bit_offset;		/* bit offset inside each byte of the B-channel */
 	struct osmo_i460_subchan_demux demux;
diff --git a/src/gsm/i460_mux.c b/src/gsm/i460_mux.c
index dfd50e5..3b2a589 100644
--- a/src/gsm/i460_mux.c
+++ b/src/gsm/i460_mux.c
@@ -339,6 +339,7 @@
 
 	for (i = 0; i < ARRAY_SIZE(ts->schan); i++) {
 		struct osmo_i460_subchan *schan = &ts->schan[i];
+		schan->ts = ts;
 		subchan_reset(schan, true);
 	}
 }

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/19501
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Id6e5e208c5daa63fd23ac719d62314622b5d0ed9
Gerrit-Change-Number: 19501
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200802/4d0a2416/attachment.htm>


More information about the gerrit-log mailing list