Lines Matching refs:node
422 * dev_node2num - find UBI device number by its character device node.
424 * @node: name of the MTD device node
429 static int dev_node2num(struct libmtd *lib, const char *node, int *mtd_num)
435 if (stat(node, &st))
436 return sys_errmsg("cannot get information about \"%s\"", node);
439 errmsg("\"%s\" is not a character device", node);
783 int mtd_get_dev_info(libmtd_t desc, const char *node, struct mtd_dev_info *mtd)
789 return legacy_get_dev_info(node, mtd);
792 if (dev_node2num(lib, node, &mtd_num))
1378 int mtd_probe_node(libmtd_t desc, const char *node)
1385 if (stat(node, &st))
1386 return sys_errmsg("cannot get information about \"%s\"", node);
1389 errmsg("\"%s\" is not a character device", node);