How to check if a file is in SWMR writing mode?

Is there a simple way to check if a given (open) file is already in SWMR writing mode ?

I now that H5F_START_SWMR_WRITE checks this feature among other things but is there an easier way to only check if SWMR is enabled or not ?


I think H5Fget_intent is what you want.