20 memset(fss, 0,
sizeof(fss));
25 DBGOUT(
"register_fs(\"%s\", %p, %p)\r\n", mountpoint, callback, opaque);
27 for (i = 0; i <
MAX_FS; i++) {
39 int fs_open(
const char * path,
int flags,
int mode) {
45 while (path[0] ==
'/')
48 slash = strchr(path,
'/');
53 hash =
hash_djb2((
const uint8_t *) path, slash - path);
56 for (i = 0; i <
MAX_FS; i++) {
57 if (fss[i].hash == hash)
58 return fss[i].
cb(fss[i].
opaque, path, flags, mode);