Lines Matching full:map_ptr
226 void *map_ptr; /* where it is currently mapped */
890 if (tdb->map_ptr) {
891 memcpy(off + (char *)tdb->map_ptr, buf, len);
920 if (tdb->map_ptr) {
921 memcpy(buf, off + (char *)tdb->map_ptr, len);
949 if (tdb->map_ptr) {
951 if (0 != *(u32 *)(TDB_HASH_TOP(h) + (unsigned char *)tdb->map_ptr)) {
973 if (tdb->map_ptr) {
974 int ret = munmap(tdb->map_ptr, tdb->map_size);
979 tdb->map_ptr = NULL;
990 tdb->map_ptr = mmap(NULL, tdb->map_size,
998 if (tdb->map_ptr == MAP_FAILED) {
999 tdb->map_ptr = NULL;
1004 tdb->map_ptr = NULL;
1007 tdb->map_ptr = NULL;
1087 char *new_map_ptr = (char *)realloc(tdb->map_ptr,
1093 tdb->map_ptr = new_map_ptr;
1171 if ((tdb->transaction == NULL) && (tdb->map_ptr != NULL)) {
1179 data.dptr = offset + (unsigned char *)tdb->map_ptr;
1753 if (tdb->map_ptr) {
1755 if (msync(moffset + (char *)tdb->map_ptr,
3743 tdb->map_ptr = (char *)newdb;
3829 tdb->map_ptr = NULL;
3987 if (tdb->map_ptr) {
3989 SAFE_FREE(tdb->map_ptr);
4026 if (tdb->map_ptr) {
4028 SAFE_FREE(tdb->map_ptr);