/** *icc_bulk_set_bw()-setbandwidthtoasetofpaths *@num_paths:thenumberoficc_bulk_data *@paths:theicc_bulk_datatablecontainingthepathsandbandwidth * *Returns0onsuccessornegativeerrnootherwise.
*/ int icc_bulk_set_bw(int num_paths, conststruct icc_bulk_data *paths)
{ int ret = 0; int i;
for (i = 0; i < num_paths; i++) {
ret = icc_set_bw(paths[i].path, paths[i].avg_bw, paths[i].peak_bw); if (ret) {
pr_err("icc_set_bw() failed on path %s (%d)\n", paths[i].name, ret); return ret;
}
}
return ret;
}
EXPORT_SYMBOL_GPL(icc_bulk_set_bw);
/** *icc_bulk_enable()-enableapreviouslydisabledsetofpaths *@num_paths:thenumberoficc_bulk_data *@paths:theicc_bulk_datatablecontainingthepathsandbandwidth * *Returns0onsuccessornegativeerrnootherwise.
*/ int icc_bulk_enable(int num_paths, conststruct icc_bulk_data *paths)
{ int ret, i;
for (i = 0; i < num_paths; i++) {
ret = icc_enable(paths[i].path); if (ret) {
pr_err("icc_enable() failed on path %s (%d)\n", paths[i].name, ret); goto err;
}
}
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.