MPI_Comm_get_attr

int MPI_Comm_get_attr(MPI_Comm, int, void *, int *);
Retrieves the communicator attribute value identified by the key.