yaffs: Add yaffs direct code for tracking flash traffic
[yaffs2.git] / direct / yaffsfs.c
index b93f29534962ac909489f81cfcfd91a17532fdd1..d9be4907e2064d5d1f3d8d76ff2f9632fa43c272 100644 (file)
@@ -1660,6 +1660,14 @@ int yaffs_mkdir(const YCHAR *path, mode_t mode)
        return retVal;
 }
 
+void * yaffs_getdev(const YCHAR *path)
+{
+       yaffs_Device *dev=NULL;
+       YCHAR *dummy;
+       dev = yaffsfs_FindDevice(path,&dummy);
+       return (void *)dev;
+}
+
 int yaffs_mount2(const YCHAR *path,int readOnly)
 {
        int retVal=-1;