Lines Matching refs:pathstr
598 char *pathstr; in get_mac80211_phydev() local
604 if (asprintf(&pathstr, "/sys/class/net/%s/phy80211", device) == -1) { in get_mac80211_phydev()
610 bytes_read = readlink(pathstr, phydev_path, phydev_max_pathlen); in get_mac80211_phydev()
617 free(pathstr); in get_mac80211_phydev()
621 errno, "%s: Can't readlink %s", device, pathstr); in get_mac80211_phydev()
622 free(pathstr); in get_mac80211_phydev()
625 free(pathstr); in get_mac80211_phydev()
2651 char *pathstr; local
2653 if (asprintf(&pathstr, "/sys/class/net/%s/type", name) == -1) {
2660 fh = fopen(pathstr, "r");
2680 free(pathstr);
2705 free(pathstr);
3070 char *pathstr; local
3080 if (asprintf(&pathstr, "/sys/class/net/%s/wireless", device) == -1) {
3086 if (stat(pathstr, &statb) == 0) {
3087 free(pathstr);
3090 free(pathstr);