The function ramfs_get_parent near the top skips leading '/' characters (around line 174 of ramfs_vector.c).
ramfs_get_parent is called from:
ramfs_get_entry
ramfs_create
ramfs_rename (twice)
ramfs_mkdir
In each call, the pathname is pre-processed to skip leading '/' characters. The only effect of this is the loss of a few clock cycles, but perhaps the code would be simpler if the functionality was kept in ramfs_get_parent and removed elsewhere.
The function
ramfs_get_parentnear the top skips leading '/' characters (around line 174 oframfs_vector.c).ramfs_get_parentis called from:ramfs_get_entryramfs_createramfs_rename(twice)ramfs_mkdirIn each call, the pathname is pre-processed to skip leading '/' characters. The only effect of this is the loss of a few clock cycles, but perhaps the code would be simpler if the functionality was kept in
ramfs_get_parentand removed elsewhere.