Re: [RFC 5/8] lib: add small API for handling register snapshots