[PATCH v2 4/7] global_data: Add some more accessors