summaryrefslogtreecommitdiff
path: root/libdiskfs/io-readable.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2010-08-27 01:24:30 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2010-08-27 01:24:30 +0200
commite34814b27b4a5b80761c166d5827d1c9177fd1fe (patch)
tree6acd0dc3247162badbc350dcc59c66d00efa7458 /libdiskfs/io-readable.c
parent5c2ab2008137612797ccaa6c07599cc3e0f9e722 (diff)
Keep a reference on objects to preserve their content.
Modify tmpfs to keep a reference (by mapping it into its own space) to each memory object created by the user, so they don't get inmediately terminated at the end of the current operation. * tmpfs/tmpfs.h (struct disknode): Add `memref' field. * tmpfs/node.c (diskfs_get_filemap): vm_map() the first page of the newly-allocated object, store in `memref' field. (diskfs_free_node) vm_deallocate the page pointed by `memref' field.
Diffstat (limited to 'libdiskfs/io-readable.c')
0 files changed, 0 insertions, 0 deletions