MCPcopy Create free account
hub / github.com/F-Stack/f-stack / get_mode_desc

Function get_mode_desc

tools/ifconfig/ifmedia.c:659–676  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

657}
658
659static struct ifmedia_description *get_mode_desc(int ifmw,
660 struct ifmedia_type_to_subtype *ttos)
661{
662 int i;
663 struct ifmedia_description *desc;
664
665 for (i = 0; ttos->modes[i].desc != NULL; i++) {
666 if (ttos->modes[i].alias)
667 continue;
668 for (desc = ttos->modes[i].desc;
669 desc->ifmt_string != NULL; desc++) {
670 if (IFM_MODE(ifmw) == desc->ifmt_word)
671 return desc;
672 }
673 }
674
675 return NULL;
676}
677
678static void
679print_media_word(int ifmw, int print_toptype)

Callers 2

print_media_wordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected