Osmocom C files syntax understanding

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/baseband-devel@lists.osmocom.org/.

Tomcsányi, Domonkos domi at tomcsanyi.net
Thu Nov 19 19:23:25 UTC 2020


Hello Mario,

I think you have not checked everywhere :). Even a quick google search
(if you don't want use grep) for gsm_bts_trx returns the file:
bts_trx.h
https://github.com/osmocom/osmo-bts/blob/master/include/osmo-bts/bts_trx.h

Cheers,
Domi

On Thu, Nov 19, 2020 at 7:28 PM Mario Lucas <mariolucas75 at mail.ru> wrote:
>
> Dear baseband-developers team,
>
>
> Would you be so kind to advise me on the following:
>
> I desire (dramatically want very much) to learn / understand Osmocom projects.
> I am a beginner in programming and i try to understand / learn C files that the project is build of.
>
> As an example i tried to learn / understand for example an Osmocom message buffer — msgb.h file.
>
> But immediately faced some syntax difficulties:
>
> This is the extract of msgb.h file:
>
> struct msgb {
>     struct llist_head list; /*!< \brief linked list header */
>
>     /* Part of which TRX logical channel we were received / transmitted */
>     /* FIXME: move them into the control buffer */
>     union {
>         void *dst; /*!< \brief reference of origin/destination */
>         struct gsm_bts_trx *trx;
>     };
>
> As it can be seen a structure «msgb» has as one of its components another structure — «gsm_bts_trx»
>
> But in whole Osmocom BB project files i could not find definition / description of struct «gsm_bts_trx».
>
> Would you kindly advise me please how to see which components / constituents / elements are in this gsm_bts_trx structure?
> From which components is struct gsm_bts_trx build of?
>
> Thank you so much for your kind advise.
>
> --
> Mario Lucas



More information about the baseband-devel mailing list