Searched refs:sysfs_mtd (Results 1 – 2 of 2) sorted by relevance
496 DIR *sysfs_mtd; in sysfs_is_supported() local499 sysfs_mtd = opendir(lib->sysfs_mtd); in sysfs_is_supported()500 if (!sysfs_mtd) { in sysfs_is_supported()505 return sys_errmsg("cannot open \"%s\"", lib->sysfs_mtd); in sysfs_is_supported()517 dirent = readdir(sysfs_mtd); in sysfs_is_supported()523 lib->sysfs_mtd, dirent->d_name); in sysfs_is_supported()525 closedir(sysfs_mtd); in sysfs_is_supported()537 if (closedir(sysfs_mtd)) in sysfs_is_supported()538 return sys_errmsg("closedir failed on \"%s\"", lib->sysfs_mtd); in sysfs_is_supported()565 lib->sysfs_mtd = mkpath("/sys", SYSFS_MTD); in libmtd_open()[all …]
83 char *sysfs_mtd; member