Port fix: don't round mmap offset to next page
[babeltrace.git] / plugins / ctf / fs-src / data-stream-file.h
index 99efd36fae3df5a75db12f0bcb022ac1c41f36ba..1d3e51e68385e70a8c5b4afcdd0d0f3985a02941 100644 (file)
@@ -94,20 +94,20 @@ struct ctf_fs_ds_file {
        /* Owned by this */
        struct bt_clock_class_priority_map *cc_prio_map;
 
-       /* Owned by this */
+       /* Weak */
        struct bt_ctf_notif_iter *notif_iter;
 
        void *mmap_addr;
 
-       /* Max length of chunk to mmap() when updating the current mapping. */
+       /*
+        * Max length of chunk to mmap() when updating the current mapping.
+        * This value must be page-aligned.
+        */
        size_t mmap_max_len;
 
-       /* Length of the current mapping. */
+       /* Length of the current mapping. Never exceeds the file's length. */
        size_t mmap_len;
 
-       /* Length of the current mapping which *exists* in the backing file. */
-       size_t mmap_valid_len;
-
        /* Offset in the file where the current mapping starts. */
        off_t mmap_offset;
 
@@ -123,6 +123,7 @@ struct ctf_fs_ds_file {
 BT_HIDDEN
 struct ctf_fs_ds_file *ctf_fs_ds_file_create(
                struct ctf_fs_trace *ctf_fs_trace,
+               struct bt_ctf_notif_iter *notif_iter,
                struct bt_ctf_stream *stream, const char *path);
 
 BT_HIDDEN
@@ -145,4 +146,6 @@ struct ctf_fs_ds_index *ctf_fs_ds_file_build_index(
 BT_HIDDEN
 void ctf_fs_ds_index_destroy(struct ctf_fs_ds_index *index);
 
+extern struct bt_ctf_notif_iter_medium_ops ctf_fs_ds_file_medops;
+
 #endif /* CTF_FS_DS_FILE_H */
This page took 0.02432 seconds and 4 git commands to generate.