Searched refs:sysfs_name (Results 1 – 2 of 2) sorted by relevance
35 char *sysfs_name; in GetMtdSize() local36 if (asprintf(&sysfs_name, "/sys/class/mtd%s/size", mtd_device) == -1) { in GetMtdSize()39 FILE *fp = fopen(sysfs_name, "r"); in GetMtdSize()40 free(sysfs_name); in GetMtdSize()
126 char sysfs_name[128]; in sysfs_get_offset() local133 if ((size_t)snprintf(sysfs_name, sizeof sysfs_name, in sysfs_get_offset()136 >= sizeof sysfs_name) in sysfs_get_offset()139 f = fopen(sysfs_name, "r"); in sysfs_get_offset()