13 REGION_PUBLIC_ENTER(region);
15 mutex_lock(®ion->mtx);
18 auto res = region_file_get(region, &rf, pos,
false);
20 mutex_unlock(®ion->mtx);
21 REGION_PUBLIC_LEAVE(region);
25 rwmutex_rdlock(&rf->mtx);
26 mutex_unlock(®ion->mtx);
30 res = file_get(rf->f, (
void**)&data, &size);
32 rwmutex_rdunlock(&rf->mtx);
33 REGION_PUBLIC_LEAVE(region);
37 REGION_PUBLIC_LEAVE(region);