[PATCH libosmo-netif 03/18] osmux: add circuit helper functions

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

Holger Freyther holger at freyther.de
Sat Aug 8 18:56:56 UTC 2015


> On 21 Jul 2015, at 16:23, pablo at gnumonks.org wrote:



Hi!


> +static struct batch_list_node *
> +osmux_batch_add_circuit(struct osmux_batch *batch, int ccid)
> +{
> +	struct batch_list_node *circuit;
> +
> +	circuit = osmux_batch_find_circuit(batch, ccid);
> +	if (circuit != NULL) {
> +		LOGP(DLMIB, LOGL_ERROR, "circuit %u already exists!\n", ccid);
> +		return NULL;
> +	}

Okay very defensive but no performance issue right now. Patches 1-3 look good!

holger





More information about the OpenBSC mailing list