/* Since devlink regions have a fixed size and the static config has a variable * size, we need to calculate the maximum possible static config size by * creating a dummy config with all table entries populated to the max, and get * its packed length. This is done dynamically as opposed to simply hardcoding * a number, since currently not all static config tables are implemented, so * we are avoiding a possible code desynchronization.
*/ static size_t sja1105_static_config_get_max_size(struct sja1105_private *priv)
{ struct sja1105_static_config config; enum sja1105_blk_idx blk_idx; int rc;
rc = sja1105_static_config_init(&config,
priv->info->static_ops,
priv->info->device_id); if (rc) return 0;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.