Check if two identifiers refer to the same object

Can I just compare fileno and addr (or fileno and token in 1.12) from H5O_GET_INFO?