Shuyin Li's reg patch
Reuse get_value_data in enum_all_values_subkeys